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

Add extrinsic to improve position in a bag of bags-list #9829

Merged
merged 42 commits into from
Dec 8, 2021

Commits on Sep 21, 2021

  1. pallet-bags-list: Add put_in_front_of extrinsic

    This PR adds the extrinsic `put_in_front_of` which allows the user to specify a `lighter` and `heavier` account within the same bag. The extrinsic will move `heavier` directly in front of `lighter`.  The parameter names refer to the fact that `lighter` must have a lower `VoteWeight` then `heavier`. 
    
    In the ideal use case, where a user wants to improve the position of their account within a bag, the user would iterate the bag, starting from the head, and find the first node who's `VoteWeight` is less than theirs. They would then supply the `id` of the node as the `lighter` argument and their own `id` as the `heavier` argument.
    emostov committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    c414583 View commit details
    Browse the repository at this point in the history
  2. Test & Benchmarks

    emostov committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    331df1b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e7c016c View commit details
    Browse the repository at this point in the history
  4. Respect line width

    emostov committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    2401b2b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    60743cc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6bb232f View commit details
    Browse the repository at this point in the history
  7. Add some periods

    emostov committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    45f4a73 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f04a64c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ce0fcfb View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2021

  1. Configuration menu
    Copy the full SHA
    aa0aaeb View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2021

  1. Configuration menu
    Copy the full SHA
    fa1a33d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    21aef98 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7433cf6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1760815 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fcc29d2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    afff2a9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b75457f View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2021

  1. Configuration menu
    Copy the full SHA
    fd1daeb View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2021

  1. Try merge origin master

    emostov committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    f5a854f View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2021

  1. Configuration menu
    Copy the full SHA
    a12f094 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. Configuration menu
    Copy the full SHA
    d5f82ac View commit details
    Browse the repository at this point in the history
  2. Address some feedback

    emostov committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    f3f992c View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2021

  1. Configuration menu
    Copy the full SHA
    927a383 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    387ab0d View commit details
    Browse the repository at this point in the history
  3. Add skip_genesis_ids

    emostov committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    7d5a1ca View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2add927 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2021

  1. Configuration menu
    Copy the full SHA
    fe120d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d135b8f View commit details
    Browse the repository at this point in the history
  3. fmt

    emostov committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    7530d1a View commit details
    Browse the repository at this point in the history
  4. Merge branch 'master' of https://github.com/paritytech/substrate into…

    … zeke-change-bag-position
    Parity Bot committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    cd39dc9 View commit details
    Browse the repository at this point in the history
  5. cargo run --quiet --release --features=runtime-benchmarks --manifest-…

    …path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    Parity Bot committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    fd751fc View commit details
    Browse the repository at this point in the history
  6. Delete messed up weights file

    emostov committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    f5b0224 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    91317bd View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. Fix

    emostov committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    6af64ce View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of https://github.com/paritytech/substrate into…

    … zeke-change-bag-position
    Parity Bot committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    3382286 View commit details
    Browse the repository at this point in the history
  3. cargo run --quiet --release --features=runtime-benchmarks --manifest-…

    …path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    Parity Bot committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    56ea8cc View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2021

  1. Configuration menu
    Copy the full SHA
    a96e495 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2021

  1. Update frame/bags-list/src/list/mod.rs

    Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
    emostov and thiolliere committed Dec 6, 2021
    Configuration menu
    Copy the full SHA
    77fd777 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2021

  1. fmt

    emostov committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    aa4d896 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    944dc85 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ae188ae View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2eb86e5 View commit details
    Browse the repository at this point in the history