mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02:00
Bugfix: RPC: blockchain: Actually include "temporary" flag in listprunelocks result
This commit is contained in:
parent
53e5476b40
commit
11e1e09759
@ -861,6 +861,7 @@ static RPCHelpMan listprunelocks()
|
||||
heights_uv.push_back(lock_info.height_last);
|
||||
}
|
||||
prune_lock_uv.pushKV("height", heights_uv);
|
||||
prune_lock_uv.pushKV("temporary", lock_info.temporary);
|
||||
locks_uv.push_back(prune_lock_uv);
|
||||
}
|
||||
}
|
||||
|
@ -330,7 +330,7 @@ class PruneTest(BitcoinTestFramework):
|
||||
"desc": "Testing",
|
||||
"height": [2, 2],
|
||||
})
|
||||
assert_equal(node.listprunelocks(), {'prune_locks': [{'id': 'test', 'desc': 'Testing', 'height': [2, 2]}]})
|
||||
assert_equal(node.listprunelocks(), {'prune_locks': [{'id': 'test', 'desc': 'Testing', 'height': [2, 2], 'temporary': False}]})
|
||||
prune(500)
|
||||
assert has_block(0), "blk00000.dat is missing when should still be there"
|
||||
node.setprunelock("test", {}) # delete prune lock
|
||||
|
Loading…
Reference in New Issue
Block a user