Skip to content
This repository was archived by the owner on Jul 1, 2021. It is now read-only.

Commit b5440f6

Browse files
committed
Add support for Muir Glacier fork
1 parent 872c4d8 commit b5440f6

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

newsfragments/1409.feature.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade Py-EVM and add support for Muir Glacier fork

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66
from setuptools import setup, find_packages
77

8-
PYEVM_DEPENDENCY = "py-evm==0.3.0a11"
8+
PYEVM_DEPENDENCY = "py-evm==0.3.0a12"
99

1010

1111
deps = {

trinity/_utils/eip1085.py

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
ConstantinopleVM,
5555
PetersburgVM,
5656
IstanbulVM,
57+
MuirGlacierVM,
5758
)
5859

5960

@@ -178,6 +179,7 @@ def _filter_vm_config(vm_config: VMConfiguration) -> Iterable[VMFork]:
178179
ConstantinopleVM,
179180
PetersburgVM,
180181
IstanbulVM,
182+
MuirGlacierVM,
181183
)
182184

183185

trinity/components/builtin/tx_pool/component.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
from async_service import run_asyncio_service
88
from eth_utils import ValidationError
9-
from eth.chains.mainnet import PETERSBURG_MAINNET_BLOCK
10-
from eth.chains.ropsten import PETERSBURG_ROPSTEN_BLOCK
9+
from eth.chains.mainnet import ISTANBUL_MAINNET_BLOCK
10+
from eth.chains.ropsten import ISTANBUL_ROPSTEN_BLOCK
1111
from lahja import EndpointAPI
1212

1313
from trinity.boot_info import BootInfo
@@ -80,9 +80,9 @@ async def do_run(cls, boot_info: BootInfo, event_bus: EndpointAPI) -> None:
8080
chain = chain_config.full_chain_class(db)
8181

8282
if boot_info.trinity_config.network_id == MAINNET_NETWORK_ID:
83-
validator = DefaultTransactionValidator(chain, PETERSBURG_MAINNET_BLOCK)
83+
validator = DefaultTransactionValidator(chain, ISTANBUL_MAINNET_BLOCK)
8484
elif boot_info.trinity_config.network_id == ROPSTEN_NETWORK_ID:
85-
validator = DefaultTransactionValidator(chain, PETERSBURG_ROPSTEN_BLOCK)
85+
validator = DefaultTransactionValidator(chain, ISTANBUL_ROPSTEN_BLOCK)
8686
else:
8787
raise Exception("This code path should not be reachable")
8888

trinity/tools/chain.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
)
55
from eth.constants import GENESIS_BLOCK_NUMBER
66
from eth.vm.forks.byzantium import ByzantiumVM
7-
from eth.vm.forks.istanbul import IstanbulVM
7+
from eth.vm.forks.muir_glacier import MuirGlacierVM
88

99
from trinity.chains.coro import AsyncChainMixin
1010
from trinity.chains.full import FullChain
@@ -27,7 +27,7 @@ class LatestTestChain(FullChain):
2727
A test chain that uses the most recent mainnet VM from block 0.
2828
That means the VM will explicitly change when a new network upgrade is locked in.
2929
"""
30-
vm_configuration = ((GENESIS_BLOCK_NUMBER, IstanbulVM),)
30+
vm_configuration = ((GENESIS_BLOCK_NUMBER, MuirGlacierVM),)
3131
network_id = 999
3232

3333

0 commit comments

Comments
 (0)