Skip to content

Commit bc3d6fd

Browse files
committed
Configure London header for block imports
1 parent 24b7f55 commit bc3d6fd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

eth/vm/forks/london/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
LondonBackwardsHeader,
1919
calculate_expected_base_fee_per_gas,
2020
compute_london_difficulty,
21+
configure_london_header,
2122
create_london_header_from_parent,
2223
)
2324
from .state import LondonState
@@ -35,7 +36,7 @@ class LondonVM(BerlinVM):
3536
# Methods
3637
create_header_from_parent = staticmethod(create_london_header_from_parent) # type: ignore
3738
compute_difficulty = staticmethod(compute_london_difficulty) # type: ignore
38-
# configure_header = configure_berlin_header
39+
configure_header = configure_london_header
3940

4041
@classmethod
4142
def validate_gas(

eth/vm/forks/london/headers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
)
2323
from eth.vm.forks.berlin.headers import (
2424
compute_berlin_difficulty,
25+
configure_header,
2526
)
2627

2728
from .blocks import LondonBlockHeader
@@ -112,8 +113,7 @@ def create_header_from_parent(difficulty_fn: Callable[[BlockHeaderAPI, int], int
112113
compute_london_difficulty
113114
)
114115

115-
# TODO update configure_header
116-
# configure_london_header = configure_header(compute_berlin_difficulty)
116+
configure_london_header = configure_header(compute_london_difficulty)
117117

118118

119119
class LondonBackwardsHeader(BlockHeaderSedesAPI):

0 commit comments

Comments
 (0)