Page MenuHomePhabricator

[avalanche] Add helper function Proof::amountToScore().
ClosedPublic

Authored by tyler-smith on Mar 16 2022, 00:38.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABC12185af8e7b6: [avalanche] Add helper function Proof::amountToScore().
Summary

There are multiple places we want to convert an Amount of stake into a proof score, so pull that
logic into it's own helper function. Score computation logic in tested in the Avalanche unit tests,
which covers this behavior.

Test Plan
ninja check-avalanche

Diff Detail

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