mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: unify logic for blocks removal (#12743)
Co-authored-by: joshieDo <93316087+joshieDo@users.noreply.github.com>
This commit is contained in:
@ -781,21 +781,6 @@ mod tests {
|
||||
|
||||
let db_senders = provider.senders_by_tx_range(range);
|
||||
assert_eq!(db_senders, Ok(vec![]));
|
||||
|
||||
let result = provider.take_block_transaction_range(0..=0);
|
||||
assert_eq!(
|
||||
result,
|
||||
Ok(vec![(
|
||||
0,
|
||||
block
|
||||
.body
|
||||
.transactions
|
||||
.iter()
|
||||
.cloned()
|
||||
.map(|tx| tx.into_ecrecovered().unwrap())
|
||||
.collect()
|
||||
)])
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user