diff options
author | James O'Beirne <james.obeirne@gmail.com> | 2019-04-25 11:09:57 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2021-11-30 11:19:26 -0500 |
commit | ffd09281fe26446fcefa0627c220a52706e35227 (patch) | |
tree | 693e6bc20e8b550acb179b4353195138294efb20 /test | |
parent | ab25ef8c7f767258d5fe44f53b35ad8bd51ed5cd (diff) |
rpc: various fixups for dumptxoutset
- Actually generate an assumeutxo hash and display it
- Add nchaintx to output (necessary for use in chainparams entry)
- Add path of serialized UTXO file to output
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/rpc_dumptxoutset.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/rpc_dumptxoutset.py b/test/functional/rpc_dumptxoutset.py index 89388df555..4359f4a799 100755 --- a/test/functional/rpc_dumptxoutset.py +++ b/test/functional/rpc_dumptxoutset.py @@ -45,6 +45,10 @@ class DumptxoutsetTest(BitcoinTestFramework): assert_equal( digest, '7ae82c986fa5445678d2a21453bb1c86d39e47af13da137640c2b1cf8093691c') + assert_equal( + out['txoutset_hash'], 'd4b614f476b99a6e569973bf1c0120d88b1a168076f8ce25691fb41dd1cef149') + assert_equal(out['nchaintx'], 101) + # Specifying a path to an existing file will fail. assert_raises_rpc_error( -8, '{} already exists'.format(FILENAME), node.dumptxoutset, FILENAME) |