Page MenuHomePhabricator

[avalanche] remove StakeSigner class
ClosedPublic

Authored by PiRK on Sep 6 2022, 10:50.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC8edd99cb9e35: [avalanche] remove StakeSigner class
Summary

This class was introduced for the legacy proof format because the stakes could not be signed before the proof data was complete. With the new proof format, each stake can be signed independently of other stakes, so the ProofBuilder can directly store the SignedStakes

Depends on D11914

Test Plan

ninja all check-all

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Sep 6 2022, 10:50
Fabien requested changes to this revision.Sep 6 2022, 12:41
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/avalanche/proof.h
89 ↗(On Diff #34819)

You don't need to make this public, as all you need is a ro reference access to the member

This revision now requires changes to proceed.Sep 6 2022, 12:41

use accessor method instead of making stake public

This revision is now accepted and ready to land.Sep 7 2022, 09:35
This revision was automatically updated to reflect the committed changes.