diff options
author | stickies-v <stickies-v@protonmail.com> | 2022-09-27 19:21:51 +0100 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2022-09-29 17:32:53 +0100 |
commit | 01f3534632d18c772901fb6ce22f6394eae96799 (patch) | |
tree | f2f768d589f5473386107de865512d821acab62c /src/wallet/wallet.cpp | |
parent | c6e8e11fb030ef406752761530421a9e2f0f5d4f (diff) | |
download | bitcoin-01f3534632d18c772901fb6ce22f6394eae96799.tar.xz |
refactor: remove unused locks for ResubmitWalletTransactions
ReacceptWalletTransactions is replaced by ResubmitWalletTransactions
which already handles acquiring the necessary locks internally.
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 5c9a0133d0..6b54fc19ea 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3196,14 +3196,12 @@ bool CWallet::UpgradeWallet(int version, bilingual_str& error) void CWallet::postInitProcess() { - LOCK(cs_wallet); - // Add wallet transactions that aren't already in a block to mempool // Do this here as mempool requires genesis block to be loaded ResubmitWalletTransactions(/*relay=*/false, /*force=*/true); // Update wallet transactions with current mempool transactions. - chain().requestMempoolTransactions(*this); + WITH_LOCK(cs_wallet, chain().requestMempoolTransactions(*this)); } bool CWallet::BackupWallet(const std::string& strDest) const |