1. May 28, 2022
  2. May 27, 2022
  3. May 26, 2022
    • Shawn Tabrizi's avatar
      Storage Layer for All FRAME Extrinsics (#11431) · 8e7adaf2
      Shawn Tabrizi authored
      
      
      * add new trait
      
      * implement DispatchableWithStorageLayer
      
      * at least one transactional
      
      * all dispatch is at least transactional
      
      * storage_layer api
      
      * add test
      
      * storage layer tests
      
      * deprecate transactional tag
      
      * i guess no reason to deprecate
      
      * remove transactional from batch_all
      
      * update tests
      
      * extend trait
      
      * cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * fix copy paste name
      
      * cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Create run_all_benchmarks.sh
      
      * uncomment build
      
      * update number of steps and repeats
      
      * add skip build
      
      * Update run_all_benchmarks.sh
      
      * Update run_all_benchmarks.sh
      
      * new benchmarks
      
      * Update frame/support/src/traits/dispatch.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update frame/support/src/traits/dispatch.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update frame/support/test/tests/storage_layers.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update frame/support/test/tests/storage_layers.rs
      
      * weights
      
      * Update dispatch.rs
      
      * doc link
      
      * decl_macro support
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      8e7adaf2
  4. May 25, 2022
  5. May 24, 2022
    • Davide Galassi's avatar
      Fix Babe revert when last finalized block is a leaf (#11500) · 35af8fd7
      Davide Galassi authored
      * Fix Babe revert when a leaf is the last finalized block
      
      Without this fix the last finalized block weight data is wrongly removed
      on revert scenario where the last finalized block is a leaf.
      
      * Remove redundant check
      
      * Added test to exercise the fix
      
      * Rename test
      
      * Give variables better names
      35af8fd7
    • achimcc's avatar
      Contracts pallet: removal on idle (#11202) · f744a1a0
      achimcc authored
      
      
      * on_initialize -> on_idle
      
      * use remaining_weight info
      
      * no weight_limit for on_idle
      
      * call on_idle in tests
      
      * attempt to fix tests
      
      * run on_initiaize when queue full
      
      * add on_idle to weight info
      
      * add on_idle weight info to on_idle hook
      
      * add basic test for on_initialize with full queue
      
      * disbale check for all keys gone in full queue, full block test
      
      * queue_deth as usize, add comment
      
      * comment was removed by accident
      
      * Update frame/contracts/src/lib.rs
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      
      * cargo +nightly fmt
      
      * update lazy_removal_does_no_run_on_full_queue_and_full_block
      
      * remove changes in weights.rs
      
      * weights on_idle -> on_process_deletion_queue_batch
      
      * use block number for on_idle
      
      * use BlockNumber for on_initialize
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Update frame/contracts/src/lib.rs
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      
      * remove outcommented code
      
      * add check that queue still full for test
      
      * cargo fmt
      
      * cargo +nightly fmt
      
      * Update frame/contracts/src/benchmarking/mod.rs
      
      Co-authored-by: default avatarAlexander Gryaznov <[email protected]>
      
      * fix weights.rs
      
      * add lazy_removal_does_no_run_on_low_remaining_weight test
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAlexander Gryaznov <[email protected]>
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarAlexander Gryaznov <[email protected]>
      f744a1a0
    • Sergejs Kostjucenko's avatar
      add rule to the ci job (#11511) · 6198a5fb
      Sergejs Kostjucenko authored
      6198a5fb
    • Kian Paimani's avatar
      Optimize offchain worker memory usage a bit. (#11454) · 494167a0
      Kian Paimani authored
      * add missing events to elections fallback
      
      * Merged
      
      * add some logs and stuff
      
      * undo a bunch of things
      
      * undo lock file
      
      * remove unused err
      
      * fix build
      494167a0
    • Koute's avatar
      Adjust maximum memory pages hard limit for the pooling instantiation strategy (#11482) · 4f393171
      Koute authored
      * Run `sc-executor-wasmtime` unit tests for all instantiation strategies
      
      * Adjust maximum memory pages hard limit for the pooling instantiation strategy
      4f393171
  6. May 23, 2022
  7. May 22, 2022
  8. May 21, 2022
  9. May 20, 2022
  10. May 19, 2022
  11. May 18, 2022
  12. May 17, 2022
    • Bastian Köcher's avatar
      generate_storage_alias: Rewrite as proc macro attribute (#11387) · 74428fa8
      Bastian Köcher authored
      * generate_storage_alias: Rewrite as proc macro attribute
      
      This rewrites the `generate_storage_alias!` declarative macro as proc-macro attribute. While doing
      this the name is changed to `storage_alias`. The prefix can now also be the name of a pallet. This
      makes storage aliases work in migrations for all kind of chains and not just for the ones that use
      predefined prefixes.
      
      * Fix compilation and FMT
      
      * Moare fixes
      
      * 🤦
      
      * ......
      
      * Rework the syntax and support instancing
      
      * FMT
      
      * Prefix variants with `Storage`
      
      * Make it compile
      
      * Fix where clause on rust stable
      74428fa8