Skip to content
  1. Mar 02, 2022
  2. Mar 01, 2022
  3. Feb 28, 2022
  4. Feb 26, 2022
    • Davide Galassi's avatar
      [WIP] Companion PR for sr25519 fallible constructor (#4861) · 00ce69aa
      Davide Galassi authored
      * Manage new `sr25519::Signature::from_slice` fallible constructor
      
      Constructor now returns an `Option`
      
      * update lockfile for {"substrate"}
      
      Co-authored-by: parity-processbot <>
      00ce69aa
    • Falco Hirschenberger's avatar
      Add benchmarking for parachain runtime `ump` pallet (#3889) · fc919376
      Falco Hirschenberger authored
      
      
      * Claim grounds, not working yet.
      
      * still wip, nothing to see
      
      * Module visibility problem
      
      * Add benchmarks for all parachain-enabled chains
      
      * Add missing mock weights
      
      * Fix mock weight info
      
      * Add max-weight to extrinsic weight
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
      
      * sorting declarations
      
      * Use a maximum size message to benchmark worst-case
      
      * remove warning
      
      * Fix msg size overflow in tests
      
      * Use benchmarked weight in PostInfo
      
      * Update runtime/parachains/src/ump.rs
      
      Co-authored-by: default avatarAlexander Popiak <[email protected]>
      
      * Delete obsolete file
      
      * Compile fix
      
      * Fix spelling
      
      * Add benchmark for `UmpSink::process_upward_message`
      
      It benchmarks the time to process a message, mainly the size-dependent
      decoding time. This is used interally for refunding weight from
      `service_overweight`
      
      * Fix warning
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
      
      * Update runtime/parachains/src/ump.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Give mock weights for tests a name instead of ()
      
      * Add benchmark for `initializer_on_new_session` aka.
      `perform_outgoing_para_cleanup`
      
      * Remove unnescessary pub specifier and change folding to a for loop
      
      suggestions by @pepyakin
      
      
      
      * Update runtime/parachains/src/ump.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update runtime/parachains/src/ump.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Add comment on weight calculation and expected slight overestimation
      
      * Introduce a size bound constant for upward messages
      
      * Use KiB not kB for message size bound
      
      * Enforce max-message size bound
      
      * Use a const for upward message size bound.
      
      * Decrease max_upward_message_sizes to 50KiB as suggested by @pepyakin
      
      * Fix creating overweight messages
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/rococo/src/weights/runtime_parachains_ump.rs
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
      
      * Remove unused variable
      
      * Rename benchmark function to the function actually benchmarked and some
      code cleanup
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/rococo/src/weights/runtime_parachains_ump.rs
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
      
      * Better variable naming
      
      * Fix build
      
      * Fix build
      
      * Fix some remarks from @pepyakin
      
      
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarAlexander Popiak <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avataremostov <[email protected]>
      fc919376
  5. Feb 25, 2022
    • dependabot[bot]'s avatar
      Bump color-eyre from 0.6.0 to 0.6.1 (#4984) · 2771f183
      dependabot[bot] authored
      
      
      Bumps [color-eyre](https://github.com/yaahc/color-eyre) from 0.6.0 to 0.6.1.
      - [Release notes](https://github.com/yaahc/color-eyre/releases)
      - [Changelog](https://github.com/yaahc/color-eyre/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/yaahc/color-eyre/compare/v0.6.0...v0.6.1)
      
      ---
      updated-dependencies:
      - dependency-name: color-eyre
        dependency-type: direct:production
        update-type: version-update:semver-patch
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      2771f183
    • Vsevolod Stakhov's avatar
      Add metrics for out of view statement distribution errors (#4972) · 44f66825
      Vsevolod Stakhov authored
      * Add a simple metric for statements out-of-view
      
      * Avoid repeated out-of-view peer reputation change messages
      
      * Log reporting status
      
      * Address review comments
      
      * Use counter to store a number of unexpected messages from a peer
      
      * Distinguish different unexpected statements in the metrics
      
      * Fix labels cardinality
      
      * Rename metric name to `statements_unexpected`
      
      * Move metrics to a separate unit, avoid unnecessary enum
      
      * Prefer specific methods in lieu of public constants
      44f66825
    • Oliver Tale-Yazdi's avatar
      Co #10897: Storage benchmarking (#4982) · 86f2d65a
      Oliver Tale-Yazdi authored
      
      
      * Add storage benchmarking
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * update lockfile for {"substrate"}
      
      Co-authored-by: parity-processbot <>
      86f2d65a
    • Bernhard Schuster's avatar
      fatality based errors (#4448) · d9465827
      Bernhard Schuster authored
      * seed commit for fatality based errors
      
      * fatality
      
      * first draft of fatality
      
      * cleanup
      
      * differnt approach
      
      * simplify
      
      * first working version for enums, with documentation
      
      * add split
      
      * fix simple split test case
      
      * extend README.md
      
      * update fatality impl
      
      * make tests passed
      
      * apply fatality to first subsystem
      
      * fatality fixes
      
      * use fatality in a subsystem
      
      * fix subsystemg
      
      * fixup proc macro
      
      * fix/test: log::*! do not execute when log handler is missing
      
      * fix spelling
      
      * rename Runtime2 to something sane
      
      * allow nested split with `forward` annotations
      
      * add free license
      
      * enable and fixup all tests
      
      * use external fatality
      
      Makes this more reviewable.
      
      * bump fatality dep
      
      Avoid duplicate expander compilations.
      
      * migrate availability distribution
      
      * more fatality usage
      
      * chore: bump fatality to 0.0.6
      
      * fixup remaining subsystems
      
      * chore: fmt
      
      * make cargo spellcheck happy
      
      * remove single instance of `#[fatal(false)]`
      
      * last quality sweep
      
      * fixup
      d9465827
    • Bernhard Schuster's avatar
      85fa0874
    • Bastian Köcher's avatar
      Try to fix disputes test (#4988) · 4028ca10
      Bastian Köcher authored
      * Try to fix disputes test
      
      * Enable all native runtimes
      4028ca10
    • wigy's avatar
      Companion to "Updating scale to v3" (#4958) · e8cb6cda
      wigy authored
      
      
      * Updating dependencies
      
      * Adapting code to scale v3
      
      * Upgrade bitvec to 1.0.0
      
      * Fix bitvec arithmetics
      
      * Update Cargo.lock
      
      * Update sp-io
      
      * Fixing the build
      
      * Yanked scale-info 2.0.0
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      e8cb6cda
  6. Feb 24, 2022
  7. Feb 23, 2022
  8. Feb 22, 2022
  9. Feb 21, 2022
  10. Feb 18, 2022
    • Niklas Adolfsson's avatar
      staking miner: reuse ws conn for remote-ext (#4849) · 4210d014
      Niklas Adolfsson authored
      * staking miner: use config for emergency solution
      
      Fixes #4678
      
      * bump jsonrpsee
      
      * run `monitor_cmd_for` until the connection is closed
      
      * new tokio task for submit_and_watch xt
      
      * re-use header subscription
      
      * update jsonrpsee + simplify code
      
      * revert polkadot runtime changes
      
      * fix grumbles
      
      * Update utils/staking-miner/src/monitor.rs
      
      * staking miner: reuse ws conn for remote-ext
      
      * Revert "revert polkadot runtime changes"
      
      This reverts commit 5fddbbec40702c122b079526915cabac8facdbc1.
      
      * cargo fmt
      
      * revert unintentional change
      
      * revert unintentional change
      
      * add type SharedRpcClient
      
      * cargo fmt
      
      * fix nits
      
      * spelling
      
      * use tracing_subcriber and cleanup
      
      * remove some needless clones
      
      * fix some nits
      
      * fix spellcheck
      4210d014
    • asynchronous rob's avatar
      Revert "collator-protocol: short-term fixes for connectivity (#4640)" (#4914) · 0b39ae43
      asynchronous rob authored
      * Revert "collator-protocol: fix wrong warning (#4909)"
      
      This reverts commit 128421b5.
      
      * Revert "collator-protocol: short-term fixes for connectivity (#4640)"
      
      This reverts commit aff88a86
      
      .
      
      * make the slots great again
      
      Co-authored-by: default avatarAndronik <[email protected]>
      0b39ae43