Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mining_basic.py
Show First 20 Lines • Show All 284 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
hexdata=CBlockHeader(bad_block2).serialize().hex())) | hexdata=CBlockHeader(bad_block2).serialize().hex())) | ||||
node.submitheader(hexdata=CBlockHeader(block).serialize().hex()) | node.submitheader(hexdata=CBlockHeader(block).serialize().hex()) | ||||
node.submitheader(hexdata=CBlockHeader( | node.submitheader(hexdata=CBlockHeader( | ||||
bad_block_root).serialize().hex()) | bad_block_root).serialize().hex()) | ||||
# valid | # valid | ||||
assert_equal(node.submitblock( | assert_equal(node.submitblock( | ||||
hexdata=block.serialize().hex()), 'duplicate') | hexdata=block.serialize().hex()), 'duplicate') | ||||
# Sanity check that maxtries supports large integers | |||||
node.generatetoaddress( | |||||
1, node.get_deterministic_priv_key().address, pow( | |||||
2, 32)) | |||||
if __name__ == '__main__': | if __name__ == '__main__': | ||||
MiningTest().main() | MiningTest().main() |