HomePhabricator

[avalanche] Make sure we keep the read lock when reading from VoteRecord

Description

[avalanche] Make sure we keep the read lock when reading from VoteRecord

Summary: At least two function read from VoteRecord after releasing the read lock from vote_records, which is incorrect.

Test Plan:

make check

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: teamcity, schancel

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

Details

Provenance
deadalnixAuthored on Feb 1 2019, 02:18
deadalnixPushed on Feb 3 2019, 17:24
Reviewer
Restricted Project
Differential Revision
D2470: [avalanche] Make sure we keep the read lock when reading from VoteRecord
Parents
rSTAGING6bcf11b84499: fix ineffective checkdatasig_tests
Branches
Unknown
Tags
Unknown