Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-magnetic-anomaly-mining.py
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
# NOTE: There will be 1 sigop per output (which equals the number | # NOTE: There will be 1 sigop per output (which equals the number | ||||
# of inputs now). We need this randomization to ensure the | # of inputs now). We need this randomization to ensure the | ||||
# numbers are properly following the transactions in the block | # numbers are properly following the transactions in the block | ||||
# template metadata | # template metadata | ||||
addr = "" | addr = "" | ||||
for _ in range(len(inputs)): | for _ in range(len(inputs)): | ||||
addr = mining_node.getnewaddress() | addr = mining_node.getnewaddress() | ||||
output = { | output = { | ||||
# 50 BCH per coinbase | # 50,000,000 XEC per coinbase | ||||
addr: decimal.Decimal(50000000) | addr: decimal.Decimal(50000000) | ||||
} | } | ||||
outputs.update(output) | outputs.update(output) | ||||
# Take the fee off the last output to avoid rounding errors we | # Take the fee off the last output to avoid rounding errors we | ||||
# need the exact fee later for assertions | # need the exact fee later for assertions | ||||
outputs[addr] -= fee | outputs[addr] -= fee | ||||
Show All 30 Lines |