(self)
| 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): |
no test coverage detected