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/test_framework/blocktools.py | |
parent | fa8cd46f39778925eaf2caf812cccd9fb8503368 (diff) | |
download | bitcoin-fad8cfb893ac0ba83c6fc2367ade55bfe4fa75f6.tar.xz |
[qa] mininode: Add and use CONSTs
Diffstat (limited to 'qa/rpc-tests/test_framework/blocktools.py')
-rw-r--r-- | qa/rpc-tests/test_framework/blocktools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/test_framework/blocktools.py b/qa/rpc-tests/test_framework/blocktools.py index 7eea41b75c..b075f69c47 100644 --- a/qa/rpc-tests/test_framework/blocktools.py +++ b/qa/rpc-tests/test_framework/blocktools.py @@ -45,7 +45,7 @@ def create_coinbase(height, pubkey = None): coinbase.vin.append(CTxIn(COutPoint(0, 0xffffffff), ser_string(serialize_script_num(height)), 0xffffffff)) coinbaseoutput = CTxOut() - coinbaseoutput.nValue = 50*100000000 + coinbaseoutput.nValue = 50 * COIN halvings = int(height/150) # regtest coinbaseoutput.nValue >>= halvings if (pubkey != None): |