Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Small refactoring of `Canonical`
Merged fintohaps opened 10 months ago

The Canonical type is generally constructed with the threshold, needed for the quorum computation, in scope. To make it easier to use and encapsulate its functionality, it now holds the threshold as an additional field.

Changes for the Canonical type:

  • Reorder arguments so that delegates and threshold are grouped after refname
  • Add Canonical::is_empty to detect when Canonical was constructed with no tips
  • Consume Canonical when calling Canonical::quorum to indicate that it should be the final step
fintohaps opened with revision 87c550d3 on base b614167b +33 -15 10 months ago

The Canonical type is generally constructed with the threshold, needed for the quorum computation, in scope. To make it easier to use and encapsulate its functionality, it now holds the threshold as an additional field.

Changes for the Canonical type:

  • Reorder arguments so that delegates and threshold are grouped after refname
  • Add Canonical::is_empty to detect when Canonical was constructed with no tips
  • Consume Canonical when calling Canonical::quorum to indicate that it should be the final step
lorenz merged revision 87c550d3 at ab62dce6 10 months ago