mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
bug: Correct nonce validation (#409)
* feat: Correct nonce validation * clenup * Update crates/consensus/src/verification.rs Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
This commit is contained in:
@ -788,20 +788,13 @@ impl TransactionSignedEcRecovered {
|
||||
self.signer
|
||||
}
|
||||
|
||||
/// Create [TransactionSignedEcRecovered] from [TransactionSigned] and author of transaction
|
||||
pub fn from_signed_transactions_and_signer(
|
||||
signed_transaction: TransactionSigned,
|
||||
signer: Address,
|
||||
) -> Self {
|
||||
Self { signed_transaction, signer }
|
||||
}
|
||||
|
||||
/// Transform back to [`TransactionSigned`]
|
||||
pub fn into_signed(self) -> TransactionSigned {
|
||||
self.signed_transaction
|
||||
}
|
||||
|
||||
/// Create [`TransactionSignedEcRecovered`] from [`TransactionSigned`] and [`Address`].
|
||||
/// Create [`TransactionSignedEcRecovered`] from [`TransactionSigned`] and [`Address`] of the
|
||||
/// signer.
|
||||
pub fn from_signed_transaction(signed_transaction: TransactionSigned, signer: Address) -> Self {
|
||||
Self { signed_transaction, signer }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user