Page MenuHomePhabricator

[backport#15931 8/9] Remove locked_chain from GetDepthInMainChain and its callers
ClosedPublic

Authored by majcosta on Sep 22 2020, 03:51.

Details

Summary

We don't remove yet Chain locks as we need to preserve lock
order with CWallet one until swapping at once to avoid
deadlock failures (spotted by --enable-debug)


https://github.com/bitcoin/bitcoin/pull/15931/commits/b66c429c56c85fa16c309be0b2bca9c25fdd3e1a

Depends on D7512

Partial backport of PR15931

Test Plan
ninja check check-functional

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/wallet/rpcwallet.cpp
1878 ↗(On Diff #23655)

You're missing a dependency on https://github.com/bitcoin/bitcoin/pull/17258/files

Edit: Looking closer the dependency can be added after this is landed

This revision is now accepted and ready to land.Sep 22 2020, 06:37