aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_dumptxoutset.py
diff options
context:
space:
mode:
authorW. J. van der Laan <laanwj@protonmail.com>2021-12-02 10:13:28 +0100
committerW. J. van der Laan <laanwj@protonmail.com>2021-12-02 10:35:02 +0100
commit6acda4b00b3fc1bfac02f5de590e1a5386cbc779 (patch)
tree17baca1d43fc95b6ffc8ecb33f9ac4eca3618be4 /test/functional/rpc_dumptxoutset.py
parent282cc0cda7a29c8851a59cdbfadde4b635af04b2 (diff)
parentffd09281fe26446fcefa0627c220a52706e35227 (diff)
downloadbitcoin-6acda4b00b3fc1bfac02f5de590e1a5386cbc779.tar.xz
Merge bitcoin/bitcoin#23155: rpc: various fixups for dumptxoutset
ffd09281fe26446fcefa0627c220a52706e35227 rpc: various fixups for dumptxoutset (James O'Beirne) Pull request description: This is part of the [assumeutxo project](https://github.com/bitcoin/bitcoin/projects/11) (parent PR: #15606) --- A few fixes to make this RPC actually useful when generating snapshots. - Generate an assumeutxo hash and display it (sort of a bugfix) - Add nchaintx to output (necessary for use in chainparams entry) - Add path of serialized UTXO file to output ACKs for top commit: laanwj: Code review ACK ffd09281fe26446fcefa0627c220a52706e35227 Tree-SHA512: b0b5fd5138dea0e21258b1b18ab75bf3fd1628522cc1dbafa81af9cb9fa96562a1c39124fdb31057f256bfc560f462f907e9fe5e209b577b3f57afae2b7be826
Diffstat (limited to 'test/functional/rpc_dumptxoutset.py')
-rwxr-xr-xtest/functional/rpc_dumptxoutset.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/rpc_dumptxoutset.py b/test/functional/rpc_dumptxoutset.py
index f54f600839..1721b6ffe8 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)