HomePhabricator

wallet: GetWalletTx requires cs_wallet lock

Description

wallet: GetWalletTx requires cs_wallet lock

Summary:
PR description:

This change removes some unlock/lock and lock/lock cases regarding GetWalletTx and IsMine overloads.

This is a backport of core#19289 [1/3]
https://github.com/bitcoin/bitcoin/pull/19289/commits/a13cafc6c6998baedf3c5766259c21fcd763b99e

Test Plan:
With TSAN:
ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10095

Details

Provenance
João Barbosa <joao.paulo.barbosa@gmail.com>Authored on Jun 15 2020, 21:57
PiRKCommitted on Sep 14 2021, 06:24
PiRKPushed on Sep 14 2021, 06:24
Reviewer
Restricted Project
Differential Revision
D10095: wallet: GetWalletTx requires cs_wallet lock
Parents
rABC9f6318190b26: wallet, refactor: Remove duplicate map lookups in GetAddressBalances
Branches
Unknown
Tags
Unknown