Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Jul 25, 2023
1 parent 605b3f7 commit 463b84d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethreceipts/ethreceipts.go
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,8 @@ func (l *ReceiptsListener) getMaxWaitBlocks(maxWait *int) uint64 {
}

func (l *ReceiptsListener) isBlockFinal(blockNum *big.Int) bool {
if l == nil || l.latestBlockNum() == nil || blockNum == nil {
latestBlockNum := l.latestBlockNum()
if latestBlockNum == nil || blockNum == nil {
return false
}
diff := big.NewInt(0).Sub(l.latestBlockNum(), blockNum)
Expand Down

0 comments on commit 463b84d

Please sign in to comment.