Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

client/beefy: persist voter state #12712

Merged
merged 17 commits into from
Nov 21, 2022

Commits on Nov 15, 2022

  1. Configuration menu
    Copy the full SHA
    47fddcb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    60d34ef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    50d2a9f View commit details
    Browse the repository at this point in the history
  4. client/beefy: try to vote from the very beginning

    Now that voter is initialized from persistent state, it makes
    sense that it can attempt voting right away. This also helps
    the genesis case when we consider block `One` as mandatory.
    acatangiu committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    27924e7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    975369d View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2022

  1. Configuration menu
    Copy the full SHA
    e46a6e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24e911f View commit details
    Browse the repository at this point in the history
  3. client/beefy: persist state after voting

    Persist state after handling self vote to avoid double voting in case
    of voter restarts.
    acatangiu committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    857043f View commit details
    Browse the repository at this point in the history
  4. client/beefy: persist state after handling mandatory block vote

    For mandatory blocks we want to make sure we're not losing votes
    in case of crashes or restarts, since voter will not make further
    progress without finalizing them.
    acatangiu committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    141ae2d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    da00582 View commit details
    Browse the repository at this point in the history
  6. client/beefy: initialize voter at either genesis or last finalized

    To guarantee unbroken chain of mandatory blocks justifications, voter
    will always resume from either last BEEFY-justified block or
    `pallet-beefy` genesis, whichever is more recent.
    
    Initialization walks back the chain from latest GRANDPA finalized
    block looking for one of the above. Along the way, it also records
    and enqueues for processing any BEEFY mandatory blocks that have
    been already GRANDPA finalized but not BEEFY finalized.
    acatangiu committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    30c18ce View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2022

  1. Configuration menu
    Copy the full SHA
    1b0e93e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e3e893 View commit details
    Browse the repository at this point in the history
  3. remove debug prints

    acatangiu committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    66f357a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cdbdd52 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ee0de17 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    372bb50 View commit details
    Browse the repository at this point in the history