choose the correct nonce

Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
Steven Allen
2021-01-30 10:18:51 -08:00
committed by GitHub
co-authored by Łukasz Magiera
parent 56a9d05491
commit feb24c9684
+2 -2
View File
@@ -52,8 +52,8 @@ func (a *MpoolNonceAPI) GetNonce(addr address.Address) (uint64, error) {
if vmmsg.From != keyAddr {
continue
}
if vmmsg.Nonce > highestNonce {
highestNonce = vmmsg.Nonce
if vmmsg.Nonce >= highestNonce {
highestNonce = vmmsg.Nonce + 1
}
}
return highestNonce, nil