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/mempool_packages.py | |
parent | fa8cd46f39778925eaf2caf812cccd9fb8503368 (diff) | |
download | bitcoin-fad8cfb893ac0ba83c6fc2367ade55bfe4fa75f6.tar.xz |
[qa] mininode: Add and use CONSTs
Diffstat (limited to 'qa/rpc-tests/mempool_packages.py')
-rwxr-xr-x | qa/rpc-tests/mempool_packages.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qa/rpc-tests/mempool_packages.py b/qa/rpc-tests/mempool_packages.py index 47c1028b9f..6109cb026c 100755 --- a/qa/rpc-tests/mempool_packages.py +++ b/qa/rpc-tests/mempool_packages.py @@ -59,13 +59,12 @@ class MempoolPackagesTest(BitcoinTestFramework): descendant_count = 1 descendant_fees = 0 descendant_size = 0 - SATOSHIS = 100000000 for x in reversed(chain): assert_equal(mempool[x]['descendantcount'], descendant_count) descendant_fees += mempool[x]['fee'] assert_equal(mempool[x]['modifiedfee'], mempool[x]['fee']) - assert_equal(mempool[x]['descendantfees'], SATOSHIS*descendant_fees) + assert_equal(mempool[x]['descendantfees'], descendant_fees * COIN) descendant_size += mempool[x]['size'] assert_equal(mempool[x]['descendantsize'], descendant_size) descendant_count += 1 @@ -78,7 +77,7 @@ class MempoolPackagesTest(BitcoinTestFramework): descendant_fees = 0 for x in reversed(chain): descendant_fees += mempool[x]['fee'] - assert_equal(mempool[x]['descendantfees'], SATOSHIS*descendant_fees+1000) + assert_equal(mempool[x]['descendantfees'], descendant_fees * COIN + 1000) # Adding one more transaction on to the chain should fail. try: @@ -106,7 +105,7 @@ class MempoolPackagesTest(BitcoinTestFramework): descendant_fees += mempool[x]['fee'] if (x == chain[-1]): assert_equal(mempool[x]['modifiedfee'], mempool[x]['fee']+satoshi_round(0.00002)) - assert_equal(mempool[x]['descendantfees'], SATOSHIS*descendant_fees+2000) + assert_equal(mempool[x]['descendantfees'], descendant_fees * COIN + 2000) # TODO: check that node1's mempool is as expected |