Page MenuHomePhabricator

[avalanche] Turn the vote registration logic into a generic lambda
ClosedPublic

Authored by Fabien on Tue, Oct 5, 09:15.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABC1d05f7f567ec: [avalanche] Turn the vote registration logic into a generic lambda
Summary

This is a preliminary step before being able to register a vote on a proof.
The vote registration logic will be the exact same between blocks and proofs, but works on different types. Using a generic lambda makes it possible to share the code snippet for any types with a compatible interface.

There is no change in behavior.

Ref T1854.

Test Plan
ninja all check-all

Diff Detail

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