mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(payload): fix withdrawals field pre-shanghai in Ethereum payload (#12828)
This commit is contained in:
@ -440,14 +440,14 @@ where
|
||||
requests_hash,
|
||||
};
|
||||
|
||||
let withdrawals = chain_spec
|
||||
.is_shanghai_active_at_timestamp(attributes.timestamp)
|
||||
.then(|| attributes.withdrawals.clone());
|
||||
|
||||
// seal the block
|
||||
let block = Block {
|
||||
header,
|
||||
body: BlockBody {
|
||||
transactions: executed_txs,
|
||||
ommers: vec![],
|
||||
withdrawals: Some(attributes.withdrawals.clone()),
|
||||
},
|
||||
body: BlockBody { transactions: executed_txs, ommers: vec![], withdrawals },
|
||||
};
|
||||
|
||||
let sealed_block = Arc::new(block.seal_slow());
|
||||
|
||||
Reference in New Issue
Block a user