Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential deadlock in CInstantSend::UpdateLockedTransaction (#1571)
* cs_wallet -> cs_instantsend: getinfo(...) - LOCK2(cs_main, pwalletMain ? &pwalletMain->cs_wallet : NULL) CAmount CWallet::GetBalance() const - LOCK2(cs_main, cs_wallet) CWalletTx::IsTrusted() GetDepthInMainChain() CInstantSend::IsLockedInstantSendTransaction(...) - LOCK(cs_instantsend) cs_wallet -> cs_instantsend: CWallet::ReacceptWalletTransactions() - LOCK2(cs_main, cs_wallet) GetDepthInMainChain() CInstantSend::IsLockedInstantSendTransaction(...) - LOCK(cs_instantsend) cs_instantsend -> cs_wallet: void CInstantSend::UpdateLockedTransaction(...) - LOCK(cs_instantsend) CWallet::UpdatedTransaction(...) - LOCK(cs_wallet) * AssertLockHeld added
- Loading branch information