Skip to content

Commit b2342d0

Browse files
UdjinM6PastaPastaPasta
authored andcommitted
test: disable IS and CL in feature_dip4_coinbasemerkleroots.py
1 parent 4861861 commit b2342d0

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/functional/feature_dip4_coinbasemerkleroots.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ def set_test_params(self):
4444
self.set_dash_test_params(4, 3, fast_dip3_enforcement=True)
4545

4646
def run_test(self):
47+
# No IS or Chainlocks in this test
48+
self.bump_mocktime(1)
49+
self.nodes[0].sporkupdate("SPORK_2_INSTANTSEND_ENABLED", 4070908800)
50+
self.nodes[0].sporkupdate("SPORK_19_CHAINLOCKS_ENABLED", 4070908800)
51+
self.wait_for_sporks_same()
52+
4753
self.test_node = self.nodes[0].add_p2p_connection(TestP2PConn())
4854

4955
self.confirm_mns()
@@ -85,21 +91,14 @@ def run_test(self):
8591

8692
self.nodes[0].generate(1)
8793
oldhash = self.nodes[0].getbestblockhash()
88-
# Have to disable ChainLocks here because they won't let you to invalidate already locked blocks
89-
self.nodes[0].sporkupdate("SPORK_19_CHAINLOCKS_ENABLED", 4070908800)
90-
self.wait_for_sporks_same()
94+
9195
# Test DIP8 activation once with a pre-existing quorum and once without (we don't know in which order it will activate on mainnet)
9296
self.test_dip8_quorum_merkle_root_activation(True)
9397
for n in self.nodes:
9498
n.invalidateblock(oldhash)
9599
self.sync_all()
96100
first_quorum = self.test_dip8_quorum_merkle_root_activation(False, True)
97101

98-
# Re-enable ChainLocks again
99-
self.nodes[0].sporkupdate("SPORK_19_CHAINLOCKS_ENABLED", 0)
100-
self.nodes[0].sporkupdate("SPORK_17_QUORUM_DKG_ENABLED", 0)
101-
self.wait_for_sporks_same()
102-
103102
# Verify that the first quorum appears in MNLISTDIFF
104103
expectedDeleted = []
105104
expectedNew = [QuorumId(100, int(first_quorum, 16)), QuorumId(104, int(first_quorum, 16)), QuorumId(106, int(first_quorum, 16))]

0 commit comments

Comments
 (0)