Skip to content

Commit

Permalink
add a missing blockNum parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hackmod committed Dec 10, 2018
1 parent 707be7c commit 06c0dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethash.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (l *Light) Verify(block Block) bool {
// to prevent DOS attacks.
blockNum := block.NumberU64()
if blockNum >= epochLength*2048 {
log.Debug(fmt.Sprintf("block number %d too high, limit is %d", epochLength*2048))
log.Debug(fmt.Sprintf("block number %d too high, limit is %d", blockNum, epochLength*2048))
return false
}

Expand Down

0 comments on commit 06c0dac

Please sign in to comment.