aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/abandonconflict.py
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-03-23 15:07:30 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2016-03-23 15:09:02 +0100
commit3bdc583b3f072d0d23b1fc858890fd1acaff5914 (patch)
treeef035bd6b3c0497728c9902921fbe0b00fcb1920 /qa/rpc-tests/abandonconflict.py
parente2ebd259fbe80c030ddc1caabbcd755b7f5f8f8e (diff)
parent68d4282774d6a60c609301cddad0b652f16df4d9 (diff)
Merge #7715: Fix calculation of balances and available coins.
68d4282 Fix calculation of balances and available coins. (Alex Morcos)
Diffstat (limited to 'qa/rpc-tests/abandonconflict.py')
-rwxr-xr-xqa/rpc-tests/abandonconflict.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/rpc-tests/abandonconflict.py b/qa/rpc-tests/abandonconflict.py
index 38028df079..a83aa97fcd 100755
--- a/qa/rpc-tests/abandonconflict.py
+++ b/qa/rpc-tests/abandonconflict.py
@@ -83,6 +83,12 @@ class AbandonConflictTest(BitcoinTestFramework):
# inputs are still spent, but change not received
newbalance = self.nodes[0].getbalance()
assert(newbalance == balance - Decimal("24.9996"))
+ # Unconfirmed received funds that are not in mempool, also shouldn't show
+ # up in unconfirmed balance
+ unconfbalance = self.nodes[0].getunconfirmedbalance() + self.nodes[0].getbalance()
+ assert(unconfbalance == newbalance)
+ # Also shouldn't show up in listunspent
+ assert(not txABC2 in [utxo["txid"] for utxo in self.nodes[0].listunspent(0)])
balance = newbalance
# Abandon original transaction and verify inputs are available again