AntelopeIO / spring

C++ implementation of the Antelope protocol with Savanna consensus
Other
9 stars 5 forks source link

Provide finalizer policy in SHiP finality_data only when it gets promoted to pending #320

Closed arhag closed 4 months ago

arhag commented 4 months ago

SHiP finality_data should only include the finalizer policy when it goes from proposed to pending That means renaming the existing field finality_data_t::proposed_finalizer_policy to finality_data_t::pending_finalizer_policy (but keeping the same type std::optional<finalizer_policy>) to capture the semantic change.

arhag commented 4 months ago

This replaces https://github.com/AntelopeIO/spring/issues/306.