mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: improve nonce too low error (#10711)
This commit is contained in:
committed by
GitHub
parent
834e99cd2a
commit
8bbd403285
@ -12,8 +12,13 @@ pub enum InvalidTransactionError {
|
||||
/// The nonce is lower than the account's nonce, or there is a nonce gap present.
|
||||
///
|
||||
/// This is a consensus error.
|
||||
#[display("transaction nonce is not consistent")]
|
||||
NonceNotConsistent,
|
||||
#[display("transaction nonce is not consistent: next nonce {state}, tx nonce {tx}")]
|
||||
NonceNotConsistent {
|
||||
/// The nonce of the transaction.
|
||||
tx: u64,
|
||||
/// The current state of the nonce in the local chain.
|
||||
state: u64,
|
||||
},
|
||||
/// The transaction is before Spurious Dragon and has a chain ID.
|
||||
#[display("transactions before Spurious Dragon should not have a chain ID")]
|
||||
OldLegacyChainId,
|
||||
|
||||
Reference in New Issue
Block a user