mirror of https://github.com/bitcoin/bitcoin
pull/26865/head109cbb819d
doc: Add release notes for #26618 (Aurèle Oulès)b13902d2e4
rpc: Prevent unloading a wallet when rescanning (Aurèle Oulès) Pull request description: Fixes #26463. This PR prevents a user from unloading a wallet if it is currently rescanning. To test: ```bash ./src/bitcoin-cli -testnet -named createwallet wallet_name=wo disable_private_keys=true ./src/bitcoin-cli -testnet -rpcwallet=wo importdescriptors '[{ "desc": "addr(mmcuW74MyJUZuLnWXGQLoNXPrS9RbFz6gD)#tpnrahgc", "timestamp": 0, "active": false, "internal": false, "next": 0 }]' ./src/bitcoin-cli -testnet unloadwallet wo error code: -4 error message: Wallet is currently rescanning. Abort existing rescan or wait. ACKs for top commit: achow101: ACK109cbb819d
w0xlt: ACK109cbb819d
kouloumos: ACK109cbb819d
promag: ACK109cbb819d
Tree-SHA512: 15fdddf4cf9f3fa08f52069fe4a25a76e04a55bb2586b031bfb0393dce7f175dcdb52823e132a7dff6a894539beeb980a1aad2a792790be036be6977628149b2
commit
1aedc3b6c8
@ -0,0 +1,4 @@
|
||||
RPC Wallet
|
||||
----------
|
||||
|
||||
- RPC `unloadwallet` now fails if a rescan is in progress. (#26618)
|
Loading…
Reference in new issue