Skip to content
  • Shawn Tabrizi's avatar
    Add Control to Growth of the Staking Pallet (#8920) · 36ac9111
    Shawn Tabrizi authored
    
    
    * start count
    
    * track count
    
    * add max limit
    
    * min bonds for participating
    
    * respect min bond when unbonding
    
    * revert a bit of u32
    
    * fix merge
    
    * more merge fixes
    
    * update to `Current*`
    
    * add helper functions
    
    * Update frame/staking/src/lib.rs
    
    Co-authored-by: default avatarKian Paimani <[email protected]>
    
    * fix
    
    * minbond as storage
    
    * checkpoint
    
    * chill_other
    
    * better bond tracking
    
    * MinBond to MinNominatorBond
    
    * better doc
    
    * use helper function
    
    * oops
    
    * simple hard limits to validators / nominators.
    
    * better doc
    
    * update storage version
    
    * fix tests
    
    * enable migrations
    
    * min bond tests
    
    * chill other tests
    
    * tests for max cap
    
    * check `None` on cap too
    
    * benchmarks
    
    * Update frame/staking/src/lib.rs
    
    * Update frame/staking/src/lib.rs
    
    Co-authored-by: default avatarZeke Mostov <[email protected]>
    
    * Update frame/staking/src/lib.rs
    
    Co-authored-by: default avatarZeke Mostov <[email protected]>
    
    * Update frame/staking/src/tests.rs
    
    Co-authored-by: default avatarZeke Mostov <[email protected]>
    
    * fix benchmark
    
    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    
    * nits
    
    * fix reap_stash benchmark
    
    * remove lower bound to min bond
    
    Co-authored-by: default avatarkianenigma <[email protected]>
    Co-authored-by: default avatarKian Paimani <[email protected]>
    Co-authored-by: default avatarParity Bot <[email protected]>
    Co-authored-by: default avatarZeke Mostov <[email protected]>
    36ac9111