Page MenuHomePhabricator

[avalanche] Determine proof acceptance status from the peer manager
ClosedPublic

Authored by Fabien on Oct 21 2021, 16:07.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABC7ee4daf36673: [avalanche] Determine proof acceptance status from the peer manager
Summary

Rather than supplying the acceptance status to addProofToReconcile(), extract it from the peer manager.

Ref T1854.

Depends on D10377.

Test Plan
ninja check-avalanche

Diff Detail

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

Event Timeline

Fabien requested review of this revision.Oct 21 2021, 16:07
deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
src/avalanche/processor.cpp
272 ↗(On Diff #30633)
bool isAccepted = WITH_LOCK(cs_peerManager, return peerManager->isValid(proof->getId());
This revision is now accepted and ready to land.Oct 21 2021, 20:21