Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[qa] Fix mempool_packages.py for the 0.14 branch
Browse files Browse the repository at this point in the history
The backport in d947afc of this
test was incorrect due to an api change in prioritisetransaction.
sdaftuar committed Apr 5, 2017
1 parent 47d24c8 commit 39febb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qa/rpc-tests/mempool_packages.py
Original file line number Diff line number Diff line change
@@ -104,15 +104,15 @@ def run_test(self):

# 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:
ancestor_fees += mempool[x]['fee']
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

0 comments on commit 39febb8

Please sign in to comment.