diff options
| author | NicolasDorier <[email protected]> | 2017-02-23 05:58:31 +0000 |
|---|---|---|
| committer | NicolasDorier <[email protected]> | 2017-03-10 05:11:10 +0000 |
| commit | dcf2112de6ec5a7a5e97076d1ce826eb233a1042 (patch) | |
| tree | 1c09808546a37b22058534fa9e7bb1b3f5c64b94 /qa | |
| parent | Add COutput::fSafe member for safe handling of unconfirmed outputs (diff) | |
| download | discoin-dcf2112de6ec5a7a5e97076d1ce826eb233a1042.tar.xz discoin-dcf2112de6ec5a7a5e97076d1ce826eb233a1042.zip | |
Add safe flag to listunspent result
Diffstat (limited to 'qa')
| -rwxr-xr-x | qa/rpc-tests/listtransactions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/rpc-tests/listtransactions.py b/qa/rpc-tests/listtransactions.py index 92fb96c80..68d14093c 100755 --- a/qa/rpc-tests/listtransactions.py +++ b/qa/rpc-tests/listtransactions.py @@ -126,7 +126,11 @@ class ListTransactionsTest(BitcoinTestFramework): assert_array_result(self.nodes[1].listtransactions(), {"txid": txid_1}, {"bip125-replaceable":"no"}) # Tx2 will build off txid_1, still not opting in to RBF. + utxo_to_use = get_unconfirmed_utxo_entry(self.nodes[0], txid_1) + assert_equal(utxo_to_use["safe"], True) utxo_to_use = get_unconfirmed_utxo_entry(self.nodes[1], txid_1) + utxo_to_use = get_unconfirmed_utxo_entry(self.nodes[1], txid_1) + assert_equal(utxo_to_use["safe"], False) # Create tx2 using createrawtransaction inputs = [{"txid":utxo_to_use["txid"], "vout":utxo_to_use["vout"]}] |