-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Validation] Reduce cs_main locks during ConnectTip/SyncWithWallets #1721
[Validation] Reduce cs_main locks during ConnectTip/SyncWithWallets #1721
Conversation
089c5a9
to
2be4426
Compare
46dd507
to
610c7f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems we are introducing back the unused return value of SetMerkleBranch
(and relative chainActive
part, bringing back the need for AssertLockHeld(cs_main)
).
Someone had removed those already in #1520 :)
Coming from btc@867f842f1e5a385aeb2093f802d6f37a84d0fe5d
Coming from btc@5723bb44ce2c6bb14114aa7f211160702a47ac91
Adapted work coming from btc@b3b3c2a5623d5c942d2b3565cc2d833c65105555
Remove the unused variable "blockTmp" in CMerkleTx::SetMerkleBranch. It was previously used to read the block from disk if not provided as argument, but is no longer needed.
coming from btc@ec81881b86b9680fcdcc42fd3ba31f04b8d09714
610c7f7
to
3b2807f
Compare
Update per feedback. One more section without |
This will need more work. |
Looking good.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested ACK 4b4858b
(didn't test the zerocoin changes though)
adaptation of btc@989989354b68d3954fe2742b96c53eeb2e8a7670
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 9d1beb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 9d1beb3
Work done on top of #1717 .
Essentially an improvement over
SyncWithWallets
&SyncTransaction
flow to run without lockingcs_main
.(made as less modifications as possible over the zpiv wallet/chain files, no real need to improve that code.. most of it will disappear soon)
It's an adapted version of bitcoin#7946.