eliminate genblocks compile warning

testtools/genblocks/main.go:91:74: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
https://github.com/golang/go/issues/32479
This commit is contained in:
Larry Ruane 2021-04-06 10:23:34 -06:00 committed by Larry Ruane
parent 17c47cfebe
commit 0995e130f4
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ func main() {
" maximum 65535"))
}
hashOfTxnsAndHeight := sha256.Sum256([]byte(allTransactionsHex + "#" + string(curHeight)))
hashOfTxnsAndHeight := sha256.Sum256([]byte(allTransactionsHex + "#" + string(rune(curHeight))))
// These fields do not need to be valid for the lightwalletd/wallet stack to work.
// The lightwalletd/wallet stack rely on the miners to validate these.