diff options
| author | Amiti Uttarwar <[email protected]> | 2019-02-13 19:22:40 -0800 |
|---|---|---|
| committer | Amiti Uttarwar <[email protected]> | 2019-02-17 21:42:08 -0800 |
| commit | 8e4b4f683a0b342cec24cd51b1e98433034ea2ea (patch) | |
| tree | 918975cc59f7a57016ce61d6343c21c5168a0f59 /test/functional/test_framework | |
| parent | Merge #15431: msvc: scripted-diff: Remove NDEBUG pre-define in project file (diff) | |
| download | discoin-8e4b4f683a0b342cec24cd51b1e98433034ea2ea.tar.xz discoin-8e4b4f683a0b342cec24cd51b1e98433034ea2ea.zip | |
Address test todos by removing -txindex to nodes.
Originally added when updating getrawtransaction to stop searching unspent utxos.
Diffstat (limited to 'test/functional/test_framework')
| -rw-r--r-- | test/functional/test_framework/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index d0a78d8df..fef998241 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -410,12 +410,12 @@ def sync_mempools(rpc_connections, *, wait=1, timeout=60, flush_scheduler=True): # Transaction/Block functions ############################# -def find_output(node, txid, amount): +def find_output(node, txid, amount, *, blockhash=None): """ Return index to output of txid with value amount Raises exception if there is none. """ - txdata = node.getrawtransaction(txid, 1) + txdata = node.getrawtransaction(txid, 1, blockhash) for i in range(len(txdata["vout"])): if txdata["vout"][i]["value"] == amount: return i |