Skip to content
Snippets Groups Projects
  1. Dec 20, 2021
  2. Dec 19, 2021
  3. Dec 18, 2021
  4. Dec 17, 2021
  5. Dec 16, 2021
  6. Dec 15, 2021
  7. Dec 14, 2021
    • Bastian Köcher's avatar
      Prepare code for rust 1.57 (#10471) · 187663e1
      Bastian Köcher authored
      * Prepare code for rust 1.57
      
      * CI: revert me; staging image with stable 1.57
      
      * Revert "CI: revert me; staging image with stable 1.57 [skip CI]"
      
      This reverts commit f3c3b8a9e877ef7126ffce6ebc4822bb4ace0379.
      
      Co-authored-by: CI system <>
      187663e1
    • Koute's avatar
      Statically register host WASM functions (#10394) · 7711f526
      Koute authored
      * Statically register host WASM functions
      
      * Fix `substrate-test-client` compilation
      
      * Move `ExtendedHostFunctions` to `sp-wasm-interface`
      
      * Fix `sp-runtime-interface` tests' compilation
      
      * Fix `sc-executor-wasmtime` tests' compilation
      
      * Use `runtime_interface` macro in `test-runner`
      
      * Fix `sc-executor` tests' compilation
      
      * Reformatting/`rustfmt`
      
      * Add an extra comment regarding the `H` generic arg in `create_runtime`
      
      * Even more `rustfmt`
      
      * Depend on `wasmtime` without default features in `sp-wasm-interface`
      
      * Bump version of `sp-wasm-interface` to 4.0.1
      
      * Bump `sp-wasm-interface` in `Cargo.lock` too
      
      * Bump all of the `sp-wasm-interface` requirements to 4.0.1
      
      Maybe this will appease cargo-unleash?
      
      * Revert "Bump all of the `sp-wasm-interface` requirements to 4.0.1"
      
      This reverts commit 0f7ccf8e0f371542861121b145ab87af6541ac30.
      
      * Make `cargo-unleash` happy (maybe)
      
      * Use `cargo-unleash` to bump the crates' versions
      
      * Align to review comments
      7711f526
  8. Dec 13, 2021
  9. Dec 11, 2021
    • Gavin Wood's avatar
      Preimage registrar and Scheduler integration (#10356) · 5e50e0bc
      Gavin Wood authored
      
      * initial idea
      
      * more
      
      * fix compile
      
      * add clear and request logic
      
      * improve some docs
      
      * Add and implement trait
      
      * continuing to improve
      
      * refcount type
      
      * infallible system preimage upload
      
      * fmt
      
      * fix requests
      
      * Make it simple
      
      * Make it simple
      
      * Formatting
      
      * Initial draft
      
      * request when scheduled
      
      * Docs
      
      * Scheduler good
      
      * Scheduler good
      
      * Scheduler tests working
      
      * Add new files
      
      * Missing stuff
      
      * Repotting, add weights.
      
      * Add some tests to preimage pallet
      
      * More tests
      
      * Fix benchmarks
      
      * preimage benchmarks
      
      * All preimage benchmarks
      
      * Tidy cargo
      
      * Update weights.rs
      
      * Allow hash provision in benchmarks
      
      * Initial work on new benchmarks for Scheduler
      
      * Tests working, refactor looks good
      
      * Tests for new Scheduler functionality
      
      * Use real weight, make tests work with runtimes without Preimage
      
      * Rename
      
      * Update benchmarks
      
      * Formatting
      
      * Formatting
      
      * Fix weird formatting
      
      * Update frame/preimage/src/lib.rs
      
      * Fix try-runtime build
      
      * Fixes
      
      * Fixes
      
      * Update frame/support/src/traits/tokens/currency.rs
      
      Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
      
      * Update frame/support/src/traits/tokens/currency/reservable.rs
      
      Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
      
      * Update frame/support/src/traits/tokens/imbalance.rs
      
      Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
      
      * Update frame/preimage/src/mock.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <gui.thiolliere@gmail.com>
      
      * Update frame/scheduler/src/lib.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <gui.thiolliere@gmail.com>
      
      * Update frame/preimage/src/lib.rs
      
      * Fixes
      
      * Fixes
      
      * Formatting
      
      * Fixes
      
      * Fixes
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_scheduler --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/scheduler/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_preimage --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/preimage/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      Co-authored-by: default avatarShawn Tabrizi <shawntabrizi@gmail.com>
      Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
      Co-authored-by: default avatarGuillaume Thiolliere <gui.thiolliere@gmail.com>
      Co-authored-by: default avatarParity Bot <admin@parity.io>
      5e50e0bc
    • Bastian Köcher's avatar
      `inspect-key`: Adds support for `expect-public` (#10430) · f6f58f95
      Bastian Köcher authored
      * Introduce `SecretUri`
      
      * `inspect-key`: Adds support for `expect-public`
      
      `expect-public` can be used to check that a given secret uri corresponds to the given public key.
      This is mainly useful when the secret uri is protected by a password and a new derived account
      should be generated. With `--expect-public` the user can pass the public key/account-id of the
      "base" secret uri aka the one without any derivation to ensure the correct password was inserted.
      
      * Fixes
      
      * :face_palm:
      
      
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAndré Silva <123550+andresilva@users.noreply.github.com>
      
      * Review feedback
      
      * FMT
      
      * Bump the versions
      
      Co-authored-by: default avatarAndré Silva <123550+andresilva@users.noreply.github.com>
      f6f58f95
  10. Dec 09, 2021
    • Éloïs's avatar
      Make wasm runtime cache size configurable (#10177) · 3acd335a
      Éloïs authored
      * Make wasm runtime cache size configurable
      
      * apply review comments
      
      * remove VersionedRuntimeValue
      
      * fix compilation
      
      * VersionedRuntime: replace clone by Arc
      
      * fmt
      
      * fix warnings
      
      * fix tests compilation
      
      * fmt
      3acd335a
  11. Dec 08, 2021
  12. Dec 07, 2021
    • Gautam Dhameja's avatar
      Add child-bounties pallet. (#10309) · 752e050c
      Gautam Dhameja authored
      
      * Extract child-bounties as a separate pallet.
      
      * Initial tests added.
      
      * More tests.
      
      * Tests complete. Fixed curator fee issue.
      
      * Fixed comments.
      
      * Added benchmarks for child-bounties pallet.
      
      * Added weights.
      
      * Fixed formatting.
      
      * Fixed comments.
      
      * Re-run benchmarks for bounties pallet.
      
      * Make cargo fmt happy again
      
      * add max encoded len
      
      * use event structs
      
      * fmt
      
      * fix compile
      
      * Addressed review comments.
      
      * Use config type instead of const in benchmarking.
      
      * Addressed more review comments.
      
      * Use ensure_can_withdraw instead of just checking min balance.
      
      * fmt.
      
      * Introduce ChildBountyCuratorDepositBase to avoid zero curator deposits for child bounties.
      
      * Fix unassign curator logic for child-bounties.
      
      * Added more tests for unassign curator.
      
      * Reduce bounty description max length in node runtime.
      
      * Updated weights for child bounties pallet.
      
      * reduce indentation of unassign_curator
      
      * more indentation reduction
      
      * deduplicate slashing arms
      
      * reintroduce ensure check
      
      * add assertion to check that bad unassign origin fails
      
      * formatting
      
      * Updated comments.
      
      Co-authored-by: default avatarRicardo Rius <ricardo@parity.io>
      Co-authored-by: default avatarShawn Tabrizi <shawntabrizi@gmail.com>
      Co-authored-by: default avatarAlexander Popiak <alexander.popiak@parity.io>
      752e050c
    • Alexander Theißen's avatar
      contracts: Add storage deposits (#10082) · 68634766
      Alexander Theißen authored
      
      * Frame no longer needs to be mutable (refactoring artifact)
      
      * Remove Contract/Tombstone deposit
      
      * Add StorageMeter
      
      * cargo fmt
      
      * Fix weight annotation
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --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
      
      * Simplify keep check for contract accounts
      
      - Make sure that the "base deposit" for each contract >= ed
      - Remove now obsolete checks when sneding away free balance
      
      * Remove unused imports and functions
      
      * Rename storage_limit to storage_deposit_limit
      
      * cargo fmt
      
      * Fix typo
      
      Co-authored-by: default avatarMichael Müller <michi@parity.io>
      
      * Finish up rename of storage_limit
      
      * Fix rpc tests
      
      * Make use of `StorageDepositLimitTooHigh`
      
      * Add tests and fix bugs discovered by tests
      
      * Add storage migration
      
      * Don't use u128 in RPC
      
      * Fix weight of migration
      
      * Rename `endowment` to `value`
      
      * Fix bug where contract couldn't get funded by a storage deposit
      
      - Make sure that contract gets funded from deposits before value is transferred
      - Don't reserve value at origin because otherwise funding isn't possible
      	- Just transfer free balance and reserve it after the transfer
      - When refunding make sure that this refund can't dust the contract
      	- Can only happen after a runtime upgrade where costs where upped
      - Add more tests
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAndrew Jones <ascjones@gmail.com>
      
      * Remove unused `fn storage_meter`
      
      * Fix copy pasta doc error
      
      * Import `MaxEncodeLen` from codec
      
      * Beautify RPC trait bounds
      
      * Add re-instrument behaviour to dispatchable doc
      
      * Make sure a account won't be destroyed a refund after a slash
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAndrew Jones <ascjones@gmail.com>
      
      * Update `Storage::write` docs
      
      * Improve doc
      
      * Remove superflous conditional
      
      * Typos
      
      * Remove superflous clone (refactoring artifact)
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAndrew Jones <ascjones@gmail.com>
      
      Co-authored-by: default avatarParity Bot <admin@parity.io>
      Co-authored-by: default avatarMichael Müller <michi@parity.io>
      Co-authored-by: default avatarAndrew Jones <ascjones@gmail.com>
      68634766
  13. Dec 06, 2021
  14. Dec 04, 2021
  15. Dec 01, 2021
  16. Nov 25, 2021
    • Andreas Doerr's avatar
      `BEEFY` add tests for rounds (#10328) · f12e22a6
      Andreas Doerr authored
      * new_rounds()
      
      * WIP
      
      * test add_vote()
      
      * test drop()
      
      * learn  to spell
      
      * go get some coffee
      
      * cargo fmt
      
      * lump everythings together again
      f12e22a6
    • Roman's avatar
      Bump libp2p to 0.40.0 (#10035) · c5ae5190
      Roman authored
      * Bump libp2p to 0.40.0-rc.1
      
      * Fix PingFailure import
      
      * Reduce the number of compilation errors (this is a FIXME commit)
      
      * Bump libp2p to 0.40.0-rc.2
      
      * Fix sc-network::Behaviour to inject events into fields
      
      * Fix some NetworkBehaviourAction types
      
      * More fixes
      
      * More fixes
      
      * More fixes
      
      * Fix DiscoveryBehaviour
      
      * Fix PeerInfoBehaviour
      
      * Fix RequestResponsesBehaviour
      
      * Fix RequestResponsesBehaviour
      
      * Fix Notifications
      
      * Fix NetworkWorker
      
      * Fix Behaviour
      
      * Please borrowchk
      
      * Please borrowchk
      
      * Please borrowchk
      
      * Fix fmt
      
      * Cover all cases in matches
      
      * Fix some clippy warnings
      
      * Fix into_peer_id -> to_peer_id
      
      * Fix some warnings
      
      * Fix some inject_dial_failure FIXMEs
      
      * Fix DiscoveryBehaviour::inject_dial_failure
      
      * Fix RequestResponsesBehaviour::inject_dial_failure
      
      * Fix the order of inject_connection_closed PeerInfoBehaviour events
      
      * Make KademliaEvent with filtering unreachable
      
      * Fix Notifications::inject_dial_failure
      
      * Use concurrent_dial_errors in NetworkWorker
      
      * Remove commented-out RequestResponsesBehaviour::inject_addr_reach_failure
      
      * Fix tests
      
      * Dont report new PendingConnectionError and DialError variants to metrics
      
      * Bump libp2p to 0.40.0
      
      * Add fn inject_listen_failure and inject_address_change
      
      * Review fixes
      c5ae5190
  17. Nov 23, 2021
    • Xavier Lau's avatar
      Support MMR Pruning (#9700) · f9122a87
      Xavier Lau authored
      
      * Use `0.3.2`
      
      * Replace `u64` with `NodeIndex`
      
      * Fix Typo
      
      * Add Pruning Logic
      
      * Fix Some Tests
      
      * Remove Comment
      
      * Log Only Under STD
      
      * Return while No Element to Append
      
      * Optimize Pruning Algorithm
      
      * Update Doc
      
      * Update Doc
      
      * Zero Copy Algorithm
      
      * Import Missing Type
      
      * Fix Merge Mistake
      
      * Import Missing Item
      
      * Make `verify` Off-Chain
      
      * `cargo fmt`
      
      * Avoid using NodeIndex in incorrect places.
      
      * Simplify pruning.
      
      * Format
      
      Co-authored-by: default avatarTomasz Drwięga <tomasz@parity.io>
      f9122a87
  18. Nov 22, 2021
  19. Nov 20, 2021
  20. Nov 19, 2021
    • dependabot[bot]'s avatar
      Bump libsecp256k1 from 0.6.0 to 0.7.0 (#10214) · d0b851ab
      dependabot[bot] authored
      
      * Bump libsecp256k1 from 0.6.0 to 0.7.0
      
      Bumps [libsecp256k1](https://github.com/paritytech/libsecp256k1) from 0.6.0 to 0.7.0.
      - [Release notes](https://github.com/paritytech/libsecp256k1/releases)
      - [Changelog](https://github.com/paritytech/libsecp256k1/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/paritytech/libsecp256k1/commits)
      
      ---
      updated-dependencies:
      - dependency-name: libsecp256k1
        dependency-type: direct:production
        update-type: version-update:semver-minor
      ...
      
      Signed-off-by: default avatardependabot[bot] <support@github.com>
      
      * Fix pallet_contracts for new libsecp256k1 version
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      Co-authored-by: default avatarAlexander Theißen <alex.theissen@me.com>
      d0b851ab
    • Bastian Köcher's avatar
      Offchain worker: Enable http2 and improve logging (#10305) · 090b55b7
      Bastian Köcher authored
      * Offchain worker: Enable http2 and improve logging
      
      Apparently some webpages now return http2 by default and that silently breaks the offchain http
      extension. The solution to this is to enable the `http2` feature of hyper. Besides that, this pr
      improves the logging to make it easier to debug such errors.
      
      * FMT
      
      * Adds http2 test
      090b55b7
    • Georges's avatar
      Moving `pallet-asset-tx-payment` from cumulus to substrate (#10127) · 439af98e
      Georges authored
      
      * Moving `pallet-asset-tx-payment` from cumulus
      
      * move pallet-asset-tx-payment into transaction payment directory
      
      * cargo +nightly fmt
      
      * Adding `pallet-asset-tx-payment` to node runtime
      I had to change the Balance type to u128.
      Also harmonised that pallet's version
      
      * Updating cargo.lock after merge
      
      * forgot this
      
      * Adding tx-payment signature
      
      * Missed one more
      
      * `transaction-payment` replaced in`SignedExtension`
      by `asset-tx-payment` and not added
      
      * Fixing benches
      
      * add test to verify that we don't charge on post-dispatch if we didn't on pre-dispatch
      
      * add (failing) test for asset tx payment of unsigned extrinsics
      
      * fix test by removing debug_assert
      
      * cargo +nightly fmt
      
      * typo in `Cargo.lock`
      
      * Object defined twice in lock file
      
      * cargo update
      
      * remove todo
      
      * Apply formatting suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
      
      * Refactoring `post_dispatch` of `asset-tx-payment`
      to reuse `post_dispatch` of `transaction-payment` if the fee asset is
      native
      Removing unneeded imports.
      
      * Removing redundant `TODO`
      
      * Reverting an accidental bump of `impl-serde`
       from `0.3.1` to `0.3.2`
      
      * Revert unneeded changes to `cargo.lock`
      
      * Update frame/transaction-payment/asset-tx-payment/src/payment.rs
      
      Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
      
      * Fixing cargo fmt
      
      Reverting changes which broke cargo fmt
      
      Co-authored-by: default avatarAlexander Popiak <alexander.popiak@parity.io>
      Co-authored-by: default avatarAlexander Popiak <alexander.popiak@gmail.com>
      Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
      439af98e
  21. Nov 16, 2021
  22. Nov 15, 2021
  23. Nov 13, 2021
  24. Nov 12, 2021