Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartNearHead ¶
func StartNearHead(ctx context.Context, wg *sync.WaitGroup, config NearHeadConfig) (*nearhead.EthCache, error)
StartNearHead starts to sync the near head data in separate goroutines, and returns the corresponding near head cache to query blockchain data with high performance.
Types ¶
type Config ¶
type Config struct {
CatchUp struct {
Adapter evm.AdapterConfig
Poller poll.CatchUpOption
Writer store.BatchWriteOption
}
Adapter evm.AdapterConfig
Poller poll.Option
Writer store.WriteOption
}
type NearHeadConfig ¶
type NearHeadConfig struct {
Adapter evm.AdapterConfig
Poller poll.Option
Writer nearhead.WriteOption
Cache nearhead.Config
}
Click to show internal directories.
Click to hide internal directories.