mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
feat: add transactions_iter helper (#13910)
This commit is contained in:
@ -553,8 +553,7 @@ impl<N: NodePrimitives> CanonicalInMemoryState<N> {
|
||||
.block_ref()
|
||||
.recovered_block()
|
||||
.body()
|
||||
.transactions()
|
||||
.iter()
|
||||
.transactions_iter()
|
||||
.find(|tx| tx.trie_hash() == hash)
|
||||
{
|
||||
return Some(tx.clone())
|
||||
@ -577,8 +576,7 @@ impl<N: NodePrimitives> CanonicalInMemoryState<N> {
|
||||
.block_ref()
|
||||
.recovered_block()
|
||||
.body()
|
||||
.transactions()
|
||||
.iter()
|
||||
.transactions_iter()
|
||||
.enumerate()
|
||||
.find(|(_, tx)| tx.trie_hash() == tx_hash)
|
||||
{
|
||||
@ -747,8 +745,7 @@ impl<N: NodePrimitives> BlockState<N> {
|
||||
.block_ref()
|
||||
.recovered_block()
|
||||
.body()
|
||||
.transactions()
|
||||
.iter()
|
||||
.transactions_iter()
|
||||
.find(|tx| tx.trie_hash() == hash)
|
||||
.cloned()
|
||||
})
|
||||
@ -767,8 +764,7 @@ impl<N: NodePrimitives> BlockState<N> {
|
||||
.block_ref()
|
||||
.recovered_block()
|
||||
.body()
|
||||
.transactions()
|
||||
.iter()
|
||||
.transactions_iter()
|
||||
.enumerate()
|
||||
.find(|(_, tx)| tx.trie_hash() == tx_hash)
|
||||
.map(|(index, tx)| {
|
||||
|
||||
Reference in New Issue
Block a user