mirror of
https://github.com/tendermint/tendermint.git
synced 2025-12-23 06:15:19 +00:00
ints: stricter numbers (#4939)
This commit is contained in:
@@ -276,7 +276,7 @@ func (evpool *Pool) IsPending(evidence types.Evidence) bool {
|
||||
}
|
||||
|
||||
// RetrievePOLC attempts to find a polc at the given height and round, if not there it returns an error
|
||||
func (evpool *Pool) RetrievePOLC(height int64, round int) (types.ProofOfLockChange, error) {
|
||||
func (evpool *Pool) RetrievePOLC(height int64, round int32) (types.ProofOfLockChange, error) {
|
||||
var polc types.ProofOfLockChange
|
||||
key := keyPOLCFromHeightAndRound(height, round)
|
||||
polcBytes, err := evpool.evidenceStore.Get(key)
|
||||
@@ -545,7 +545,7 @@ func keyPOLC(polc types.ProofOfLockChange) []byte {
|
||||
return keyPOLCFromHeightAndRound(polc.Height(), polc.Round())
|
||||
}
|
||||
|
||||
func keyPOLCFromHeightAndRound(height int64, round int) []byte {
|
||||
func keyPOLCFromHeightAndRound(height int64, round int32) []byte {
|
||||
return append([]byte{baseKeyPOLC}, []byte(fmt.Sprintf("%s/%s", bE(height), bE(int64(round))))...)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user