ava-labs / avalanchego

Go implementation of an Avalanche node.
https://avax.network
BSD 3-Clause "New" or "Revised" License
2.12k stars 669 forks source link

Remove `Decided` from the `Consensus` interface #3123

Closed StephenButtolph closed 3 months ago

StephenButtolph commented 3 months ago

Why this should be merged

This PR simplifies the snowman.Consensus interface to not expose the Decided method.

How this works

The Decided method can be implemented directly on top of the existing snowman.Consensus interface.

How this was tested