Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support changing stakers at runtime #2567

Merged
merged 11 commits into from Jun 1, 2019
Merged

Commits on May 30, 2019

  1. Support changing stakers at runtime

    We always start proposing now and with a set of keypairs. If the set is
    empty it's effectively the same thing as not proposing. Proposing is not
    interrupted by a change in staking keypairs, but it is woken up by this
    change. If we are in the middle of staking with different keypairs, that
    action is finished before the new keys kick in.
    
    Local_state is now a table from public keys to delegation info and we
    check vrfs for all the keypairs that we wish to stake.
    
    I've included a handler in Ledger.ml as it may be useful later even
    though I ended up not using it in this PR.
    
    Haven't tested thoroughly yet.
    bkase committed May 30, 2019
    Copy the full SHA
    97aead8 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    63ba134 View commit details
    Browse the repository at this point in the history
  3. Requested changes

    1. Precompute compressed public keys via Keypair.And_compressed_pk.Set.t
    2. Move Agent to Otp_lib and make it backed by a ref
    3. Fix N+1 query problem on delegatees
    4. Store unique epoch/slot pairs for each pk we're tracking and set
    intersect with the new keys
    bkase committed May 30, 2019
    Copy the full SHA
    cc3cb5f View commit details
    Browse the repository at this point in the history

Commits on May 31, 2019

  1. Requested changes

    bkase committed May 31, 2019
    Copy the full SHA
    83150b2 View commit details
    Browse the repository at this point in the history
  2. Flipped a bool, clean up code

    bkase committed May 31, 2019
    Copy the full SHA
    fd0ab39 View commit details
    Browse the repository at this point in the history
  3. Off-by-one error in sparse_ledger.iteri

    Plus quickcheck test for confirmation
    bkase committed May 31, 2019
    Copy the full SHA
    89b02a1 View commit details
    Browse the repository at this point in the history
  4. Remove extra debug logging

    bkase committed May 31, 2019
    Copy the full SHA
    72aa4ce View commit details
    Browse the repository at this point in the history
  5. Safely lookup delegators

    bkase committed May 31, 2019
    Copy the full SHA
    6429b29 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2019

  1. Copy the full SHA
    c81453d View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    543b3d3 View commit details
    Browse the repository at this point in the history
  3. Merge fixup

    bkase committed Jun 1, 2019
    Copy the full SHA
    5370fc8 View commit details
    Browse the repository at this point in the history