refactor: unify logic for blocks removal (#12743)

Co-authored-by: joshieDo <93316087+joshieDo@users.noreply.github.com>
This commit is contained in:
Arsenii Kulikov
2024-11-21 23:47:33 +04:00
committed by GitHub
parent edeacbecfb
commit 0558235b98
9 changed files with 267 additions and 536 deletions

View File

@ -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()
)])
)
}
}