mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Move OptimismHardfork to new crate reth_optimism_forks (#10963)
This commit is contained in:
@ -63,9 +63,12 @@ pub fn calculate_receipt_root_no_memo_optimism(
|
||||
// encoding. In the Regolith Hardfork, we must strip the deposit nonce from the
|
||||
// receipts before calculating the receipt root. This was corrected in the Canyon
|
||||
// hardfork.
|
||||
if chain_spec.is_fork_active_at_timestamp(reth_chainspec::OptimismHardfork::Regolith, timestamp) &&
|
||||
!chain_spec
|
||||
.is_fork_active_at_timestamp(reth_chainspec::OptimismHardfork::Canyon, timestamp)
|
||||
if chain_spec
|
||||
.is_fork_active_at_timestamp(reth_optimism_forks::OptimismHardfork::Regolith, timestamp) &&
|
||||
!chain_spec.is_fork_active_at_timestamp(
|
||||
reth_optimism_forks::OptimismHardfork::Canyon,
|
||||
timestamp,
|
||||
)
|
||||
{
|
||||
let receipts = receipts
|
||||
.iter()
|
||||
|
||||
Reference in New Issue
Block a user