redpacket eth indexer poll error

This commit is contained in:
hawklin2017 2026-05-15 12:04:52 +08:00
parent 8079cb3eb3
commit 1a3d7020ad

View File

@ -139,7 +139,7 @@ func Start(ctx context.Context, conf *Config, registry discovery.SvcDiscoveryReg
if conf.RpcConfig.Indexer.PollInterval > 0 {
if chainClient != nil {
ethIndexer := chain.NewIndexer(chainClient, repo, conf.RpcConfig.Indexer.PollInterval, 0)
ethIndexer := chain.NewIndexer(chainClient, repo, conf.RpcConfig.Indexer.PollInterval, 0, conf.RpcConfig.Indexer.MaxBlocksPerPoll)
ethIndexer.Start(ctx)
}
if tronClient != nil {