lbrycrd/src/wallet
Wladimir J. van der Laan a74ed3a05b
Merge #14453: rpc: Fix wallet unload during walletpassphrase timeout
8907df9e02 qa: Ensure wallet unload during walletpassphrase timeout (João Barbosa)
321decffa1 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
2018-10-24 16:44:43 +02:00
..
test Merge #11634: wallet: Add missing cs_wallet/cs_KeyStore locks to wallet 2018-10-24 05:01:29 -04:00
coincontrol.cpp Add -avoidpartialspends and m_avoid_partial_spends 2018-07-24 15:05:37 +09:00
coincontrol.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
coinselection.cpp util: Replace boost::signals2 with std::function 2018-08-24 08:34:38 -04:00
coinselection.h amount: Move CAmount CENT to unit test header 2018-09-17 14:34:56 -04:00
crypter.cpp Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations. 2018-08-27 18:19:33 +02:00
crypter.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
db.cpp Merge #12493: [wallet] Reopen CDBEnv after encryption instead of shutting down 2018-09-14 10:43:35 +02:00
db.h Add function to close all Db's and reload the databae environment 2018-08-09 11:27:39 -07:00
feebumper.cpp [wallet] Kill accounts 2018-08-30 16:08:42 +02:00
feebumper.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
fees.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
fees.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
init.cpp wallet: Remove trailing separators from -walletdir arg 2018-09-12 21:05:53 -04:00
rpcdump.cpp Move boost/std fstream to fsbridge 2018-09-26 08:47:42 +08:00
rpcwallet.cpp Merge #14453: rpc: Fix wallet unload during walletpassphrase timeout 2018-10-24 16:44:43 +02:00
rpcwallet.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
wallet.cpp wallet: Add missing locks 2018-10-09 11:58:32 +02:00
wallet.h Add GUARDED_BY(cs_wallet) for setExternalKeyPool, mapKeyMetadata, m_script_metadata and setLockedCoins 2018-10-09 15:04:26 +02:00
walletdb.cpp Merge #13249: Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations. 2018-09-04 15:50:08 +02:00
walletdb.h [wallet] Kill accounts 2018-08-30 16:08:42 +02:00
walletutil.cpp wallet: Add ListWalletDir utility 2018-10-18 23:26:06 +01:00
walletutil.h wallet: Add ListWalletDir utility 2018-10-18 23:26:06 +01:00