CodeChain-io / CodeChain-io/foundry

Make UpdateConsensus to choose the proposer

Offen
#603 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
36
Forks
11
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Foundry host eventually has to use the 0th validator given by `UpdateConsensus`, as the proposer.
This will remove old CodeChain proposer selection logic https://github.com/CodeChain-io/foundry/pull/602#pullrequestreview-556853470.
And also, to express complicated staking rule considering tendermint process, we have to pass the current view (round) to the module, via `block_opened()`.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Locate the UpdateConsensus and block_opened entry points, then read the linked pull request review for the existing proposer-selection context. Trace how the current view is passed into the module and how validators are returned. Done means UpdateConsensus exposes the proposer through its validator result and the old host-side selection logic is removed.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust
Bereich
blockchain
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.