We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b6dc06 commit dedb536Copy full SHA for dedb536
eth/vm/base.py
@@ -668,7 +668,13 @@ def validate_uncle(cls,
668
f"Uncle's gas usage ({uncle.gas_used}) is above "
669
f"the limit ({uncle.gas_limit})"
670
)
671
- validate_gas_limit(uncle.gas_limit, uncle_parent.gas_limit)
+
672
+ uncle_parent_gas_limit = uncle_parent.gas_limit
673
+ if not hasattr(uncle_parent, 'base_fee_per_gas') and hasattr(uncle, 'base_fee_per_gas'):
674
+ # if Berlin -> London transition, double the parent limit for validation
675
+ uncle_parent_gas_limit *= 2
676
677
+ validate_gas_limit(uncle.gas_limit, uncle_parent_gas_limit)
678
679
#
680
# State
0 commit comments