mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
qa: Test default include_mempool value of gettxout
This commit is contained in:
parent
585cbe2257
commit
44dab423eb
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,8 @@ class WalletTest(BitcoinTestFramework):
|
|||
# but invisible if you include mempool
|
||||
txout = self.nodes[0].gettxout(confirmed_txid, confirmed_index, False)
|
||||
assert_equal(txout['value'], 50)
|
||||
txout = self.nodes[0].gettxout(confirmed_txid, confirmed_index) # by default include_mempool=True
|
||||
assert txout is None
|
||||
txout = self.nodes[0].gettxout(confirmed_txid, confirmed_index, True)
|
||||
assert txout is None
|
||||
# new utxo from mempool should be invisible if you exclude mempool
|
||||
|
|
Loading…
Reference in a new issue