HomePhabricator

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

Description

[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

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Maniphest Tasks: T1854

Differential Revision: https://reviews.bitcoinabc.org/D10253

Details

Provenance
FabienAuthored on Oct 5 2021, 09:11
FabienPushed on Oct 6 2021, 07:24
Reviewer
Restricted Project
Differential Revision
D10253: [avalanche] Turn the vote registration logic into a generic lambda
Parents
rABC0ddd20024bf7: bugfix: make LoadWallet assigns status always
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task