test: Test for dumptxoutset at specific height

This commit is contained in:
Fabian Jahr committed 2024-09-01 20:56:39 +02:00
1 parent 993cafe7e4
commit 8426850352
2 files changed
+46 -4

No files matched your search

+4
View File
@@ -56,6 +56,10 @@ class DumptxoutsetTest(BitcoinTestFramework):
assert_raises_rpc_error(
-8, "Couldn't open file {}.incomplete for writing".format(invalid_path), node.dumptxoutset, invalid_path, "latest")
self.log.info(f"Test that dumptxoutset with unknown dump type fails")
assert_raises_rpc_error(
-8, 'Invalid snapshot type "bogus" specified. Please specify "rollback" or "latest"', node.dumptxoutset, 'utxos.dat', "bogus")
if __name__ == '__main__':
DumptxoutsetTest(__file__).main()