Skip to content

Twins cleanup - #276

Merged
meling merged 6 commits into
mainfrom
meling/twins-clean-up
Nov 16, 2025
Merged

meling merged 6 commits into
mainfrom
meling/twins-clean-up

Conversation

@meling

@meling meling commented Nov 16, 2025 •

Copy link
Copy Markdown
Member

This fixes several bugs and fixes the initialization approach for the timeout ruler and consensus ruler.

Fixes #189

In a recent change, the partitions now require a full NodeID,
and thus the fhsBugScenario failed to parse the old JSON format.
This simplifies creating custom consensus rules for twins.
This harmonizes the creation of the TimeoutRuler to be based only
on the RuntimeConfig instead of custom if-else logic scattered
around the codebase.
This makes it possible to pass down runtime options specific for
a given scenario, e.g., if we use fasthotstuff, we need to pass
the WithAggregateQC() option.
We now have a global NewTimeoutRuler() constructor function that
encapsulate all TimeoutRulers. This replaces existing calls to
NewSimple and NewAggregate and unexports these.
@meling
meling merged commit e37f4c6 into main Nov 16, 2025
4 checks passed
@meling
meling deleted the meling/twins-clean-up branch November 16, 2025 01:06
@meling
meling restored the meling/twins-clean-up branch November 16, 2025 01:09
@meling
meling deleted the meling/twins-clean-up branch November 16, 2025 01:09
@meling meling mentioned this pull request Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Twins tests

1 participant