Skip to content

Commit

Permalink
fix ethash.go:133: Sprintf format %d reads arg ethereum#2, but call h…
Browse files Browse the repository at this point in the history
…as only 1 arg
  • Loading branch information
mkrufky committed Aug 5, 2019
1 parent f5f0a8b commit d92e5c0
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 d92e5c0

Please sign in to comment.