Skip to content

Commit a876368

Browse files
committed
Enable PoW consensus for fully validating chain in test
1 parent 4beff35 commit a876368

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
Chain,
1919
MiningChain,
2020
)
21+
from eth.consensus import PowConsensus
2122
from eth.consensus.noproof import NoProofConsensus
2223
from eth.db.atomic import AtomicDB
2324
from eth.rlp.headers import BlockHeader
@@ -147,7 +148,7 @@ def _chain_with_block_validation(VM, base_db, genesis_state, chain_cls=Chain):
147148
klass = chain_cls.configure(
148149
__name__='TestChain',
149150
vm_configuration=(
150-
(constants.GENESIS_BLOCK_NUMBER, VM.configure(consensus_class=NoProofConsensus)),
151+
(constants.GENESIS_BLOCK_NUMBER, VM.configure(consensus_class=PowConsensus)),
151152
),
152153
chain_id=1337,
153154
)

0 commit comments

Comments
 (0)