Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_abandonconflict.py
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
assert_equal(newbalance, balance + Decimal("20")) | assert_equal(newbalance, balance + Decimal("20")) | ||||
balance = newbalance | balance = newbalance | ||||
# There is currently a minor bug around this and so this test doesn't work. See Issue #7315 | # There is currently a minor bug around this and so this test doesn't work. See Issue #7315 | ||||
# Invalidate the block with the double spend and B's 10 BCH output should no longer be available | # Invalidate the block with the double spend and B's 10 BCH output should no longer be available | ||||
# Don't think C's should either | # Don't think C's should either | ||||
self.nodes[0].invalidateblock(self.nodes[0].getbestblockhash()) | self.nodes[0].invalidateblock(self.nodes[0].getbestblockhash()) | ||||
newbalance = self.nodes[0].getbalance() | newbalance = self.nodes[0].getbalance() | ||||
#assert_equal(newbalance, balance - Decimal("10")) | # assert_equal(newbalance, balance - Decimal("10")) | ||||
self.log.info( | self.log.info( | ||||
"If balance has not declined after invalidateblock then out of mempool wallet tx which is no longer") | "If balance has not declined after invalidateblock then out of mempool wallet tx which is no longer") | ||||
self.log.info( | self.log.info( | ||||
"conflicted has not resumed causing its inputs to be seen as spent. See Issue #7315") | "conflicted has not resumed causing its inputs to be seen as spent. See Issue #7315") | ||||
self.log.info(str(balance) + " -> " + str(newbalance) + " ?") | self.log.info(str(balance) + " -> " + str(newbalance) + " ?") | ||||
if __name__ == '__main__': | if __name__ == '__main__': | ||||
AbandonConflictTest().main() | AbandonConflictTest().main() |