mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 01:33:20 +02:00
Merge bitcoin/bitcoin#31156: test: Don't enforce BIP94 on regtest unless specified by arg
e60cecc811doc: add release note for 31156 (Martin Zumsande)fc7dfb3df5test: Don't enforce BIP94 on regtest unless specified by arg (Martin Zumsande) Pull request description: The added arg `-test=bip94` is only used in a functional test for BIP94. This is done because the default regtest consensus rules should follow mainnet, not testnet. Fixes #31137. ACKs for top commit: achow101: ACKe60cecc811tdb3: cr and light test ACKe60cecc811rkrux: tACKe60cecc811BrandonOdiwuor: utACKe60cecc811laanwj: Code review ACKe60cecc811Tree-SHA512: ca2f322f89d8808dfc3565fe020d2615cfcc110e188a02128ad7108fef51c735b33d55b5e6a70c505d78f7291f3c635dc7dfbcd78be1348d4d6e483883be4216
This commit is contained in:
@@ -122,6 +122,7 @@ class MiningTest(BitcoinTestFramework):
|
||||
def test_timewarp(self):
|
||||
self.log.info("Test timewarp attack mitigation (BIP94)")
|
||||
node = self.nodes[0]
|
||||
self.restart_node(0, extra_args=['-test=bip94'])
|
||||
|
||||
self.log.info("Mine until the last block of the retarget period")
|
||||
blockchain_info = self.nodes[0].getblockchaininfo()
|
||||
|
||||
Reference in New Issue
Block a user