Skip to content

Commit

Permalink
fix: log query range type error
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu committed Jun 29, 2024
1 parent a5bea92 commit 2db2a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staker/rollup_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (r *RollupWatcher) LookupNodeChildren(ctx context.Context, nodeNum uint64,
// break down the query to avoid eth_getLogs query limit
for toBlock.Cmp(fromBlock) > 0 {
query.FromBlock = fromBlock
query.ToBlock = new(big.Int).Add(fromBlock, big.NewInt(logQueryRange))
query.ToBlock = new(big.Int).Add(fromBlock, big.NewInt(int64(logQueryRange)))
if query.ToBlock.Cmp(toBlock) > 0 {
query.ToBlock = toBlock
}
Expand Down

0 comments on commit 2db2a0b

Please sign in to comment.