Page MenuHomePhabricator

[avalanche] Poll for stake contenders
Needs RevisionPublic

Authored by roqqit on Wed, Jan 29, 23:51.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Summary

Poll for stake contenders after they have been promoted to a new chain tip.

Responses to polls will be handled in a follow up diff.

Depends on D17615

Test Plan
ninja check-functional

Event Timeline

roqqit published this revision for review.Thu, Jan 30, 17:03
roqqit edited the summary of this revision. (Show Details)
roqqit edited the test plan for this revision. (Show Details)
Fabien requested changes to this revision.Thu, Jan 30, 20:45
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/avalanche/processor.cpp
1069 ↗(On Diff #52453)

This function is no longer doing this but much more. Either change the name or split the function (probably better as it makes unit testing possible).

It also causes the addToReconcile to happen twice per block because this function is called upon updatedBlockTip as well as when staking reward winners are computed.

This revision now requires changes to proceed.Thu, Jan 30, 20:45