(node, block, expect, rehash=True)
| 21 | return b2a_hex(b).decode('ascii') |
| 22 | |
| 23 | def assert_template(node, block, expect, rehash=True): |
| 24 | if rehash: |
| 25 | block.hashMerkleRoot = block.calc_merkle_root() |
| 26 | rsp = node.getblocktemplate({'data': b2x(block.serialize(legacy=False)), 'mode': 'proposal'}) |
| 27 | assert_equal(rsp, expect) |
| 28 | |
| 29 | class MiningTest(BitcoinTestFramework): |
| 30 | def set_test_params(self): |
no test coverage detected