mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore!:unify trait fn naming for recovery (#13981)
This commit is contained in:
@ -1229,7 +1229,7 @@ impl<TX: DbTx + 'static, N: NodeTypesForProvider> BlockReader for DatabaseProvid
|
||||
// Note: we're using unchecked here because we know the block contains valid txs
|
||||
// wrt to its height and can ignore the s value check so pre
|
||||
// EIP-2 txs are allowed
|
||||
.try_with_senders_unchecked(senders)
|
||||
.try_into_recovered_unchecked(senders)
|
||||
.map(Some)
|
||||
.map_err(|_| ProviderError::SenderRecoveryError)
|
||||
},
|
||||
@ -1274,7 +1274,7 @@ impl<TX: DbTx + 'static, N: NodeTypesForProvider> BlockReader for DatabaseProvid
|
||||
|range| self.headers_range(range),
|
||||
|header, body, senders| {
|
||||
Self::Block::new(header, body)
|
||||
.try_with_senders_unchecked(senders)
|
||||
.try_into_recovered_unchecked(senders)
|
||||
.map_err(|_| ProviderError::SenderRecoveryError)
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user