diff options
author | Samuel Dobson <dobsonsa68@gmail.com> | 2020-08-31 22:13:19 +1200 |
---|---|---|
committer | Samuel Dobson <dobsonsa68@gmail.com> | 2020-08-31 22:45:27 +1200 |
commit | 7721b318099e0847ead8d4e864ad3daf4078d547 (patch) | |
tree | 1972eee09ccf41923a021e4b7f02e3ba1cccd7be /test | |
parent | 61b8c04d78fb116e1722659ac455ad27856c6604 (diff) | |
parent | 772ea4844c34ad70d02fd0bd6c0945baa8fff85c (diff) |
Merge #19773: wallet: Avoid recursive lock in IsTrusted
772ea4844c34ad70d02fd0bd6c0945baa8fff85c wallet: Avoid recursive lock in IsTrusted (João Barbosa)
819f10f6718659eeeec13af2ce831df3a0984090 wallet, refactor: Immutable CWalletTx::pwallet (João Barbosa)
Pull request description:
This change moves `CWalletTx::IsTrusted` to `CWallet` in order to have TSAN. So now `CWallet::IsTrusted` requires `cs_wallet` and the recursive lock no longer happens.
Motivated by https://github.com/bitcoin/bitcoin/pull/19289/files#r473308226.
ACKs for top commit:
meshcollider:
utACK 772ea4844c34ad70d02fd0bd6c0945baa8fff85c
hebasto:
ACK 772ea4844c34ad70d02fd0bd6c0945baa8fff85c, reviewed and tested on Linux Mint 20 (x86_64).
Tree-SHA512: 702ffd928b2f42a8b90de398790649a5fd04e1ac3877558da928e94cdeb19134883f06c3a73a6826c11c912facf199173375a70200737e164ccaea1bec515b2a
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions