mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
test: Avoid excessive locking of cs_wallet
This commit is contained in:
parent
7986faf2e0
commit
68018e4c3e
1 changed files with 2 additions and 1 deletions
|
|
@ -14,8 +14,9 @@
|
|||
BOOST_FIXTURE_TEST_SUITE(psbt_wallet_tests, WalletTestingSetup)
|
||||
|
||||
static void import_descriptor(CWallet& wallet, const std::string& descriptor)
|
||||
EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)
|
||||
{
|
||||
LOCK(wallet.cs_wallet);
|
||||
AssertLockHeld(wallet.cs_wallet);
|
||||
FlatSigningProvider provider;
|
||||
std::string error;
|
||||
std::unique_ptr<Descriptor> desc = Parse(descriptor, provider, error, /* require_checksum=*/ false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue