Page MenuHomePhabricator

[avalanche] Clear updates on each call to registerVotes
ClosedPublic

Authored by roqqit on Fri, Jan 24, 19:53.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC221da91fe481: [avalanche] Clear updates on each call to registerVotes
Summary

Since the API does not explicitly call for appending to updates, it is unintuitive for updates to not clear on each registerVotes call. This can lead to difficult to debug unit test failures where registerVotes appears to emit updates that were actually from past calls but never cleared.

Test Plan
ninja check-avalanche-processor_tests

Diff Detail

Event Timeline

roqqit requested review of this revision.Fri, Jan 24, 19:53
Fabien requested changes to this revision.Sat, Jan 25, 15:06
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/avalanche/processor.cpp
601

not here, do it unconditionally at the beginning of the function

This revision now requires changes to proceed.Sat, Jan 25, 15:06
This revision is now accepted and ready to land.Mon, Jan 27, 21:26