Glutton pallet (#12833)
* Pov-Limit pallet * use Perbill & fixes * fixes * reads & writes * update docs * tests * calculate weight * fmt * benchmark * logic fix * naming fix * caclulate computation weight limit * make the Hasher generic * make the code compile * generate weight * fix on_idle * fix * fix * make reading generic * fix? * fixes * remove warning * fix * hasher fix :D * change value * test * actual weight and expected weight are the same * update * fix * add events * remove useless line * using actual hashing algorithm * better readability * fix nits * Update Signed-off-by:Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * add migration * hardcode proof_size in weights.rs * format * fixes * Fix weight * docs * fix * Update frame/pov-limit/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update frame/pov-limit/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * empty on_ilde & update weight.rs * remove migration & fix benchmark * remove migration from migrations * initialize_pallet * use blake2 * Update frame/pov-limit/Cargo.toml Co-authored-by:
Bastian Köcher <git@kchr.de> * Update frame/pov-limit/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update frame/pov-limit/Cargo.toml Co-authored-by:
Bastian Köcher <git@kchr.de> * rename pallet * make the wasters non-generic * rename to glutton * fix * small fixes & run benchmark * increase left over ref-time in tests * Update frame/glutton/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * or values * fix * generate weight * Update frame/glutton/Cargo.toml Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fix nits * Adjustments Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fixes Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fix * Update weights Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Tweak constants Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update weights Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * remove genesis config * passing tests * More precise results Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * update node-executor test * Calculate number of iterations in advance Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * increase criteria * Final fixes Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update frame/glutton/src/tests.rs Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/glutton/src/lib.rs Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/glutton/src/lib.rs Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * fix typos * Update frame/glutton/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update frame/glutton/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * expand/shrink * fmt * Revert "Update frame/glutton/src/lib.rs" This reverts commit 98a237afd27de3deb15ba381871e12f71a9d71b1. Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use CountedStorageMap Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add benchmark Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use manual map counter Something with the R/W count in the benchmarking result did not add up. Need to investigate but for now just using a manual counter. Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use new template Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Doc+typos Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton * Apply suggestions from code review Co-authored-by:
Koute <koute@users.noreply.github.com> * Add minimal README Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton --------- Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by:
Bastian Köcher <git@kchr.de> Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: command-bot <> Co-authored-by:
Koute <koute@users.noreply.github.com>
Showing
- substrate/Cargo.lock 20 additions, 0 deletionssubstrate/Cargo.lock
- substrate/Cargo.toml 1 addition, 0 deletionssubstrate/Cargo.toml
- substrate/bin/node/executor/Cargo.toml 1 addition, 0 deletionssubstrate/bin/node/executor/Cargo.toml
- substrate/bin/node/runtime/Cargo.toml 4 additions, 0 deletionssubstrate/bin/node/runtime/Cargo.toml
- substrate/bin/node/runtime/src/lib.rs 7 additions, 0 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/glutton/Cargo.toml 51 additions, 0 deletionssubstrate/frame/glutton/Cargo.toml
- substrate/frame/glutton/README.md 9 additions, 0 deletionssubstrate/frame/glutton/README.md
- substrate/frame/glutton/src/benchmarking.rs 98 additions, 0 deletionssubstrate/frame/glutton/src/benchmarking.rs
- substrate/frame/glutton/src/lib.rs 292 additions, 0 deletionssubstrate/frame/glutton/src/lib.rs
- substrate/frame/glutton/src/mock.rs 80 additions, 0 deletionssubstrate/frame/glutton/src/mock.rs
- substrate/frame/glutton/src/tests.rs 226 additions, 0 deletionssubstrate/frame/glutton/src/tests.rs
- substrate/frame/glutton/src/weights.rs 324 additions, 0 deletionssubstrate/frame/glutton/src/weights.rs
Please register or sign in to comment