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 Nov 25, 2018
1 parent 15c6950 commit ca6919c
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 ca6919c

Please sign in to comment.