aboutsummaryrefslogtreecommitdiff
path: root/src/test/util
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@gmail.com>2019-04-25 11:09:57 -0400
committerJames O'Beirne <james.obeirne@pm.me>2021-11-30 11:19:26 -0500
commitffd09281fe26446fcefa0627c220a52706e35227 (patch)
tree693e6bc20e8b550acb179b4353195138294efb20 /src/test/util
parentab25ef8c7f767258d5fe44f53b35ad8bd51ed5cd (diff)
downloadbitcoin-ffd09281fe26446fcefa0627c220a52706e35227.tar.xz
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 'src/test/util')
-rw-r--r--src/test/util/chainstate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/util/chainstate.h b/src/test/util/chainstate.h
index e95573022c..e3d2b417c9 100644
--- a/src/test/util/chainstate.h
+++ b/src/test/util/chainstate.h
@@ -34,7 +34,8 @@ CreateAndActivateUTXOSnapshot(NodeContext& node, const fs::path root, F malleati
FILE* outfile{fsbridge::fopen(snapshot_path, "wb")};
CAutoFile auto_outfile{outfile, SER_DISK, CLIENT_VERSION};
- UniValue result = CreateUTXOSnapshot(node, node.chainman->ActiveChainstate(), auto_outfile);
+ UniValue result = CreateUTXOSnapshot(
+ node, node.chainman->ActiveChainstate(), auto_outfile, snapshot_path, snapshot_path);
BOOST_TEST_MESSAGE(
"Wrote UTXO snapshot to " << fs::PathToString(snapshot_path.make_preferred()) << ": " << result.write());