Browse Source

[qa] Fix mempool_packages.py for the 0.14 branch

The backport in d947afc0f7 of this
test was incorrect due to an api change in prioritisetransaction.
0.14
Suhas Daftuar 8 years ago
parent
commit
39febb8c6d
  1. 4
      qa/rpc-tests/mempool_packages.py

4
qa/rpc-tests/mempool_packages.py

@ -104,7 +104,7 @@ class MempoolPackagesTest(BitcoinTestFramework): @@ -104,7 +104,7 @@ class MempoolPackagesTest(BitcoinTestFramework):
# Check that ancestor modified fees includes fee deltas from
# prioritisetransaction
self.nodes[0].prioritisetransaction(chain[0], 1000)
self.nodes[0].prioritisetransaction(chain[0], 0, 1000)
mempool = self.nodes[0].getrawmempool(True)
ancestor_fees = 0
for x in chain:
@ -112,7 +112,7 @@ class MempoolPackagesTest(BitcoinTestFramework): @@ -112,7 +112,7 @@ class MempoolPackagesTest(BitcoinTestFramework):
assert_equal(mempool[x]['ancestorfees'], ancestor_fees * COIN + 1000)
# Undo the prioritisetransaction for later tests
self.nodes[0].prioritisetransaction(chain[0], -1000)
self.nodes[0].prioritisetransaction(chain[0], 0, -1000)
# Check that descendant modified fees includes fee deltas from
# prioritisetransaction

Loading…
Cancel
Save