Commit 48ce608b authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update

parent dfbf224a
debug = true debug = true
# 单次获取数据量 # 单次获取数据量
batch_size = 99 batch_size = 9
[server] [server]
# api服务监听 # api服务监听
......
# claim-monitor # claim-monitor
监控链上claim agc事件,记录领取余额,提供领取金额,领取日志api
### build ### build
......
...@@ -71,7 +71,7 @@ func (s *Sync) Start() { ...@@ -71,7 +71,7 @@ func (s *Sync) Start() {
return return
} }
if (latestHeight-s.c.BatchSize)-beginHeight < s.c.BatchSize+1 { if (latestHeight-s.c.BatchSize)-beginHeight < s.c.BatchSize+1 {
time.Sleep(20 * time.Second) time.Sleep(10 * time.Second)
continue continue
} }
s.SyncClaimed(beginHeight-s.c.BatchSize, endHeight-s.c.BatchSize) s.SyncClaimed(beginHeight-s.c.BatchSize, endHeight-s.c.BatchSize)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment