Skip to content

Commit

Permalink
l.latestBlockNum() -> latestBlockNum
Browse files Browse the repository at this point in the history
  • Loading branch information
attente committed Jul 25, 2023
1 parent 463b84d commit 7fe2b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethreceipts/ethreceipts.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ func (l *ReceiptsListener) isBlockFinal(blockNum *big.Int) bool {
if latestBlockNum == nil || blockNum == nil {
return false
}
diff := big.NewInt(0).Sub(l.latestBlockNum(), blockNum)
diff := big.NewInt(0).Sub(latestBlockNum, blockNum)
return diff.Cmp(big.NewInt(int64(l.options.NumBlocksToFinality))) >= 0
}

Expand Down

0 comments on commit 7fe2b5f

Please sign in to comment.