(self)
| 382 | ) |
| 383 | |
| 384 | def test_height_in_locktime(self): |
| 385 | self.log.info("Sanity check generated blocks have their coinbase timelocked to their height.") |
| 386 | self.generate(self.nodes[0], 1, sync_fun=self.no_op) |
| 387 | block = self.nodes[0].getblock(self.nodes[0].getbestblockhash(), 2) |
| 388 | assert_equal(block["tx"][0]["locktime"], block["height"] - 1) |
| 389 | assert_equal(block["tx"][0]["vin"][0]["sequence"], MAX_SEQUENCE_NONFINAL) |
| 390 | |
| 391 | def run_test(self): |
| 392 | node = self.nodes[0] |
no test coverage detected