choose the correct nonce
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
parent
56a9d05491
commit
feb24c9684
@ -52,8 +52,8 @@ func (a *MpoolNonceAPI) GetNonce(addr address.Address) (uint64, error) {
|
|||||||
if vmmsg.From != keyAddr {
|
if vmmsg.From != keyAddr {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if vmmsg.Nonce > highestNonce {
|
if vmmsg.Nonce >= highestNonce {
|
||||||
highestNonce = vmmsg.Nonce
|
highestNonce = vmmsg.Nonce + 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return highestNonce, nil
|
return highestNonce, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user