perf(validate-tx-pool): fast non-allocating is_local (#13096)

This commit is contained in:
Hai | RISE
2024-12-03 21:53:07 +07:00
committed by GitHub
parent 6baf519c9e
commit 7008ac22df
7 changed files with 34 additions and 12 deletions

View File

@ -1624,6 +1624,11 @@ impl<T> RecoveredTx<T> {
self.signer
}
/// Reference to the signer of transaction recovered from signature
pub const fn signer_ref(&self) -> &Address {
&self.signer
}
/// Returns a reference to [`TransactionSigned`]
pub const fn as_signed(&self) -> &T {
&self.signed_transaction