MCPcopy Create free account
hub / github.com/ElementsProject/elements / activateCSV

Method activateCSV

test/functional/feature_bip68_sequence.py:411–421  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

409 assert_equal(self.nodes[0].getbestblockhash(), block.hash)
410
411 def activateCSV(self):
412 # activation should happen at block height 432 (3 periods)
413 # getblockchaininfo will show CSV as active at block 431 (144 * 3 -1) since it's returning whether CSV is active for the next block.
414 min_activation_height = 432
415 height = self.nodes[0].getblockcount()
416 assert_greater_than(min_activation_height - height, 2)
417 self.generate(self.nodes[0], min_activation_height - height - 2, sync_fun=self.no_op)
418 assert not softfork_active(self.nodes[0], 'csv')
419 self.generate(self.nodes[0], 1, sync_fun=self.no_op)
420 assert softfork_active(self.nodes[0], 'csv')
421 self.sync_blocks()
422
423 # Use self.nodes[1] to test that version 2 transactions are standard.
424 def test_version2_relay(self):

Callers 1

run_testMethod · 0.95

Calls 4

assert_greater_thanFunction · 0.90
softfork_activeFunction · 0.90
generateMethod · 0.45
sync_blocksMethod · 0.45

Tested by

no test coverage detected