Page MenuHomePhabricator

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

Authored by Fabien on Oct 5 2021, 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
Branch
avalanche_registervote_lambda
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 16882
Build 33603: Build Difflint-circular-dependencies · build-without-wallet · build-diff · build-debug · build-clang-tidy · build-clang
Build 33602: arc lint + arc unit