[qa] mininode: Add and use CONSTs

This commit is contained in:
MarcoFalke
2015-12-22 10:43:46 +01:00
parent fa8cd46f39
commit fad8cfb893
10 changed files with 16 additions and 17 deletions

View File

@@ -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):