Page MenuHomePhabricator

[avalanche] Return pending stake contender status when there is no local staking rewards computed
Needs RevisionPublic

Authored by roqqit on Fri, Nov 15, 18:11.

Details

Reviewers
Fabien
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Summary

Before staking rewards is computed on the local node, we cannot be sure
of our vote on any particular contender. To avoid convergence issues, we
respond with a pending status.

This also makes contender voting slightly more robust in the unexpected event
that staking rewards fails to be computed for a block due to a bug or
otherwise.

Test Plan
ninja check-avalanche

Diff Detail

Event Timeline

Owners added a reviewer: Restricted Owners Package.Fri, Nov 15, 18:11
roqqit requested review of this revision.Fri, Nov 15, 18:11
Fabien requested changes to this revision.Fri, Nov 15, 18:14
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/avalanche/test/processor_tests.cpp
2521

You no longer have an invalid case in this test, it's worth adding it (either here or in a separate diff)

This revision now requires changes to proceed.Fri, Nov 15, 18:14