HomePhabricator

[avalanche] Slightly reduce cs_main scope in registerVotes

Description

[avalanche] Slightly reduce cs_main scope in registerVotes

Summary:
This is a follow-up to D10379. Since IsWorthPolling() also requires the lock, the WITH_LOCK() macro is not used here. There is no change in behavior.

Ref T1854.

Depends on D10379.

Test Plan:

ninja all check-avalanche

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Maniphest Tasks: T1854

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

Details

Provenance
FabienAuthored on Oct 21 2021, 16:38
FabienPushed on Nov 2 2021, 10:32
Reviewer
Restricted Project
Differential Revision
D10391: [avalanche] Slightly reduce cs_main scope in registerVotes
Parents
rABCb1e53bef68c6: [avalanche] Avoid O(n2) when voting on proofs
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task