mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-31 00:05:13 +02:00
Merge bitcoin/bitcoin#23065: Allow UTXO locks to be written to wallet DB
d96b000e94Make GUI UTXO lock/unlock persistent (Samuel Dobson)077154fe69Add release note for lockunspent change (Samuel Dobson)719ae927dcUpdate lockunspent tests for lock persistence (Samuel Dobson)f13fc16295Allow lockunspent to store the lock in the wallet DB (Samuel Dobson)c52789365eAllow locked UTXOs to be store in the wallet database (Samuel Dobson) Pull request description: Addresses and closes #22368 As per that issue (and its predecessor #14907), there seems to be some interest in allowing unspent outputs to be locked persistently. This PR does so by adding a flag to lockunspent to store the change in the wallet database. Defaults to false, so there is no change in default behaviour. Edit: GUI commit changes default behaviour. UTXOs locked/unlocked via the GUI are now persistent. ACKs for top commit: achow101: ACKd96b000e94kristapsk: ACKd96b000e94lsilva01: Tested ACKd96b000e94on Ubuntu 20.04 prayank23: ACKd96b000e94Tree-SHA512: 957a5bbfe7f763036796906ccb1598feb6c14c5975838be1ba24a198840bf59e83233165cb112cebae909b6b25bf27275a4d7fa425923ef6c788ff671d7a89a8
This commit is contained in:
15
doc/release-notes-23065.md
Normal file
15
doc/release-notes-23065.md
Normal file
@@ -0,0 +1,15 @@
|
||||
Notable changes
|
||||
===============
|
||||
|
||||
Updated RPCs
|
||||
------------
|
||||
|
||||
- `lockunspent` now optionally takes a third parameter, `persistent`, which
|
||||
causes the lock to be written persistently to the wallet database. This
|
||||
allows UTXOs to remain locked even after node restarts or crashes.
|
||||
|
||||
GUI changes
|
||||
-----------
|
||||
|
||||
- UTXOs which are locked via the GUI are now stored persistently in the
|
||||
wallet database, so are not lost on node shutdown or crash.
|
||||
Reference in New Issue
Block a user