rpc: Add in_memory option to dumptxoutset with rollback

This commit is contained in:
Fabian Jahr
2026-03-14 22:31:41 +01:00
parent d0fd718948
commit fc736013a5
3 changed files with 26 additions and 6 deletions

View File

@@ -43,6 +43,12 @@ class DumptxoutsetTest(BitcoinTestFramework):
assert_equal(out['base_height'], target_height)
assert_equal(out['base_hash'], target_hash)
# Cover the same case as above with an in-memory database
out_mem = node.dumptxoutset("txoutset_fork_mem.dat", "rollback", {"rollback": target_height, "in_memory": True})
assert_equal(out_mem['base_height'], target_height)
assert_equal(out_mem['base_hash'], target_hash)
def run_test(self):
"""Test a trivial usage of the dumptxoutset RPC command."""
node = self.nodes[0]