Closed shohu closed 6 years ago
testcode
# Re-fetch transaction info:
tx1 = self.nodes[0].gettransaction(txid1)
tx2 = self.nodes[0].gettransaction(txid2)
# Both transactions should be conflicted
import pdb; pdb.set_trace()
assert_equal(tx1["confirmations"], -2)
assert_equal(tx2["confirmations"], -2)
👍
# test/functional/txn_doublespend.py
2018-03-23 02:28:52.176000 TestFramework (INFO): Initializing test directory /tmp/testn8rrahc_
2018-03-23 02:28:54.465000 TestFramework (INFO): Stopping nodes
2018-03-23 02:28:56.628000 TestFramework (INFO): Cleaning up
2018-03-23 02:28:56.654000 TestFramework (INFO): Tests successful