aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework/blocktools.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2015-12-22 10:43:46 +0100
committerMarcoFalke <falke.marco@gmail.com>2016-03-14 16:45:18 +0100
commitfad8cfb893ac0ba83c6fc2367ade55bfe4fa75f6 (patch)
treec57254ebedc80db63737f4e52840bd8e9ee9b298 /qa/rpc-tests/test_framework/blocktools.py
parentfa8cd46f39778925eaf2caf812cccd9fb8503368 (diff)
downloadbitcoin-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.py2
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):