diff options
author | MarcoFalke <falke.marco@gmail.com> | 2015-12-22 10:43:46 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-03-14 16:45:18 +0100 |
commit | fad8cfb893ac0ba83c6fc2367ade55bfe4fa75f6 (patch) | |
tree | c57254ebedc80db63737f4e52840bd8e9ee9b298 /qa/rpc-tests/invalidblockrequest.py | |
parent | fa8cd46f39778925eaf2caf812cccd9fb8503368 (diff) |
[qa] mininode: Add and use CONSTs
Diffstat (limited to 'qa/rpc-tests/invalidblockrequest.py')
-rwxr-xr-x | qa/rpc-tests/invalidblockrequest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/rpc-tests/invalidblockrequest.py b/qa/rpc-tests/invalidblockrequest.py index f91a8da015..daad312d36 100755 --- a/qa/rpc-tests/invalidblockrequest.py +++ b/qa/rpc-tests/invalidblockrequest.py @@ -78,8 +78,8 @@ class InvalidBlockRequestTest(ComparisonTestFramework): self.block_time += 1 # chr(81) is OP_TRUE - tx1 = create_transaction(self.block1.vtx[0], 0, chr(81), 50*100000000) - tx2 = create_transaction(tx1, 0, chr(81), 50*100000000) + tx1 = create_transaction(self.block1.vtx[0], 0, chr(81), 50 * COIN) + tx2 = create_transaction(tx1, 0, chr(81), 50 * COIN) block2.vtx.extend([tx1, tx2]) block2.hashMerkleRoot = block2.calc_merkle_root() @@ -103,7 +103,7 @@ class InvalidBlockRequestTest(ComparisonTestFramework): ''' block3 = create_block(self.tip, create_coinbase(height), self.block_time) self.block_time += 1 - block3.vtx[0].vout[0].nValue = 100*100000000 # Too high! + block3.vtx[0].vout[0].nValue = 100 * COIN # Too high! block3.vtx[0].sha256=None block3.vtx[0].calc_sha256() block3.hashMerkleRoot = block3.calc_merkle_root() |