0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-06 10:18:44 -05:00
bitcoin-bitcoin-core/src/wallet/test
Antoine Riard 6a72f26968 [wallet] Remove locked_chain from CWallet, its RPCs and tests
This change is intended to make the bitcoin node and its rpc, network
and gui interfaces more responsive while the wallet is in use. Currently
because the node's cs_main mutex is always locked before the wallet's
cs_wallet mutex (to prevent deadlocks), cs_main currently stays locked
while the wallet does relatively slow things like creating and listing
transactions.

This commit only remmove chain lock tacking in wallet code, and invert
lock order from cs_main, cs_wallet to cs_wallet, cs_main.
must happen at once to avoid any deadlock. Previous commit were only
removing Chain::Lock methods to Chain interface and enforcing they
take cs_main.

Remove LockChain method from CWallet and Chain::Lock interface.
2020-04-30 14:41:24 -04:00
..
coinselector_tests.cpp Merge #18673: scripted-diff: Sort test includes 2020-04-17 10:12:13 -04:00
db_tests.cpp scripted-diff: test: Move setup_common to test library 2019-11-06 11:56:41 -05:00
init_test_fixture.cpp scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
init_test_fixture.h scripted-diff: test: Move setup_common to test library 2019-11-06 11:56:41 -05:00
init_tests.cpp scripted-diff: test: Move setup_common to test library 2019-11-06 11:56:41 -05:00
ismine_tests.cpp Refactor: Allow LegacyScriptPubKeyMan to be null 2020-01-23 16:34:28 -05:00
psbt_wallet_tests.cpp scripted-diff: Bump copyright headers 2020-04-16 13:33:09 -04:00
scriptpubkeyman_tests.cpp wallet: Improve LegacyScriptPubKeyMan::CanProvide script recognition 2020-02-12 11:48:30 -05:00
wallet_crypto_tests.cpp scripted-diff: test: Move setup_common to test library 2019-11-06 11:56:41 -05:00
wallet_test_fixture.cpp scripted-diff: Bump copyright headers 2020-04-16 13:33:09 -04:00
wallet_test_fixture.h scripted-diff: Bump copyright headers 2020-04-16 13:33:09 -04:00
wallet_tests.cpp [wallet] Remove locked_chain from CWallet, its RPCs and tests 2020-04-30 14:41:24 -04:00