mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
27 lines
508 B
Go
27 lines
508 B
Go
package heimdallapp
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/log"
|
|
|
|
"github.com/maticnetwork/heimdall/app"
|
|
"github.com/maticnetwork/heimdall/cmd/heimdalld/service"
|
|
)
|
|
|
|
const (
|
|
stateFetchLimit = 50
|
|
)
|
|
|
|
type HeimdallAppClient struct {
|
|
hApp *app.HeimdallApp
|
|
}
|
|
|
|
func NewHeimdallAppClient() *HeimdallAppClient {
|
|
return &HeimdallAppClient{
|
|
hApp: service.GetHeimdallApp(),
|
|
}
|
|
}
|
|
|
|
func (h *HeimdallAppClient) Close() {
|
|
// Nothing to close as of now
|
|
log.Warn("Shutdown detected, Closing Heimdall App conn")
|
|
}
|