diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-10-24 16:41:18 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-10-24 16:44:43 +0200 |
| commit | a74ed3a05b27886e0a674c328e7ae13da8cacadb (patch) | |
| tree | 10e24cc89360cf83b69f4c490f026d7ddc6f3636 /src/httpserver.cpp | |
| parent | Merge #14451: Add BIP70 deprecation warning and allow building GUI without BI... (diff) | |
| parent | qa: Ensure wallet unload during walletpassphrase timeout (diff) | |
| download | discoin-a74ed3a05b27886e0a674c328e7ae13da8cacadb.tar.xz discoin-a74ed3a05b27886e0a674c328e7ae13da8cacadb.zip | |
Merge #14453: rpc: Fix wallet unload during walletpassphrase timeout
8907df9e02ec47ef249a7422faa766f06aa01e94 qa: Ensure wallet unload during walletpassphrase timeout (João Barbosa)
321decffa1fbf213462d97e5372bd0c4eeb99635 rpc: Fix wallet unload during walletpassphrase timeout (João Barbosa)
Pull request description:
Replaces the raw wallet pointer in the `RPCRunLater` callback with a `std::weak_ptr` to check if the wallet is not expired.
To test:
```
bitcoind -regtest
bitcoin-cli -regtest encryptwallet foobar
bitcoin-cli -regtest walletpassphrase foobar 5 && bitcoin-cli -regtest unloadwallet ""
```
Fixes #14452.
Tree-SHA512: 311e839234f5fb7955ab5412a2cfc1903ee7132ea56a8ab992ede3614586834886bd65192b76531ae0aa3a526b38e70ca2e1cdbabe52995906ff97b49d93c268
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions