1. Oct 08, 2021
  2. Oct 07, 2021
  3. Oct 06, 2021
    • Bernhard Schuster's avatar
      collect included disputes from on-chain (#3924) · 30bdc8f5
      Bernhard Schuster authored
      
      
      * dummy: impl another runtime API
      
      * query the on chain disputes, and inform self
      
      * make use of the refactor
      
      * minro
      
      * SPLIT ME
      
      * write dispute values
      
      * wip
      
      * impl for all runtimes
      
      * chore: fmt
      
      * [] -> get
      
      * fixup mock runtime
      
      * fixup
      
      * fixup discovery for overseer init
      
      * chore: fmt
      
      * spellcheck
      
      * rename imported_on_chain_disputes -> on_chain_votes
      
      * reduction
      
      * make it mockable
      
      * rename and refactor
      
      * don't query on chain info if it's not needed
      
      * yikes
      
      * fmt
      
      * fix test
      
      * minimal fix for existing tests
      
      * attempt to fetch the session info from the rolling window before falling back
      
      * moved
      
      * comments
      
      * comments
      
      * test for backing votes
      
      * rename
      
      * Update runtime/polkadot/src/lib.rs
      
      * chore: spellcheck + dict
      
      * chore: fmt
      
      * fixup cache size
      
      * add warning
      
      * logging, rationale, less defense
      
      * introduce new unchecked, that still checks in debug builds
      
      * fix
      
      * draft alt approach
      
      * fix unused imports
      
      * include the session
      
      * Update node/core/dispute-coordinator/src/real/mod.rs
      
      Co-authored-by: default avatarRobert Habermeier <[email protected]>
      
      * provide where possible
      
      * expand comment
      
      * fixin
      
      * fixup
      
      * ValidityVote <-> ValidityAttestation <-> CompactStatement has a 1:1 representation
      
      * mark TODO
      
      * Update primitives/src/v1/mod.rs
      
      Co-authored-by: default avatarRobert Habermeier <[email protected]>
      
      * address review comments
      
      * update docs
      
      Co-authored-by: default avatarRobert Habermeier <[email protected]>
      30bdc8f5
    • André Silva's avatar
      Companion for substrate#9448 (#3527) · 9bdded5f
      André Silva authored
      
      
      * Companion for substrate#9448
      
      * fix on_disabled
      
      * use temporary beefy branch
      
      * revert beefy updates
      
      * update Substrate
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      Co-authored-by: parity-processbot <>
      9bdded5f
    • Kian Paimani's avatar
    • Falco Hirschenberger's avatar
      Add call-decoding weight to benchmarks (#3866) · 4b9fc646
      Falco Hirschenberger authored
      * Add add call-decoding weight to benchmarks
      
      fixes #3864
      
      * Change order as suggested by @thiolliere
      
      * More reordering as @KiChjang
      
       suggested
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::claims --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_claims.rs
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::claims --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_claims.rs
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      4b9fc646
    • Zeke Mostov's avatar
      Add benchmarking to rococo; Remove weights from runtime_parachains (#3914) · dc38cf89
      Zeke Mostov authored
      
      
      * Add benchmarking to rococo; Remove weights from runtime_parachains
      
      * cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_paras.rs --header=./file_header.txt
      
      * Impl TestWeightInfo for Paras and Configuration
      
      * fmt
      
      * cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::configuration --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_configuration.rs --header=./file_header.txt
      
      * Fix CI complaint: error: unused variable: `c`
      
      * polkadot-runtime-common & polkadot-test-runtime compile
      
      * xcm-simulator compile
      
      * change TestWeightInfo to max_block
      
      * cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_paras.rs --header=./file_header.txt
      
      * ordering
      
      * cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_paras.rs --header=./file_header.txt
      
      * Replace max_block with Weight::MAX
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      dc38cf89
  4. Oct 05, 2021
    • Shawn Tabrizi's avatar
      individual benchmark tests (#4018) · bc732638
      Shawn Tabrizi authored
      bc732638
    • Shawn Tabrizi's avatar
      Allow an Offset to Lease Periods (#3980) · d6d37621
      Shawn Tabrizi authored
      
      
      * add slot offset for slots
      
      * trying things out
      
      * fix test
      
      * improve api to return the first block of a new lease period
      
      * add an integration test with offset
      
      * de-duplicate test
      
      * hide lease period_period_length from public api
      
      * fix benchmarks
      
      * Update runtime/common/src/slots.rs
      
      * support the exact same range of crowdloans
      
      * fix docs
      
      * fix docs again
      
      * introduce offset to runtimes
      
      * fix and check edge case w/ offset and lease period first block
      
      * remove newline
      
      * turn into an option
      
      * fix benchmarks
      
      Co-authored-by: default avatarRobert Habermeier <[email protected]>
      d6d37621
  5. Oct 04, 2021
  6. Oct 03, 2021
  7. Oct 01, 2021
  8. Sep 30, 2021
  9. Sep 29, 2021
  10. Sep 28, 2021
    • Keith Yeung's avatar
      Add benchmarking for parachain runtime initializer pallet (#3913) · 7da1421b
      Keith Yeung authored
      
      
      * Add benchmarking for parachain runtime initializer pallet
      
      * Fix default impl for initializer pallet WeightInfo
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_initializer.rs
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_initializer.rs
      
      * Use real weights and use max_block as default weight
      
      * Add variable for digest vec length for initializer benchmark
      
      * Fix compilation errors
      
      * Add WeightInfo to parachains_initializer config in polkadot runtime
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_initializer.rs
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_initializer.rs
      
      * Appease spellchecker
      
      * Use kusama weights in polkadot runtime for parachain initializer pallet
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      7da1421b
  11. Sep 27, 2021
    • asynchronous rob's avatar
      disputes: reject single-sided disputes (#3903) · 94986bec
      asynchronous rob authored
      * disputes: reject single-sided disputes
      
      * fmt
      94986bec
    • Ayush Mishra's avatar
      Added multisig in Rococo (#3873) · fdebbbf4
      Ayush Mishra authored
      * Added multisig in Rococo
      
      * removed formatting error
      
      Co-authored-by: Ayush <>
      fdebbbf4
    • Shawn Tabrizi's avatar
      XCM Benchmarks for Asset Transactor w/ Fungible Asset (#3818) · 7c8804c0
      Shawn Tabrizi authored
      
      
      * benchmarks for fungibles
      
      * add benchmark to westend
      
      * fix hex
      
      * clean up a bit
      
      * update code doc
      
      * fix warnings
      
      * cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=westend-dev --pallet=pallet_xcm_benchmarks::fungible --extrinsic=* --steps=10 --repeat=10 --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./ --execution=wasm --wasm-execution=compiled
      
      * use skip
      
      * fix spelling
      
      * Update Cargo.lock
      
      * add scale-info
      
      * Update Cargo.lock
      
      * update bench
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::fungible --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
      
      * weights compile
      
      * update westend to use weights
      
      * fmt
      
      * spelling fixes
      
      * Delete pallet_xcm_benchmarks::fungible.rs
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * fix code review
      
      * update weight
      
      * fix report_error
      
      * fix spell check
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      7c8804c0
  12. Sep 24, 2021
  13. Sep 23, 2021
  14. Sep 22, 2021
    • Georges's avatar
      Companion for Generate storage info for pallet babe #9760 (#3831) · 24a141b5
      Georges authored
      
      
      * Adding MaxSegmentLength and MaxAuthorities
      to pallet babe
      
      * Missed a few to_vec
      
      * Removing `MaxSegmentLength` as not needed anymore
      
      * Adding `MaxAuthorities` to couple of missing place
      
      * Adding missing definition of `MaxAuthorities`
      
      * Adding a missing to_vec
      
      * update Substrate
      
      Co-authored-by: default avatarthiolliere <[email protected]>
      Co-authored-by: parity-processbot <>
      24a141b5
    • Kian Paimani's avatar
      Companion for substrate PR#9766 (#3900) · 8c684129
      Kian Paimani authored
      * fix weights
      
      * reduce time
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      8c684129
    • Georges's avatar
      Companion for Generate storage info for pallet grandpa #9817 (#3892) · 9d7972ab
      Georges authored
      * Adding `MaxAuthorities` to pallet grandpa
      This is neede after changes to substrate
      
      * Adding `MaxAuthorities` to granda in test-runtime
      
      * Missed one `MaxAuthorities`
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      9d7972ab
    • Keith Yeung's avatar
      Add benchmarking for parachain runtime paras pallet (#3888) · db0b7e00
      Keith Yeung authored
      
      
      * Crate basic barebones benchmarking infrastructure for paras
      
      * Fill in benchmarking contents
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_paras.rs
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_paras.rs
      
      * Use autogenerated WeightInfos for kusama and westend
      
      * cargo fmt
      
      * Use saturating_sub
      
      * Add missing import
      
      * Try and hit the worst possible time complexity as much as possible
      
      * cargo fmt
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_paras.rs
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_paras.rs
      
      * Add a MAX_HEAD_DATA_SIZE constant
      
      * Prefill vectors with sample data for worst case complexity
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_paras.rs
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_paras.rs
      
      * Improve comment on SAMPLE_SIZE constant
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      db0b7e00