mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(poststate): duplicate receipts (#2632)
This commit is contained in:
@ -178,11 +178,11 @@ where
|
||||
// clear all transactions from pool
|
||||
pool.remove_transactions(body.iter().map(|tx| tx.hash()));
|
||||
|
||||
header.receipts_root = if post_state.receipts().is_empty() {
|
||||
let receipts = post_state.receipts(header.number);
|
||||
header.receipts_root = if receipts.is_empty() {
|
||||
EMPTY_RECEIPTS
|
||||
} else {
|
||||
let receipts_with_bloom = post_state
|
||||
.receipts()
|
||||
let receipts_with_bloom = receipts
|
||||
.iter()
|
||||
.map(|r| r.clone().into())
|
||||
.collect::<Vec<ReceiptWithBloom>>();
|
||||
|
||||
Reference in New Issue
Block a user