(node, block, expect, rehash=True)
| 20 | |
| 21 | |
| 22 | def assert_template(node, block, expect, rehash=True): |
| 23 | if rehash: |
| 24 | block.hashMerkleRoot = block.calc_merkle_root() |
| 25 | rsp = node.getblocktemplate( |
| 26 | template_request={"data": block.serialize().hex(), "mode": "proposal"} |
| 27 | ) |
| 28 | assert_equal(rsp, expect) |
| 29 | |
| 30 | |
| 31 | class MiningTest(BitcoinTestFramework): |
no test coverage detected