Skip to content

Commit 30a309d

Browse files
committed
force forks to deal with old headers
1 parent 6813313 commit 30a309d

File tree

32 files changed

+67
-41
lines changed

32 files changed

+67
-41
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ install_requires =
128128
typing_extensions>=4.2
129129
py-ecc>=8.0.0b2,<9
130130
ethereum-types>=0.2.1,<0.3
131-
ethereum-rlp>=0.1.1,<0.2
131+
ethereum-rlp>=0.1.2,<0.2
132132

133133
[options.package_data]
134134
ethereum =

src/ethereum/arrow_glacier/blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Block:
7070

7171
header: Header
7272
transactions: Tuple[Union[Bytes, LegacyTransaction], ...]
73-
ommers: Tuple[Header, ...]
73+
ommers: Tuple[AnyHeader, ...]
7474

7575

7676
AnyBlock: TypeAlias = Union[previous_blocks.AnyBlock, Block]

src/ethereum/arrow_glacier/fork.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def make_receipt(
537537
def apply_body(
538538
block_env: vm.BlockEnvironment,
539539
transactions: Tuple[Union[LegacyTransaction, Bytes], ...],
540-
ommers: Tuple[Header, ...],
540+
ommers: Tuple[AnyHeader, ...],
541541
) -> vm.BlockOutput:
542542
"""
543543
Executes a block.
@@ -653,7 +653,7 @@ def pay_rewards(
653653
state: State,
654654
block_number: Uint,
655655
coinbase: Address,
656-
ommers: Tuple[Header, ...],
656+
ommers: Tuple[AnyHeader, ...],
657657
) -> None:
658658
"""
659659
Pay rewards to the block miner as well as the ommers miners.

src/ethereum/berlin/blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Block:
6464

6565
header: Header
6666
transactions: Tuple[Union[Bytes, LegacyTransaction], ...]
67-
ommers: Tuple[Header, ...]
67+
ommers: Tuple[AnyHeader, ...]
6868

6969

7070
AnyBlock: TypeAlias = Union[previous_blocks.AnyBlock, Block]

src/ethereum/berlin/fork.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def make_receipt(
436436
def apply_body(
437437
block_env: vm.BlockEnvironment,
438438
transactions: Tuple[Union[LegacyTransaction, Bytes], ...],
439-
ommers: Tuple[Header, ...],
439+
ommers: Tuple[AnyHeader, ...],
440440
) -> vm.BlockOutput:
441441
"""
442442
Executes a block.
@@ -552,7 +552,7 @@ def pay_rewards(
552552
state: State,
553553
block_number: Uint,
554554
coinbase: Address,
555-
ommers: Tuple[Header, ...],
555+
ommers: Tuple[AnyHeader, ...],
556556
) -> None:
557557
"""
558558
Pay rewards to the block miner as well as the ommers miners.

src/ethereum/byzantium/blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Block:
6363

6464
header: Header
6565
transactions: Tuple[Transaction, ...]
66-
ommers: Tuple[Header, ...]
66+
ommers: Tuple[AnyHeader, ...]
6767

6868

6969
AnyBlock: TypeAlias = Union[previous_blocks.AnyBlock, Block]

src/ethereum/byzantium/fork.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def make_receipt(
420420
def apply_body(
421421
block_env: vm.BlockEnvironment,
422422
transactions: Tuple[Transaction, ...],
423-
ommers: Tuple[Header, ...],
423+
ommers: Tuple[AnyHeader, ...],
424424
) -> vm.BlockOutput:
425425
"""
426426
Executes a block.
@@ -536,7 +536,7 @@ def pay_rewards(
536536
state: State,
537537
block_number: Uint,
538538
coinbase: Address,
539-
ommers: Tuple[Header, ...],
539+
ommers: Tuple[AnyHeader, ...],
540540
) -> None:
541541
"""
542542
Pay rewards to the block miner as well as the ommers miners.

src/ethereum/cancun/blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Block:
8888

8989
header: Header
9090
transactions: Tuple[Union[Bytes, LegacyTransaction], ...]
91-
ommers: Tuple[Header, ...]
91+
ommers: Tuple[AnyHeader, ...]
9292
withdrawals: Tuple[Withdrawal, ...]
9393

9494

src/ethereum/constantinople/blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Block:
6363

6464
header: Header
6565
transactions: Tuple[Transaction, ...]
66-
ommers: Tuple[Header, ...]
66+
ommers: Tuple[AnyHeader, ...]
6767

6868

6969
AnyBlock: TypeAlias = Union[previous_blocks.AnyBlock, Block]

src/ethereum/constantinople/fork.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def make_receipt(
420420
def apply_body(
421421
block_env: vm.BlockEnvironment,
422422
transactions: Tuple[Transaction, ...],
423-
ommers: Tuple[Header, ...],
423+
ommers: Tuple[AnyHeader, ...],
424424
) -> vm.BlockOutput:
425425
"""
426426
Executes a block.
@@ -536,7 +536,7 @@ def pay_rewards(
536536
state: State,
537537
block_number: Uint,
538538
coinbase: Address,
539-
ommers: Tuple[Header, ...],
539+
ommers: Tuple[AnyHeader, ...],
540540
) -> None:
541541
"""
542542
Pay rewards to the block miner as well as the ommers miners.

0 commit comments

Comments
 (0)