Skip to content
Snippets Groups Projects
  1. Apr 30, 2022
  2. Apr 29, 2022
    • Nazar Mokrynskyi's avatar
      Network sync refactoring (part 1) (#11303) · af6773ab
      Nazar Mokrynskyi authored
      * Remove unnecessary imports, move one internal re-export into where it is actually used, make one import explicit
      
      * Move a few data structures down into modules
      
      * Use generic parameters in `sc-network` instead of `chain::Client` trait
      
      * Remove unnecessary bound
      af6773ab
    • Roman Proskuryakov's avatar
      Upgrade to libp2p 0.44.0 (#11009) · 887acda7
      Roman Proskuryakov authored
      * Update libp2p to 0.43.0, lru to 0.7.3
      
      * Fix websoket Incoming::Data
      
      * Rename ProtocolsHandler -> ConnectionHandler, remove inject_dis/connected, minor fixes
      
      * Fix args for inject_connection* callbacks
      
      * Fix DialPeer/DialAddress
      
      * Fix debug fmt
      
      * Add Endpoint to NetworkState
      
      * Fix Kad::get_record by key
      
      * Fix Sha2_256::digest
      
      * Fix IntoConnectionHandler
      
      * Fix borrowchk
      
      * Fix DialError::WrongPeerId
      
      * Remove NodeHandlerWrapperError
      
      * Fix KademliaEvent variants
      
      * Fix impl Add for String
      
      * Fix tabs in network_state
      
      * Apply cargo fmt
      
      * Fix a typo in req/resp
      
      * Fix tests
      
      * Fix peer_info:entry.info_expire
      
      * Fix PeerInfoBehaviour inject_address_change and inject_connection_closed
      
      * Patch libp2p to 0.44.0#6cc3b4e
      
      * Fix inject_connection_closed kad, req/resp
      
      * Apply cargo fmt
      
      * Use libp2p from crates.io
      
      * Fix review notes
      887acda7
    • Qinxuan Chen's avatar
    • Bisola Olasehinde's avatar
      Replace simple parameter_types (#11254) · aaf693f0
      Bisola Olasehinde authored
      
      * update bin/node-template/runtime/src/lib.rs
      
      * update frame/contracts/src/tests.rs
      
      * update frame/executive/src/lib.rs
      
      * update frame/grandpa/src/mock.rs
      
      * update frame/im-online/src/mock.rs
      
      * update frame/offences/benchmarking/src/mock.rs
      
      * update frame/recovery/src/mock.rs
      
      * update frame/referenda/src/mock.rs
      
      * update frame/session/benchmarking/src/mock.rs
      
      * update frame/staking/src/mock.rs
      
      * update frame/state-trie-migration/src/lib.rs
      
      * update frame/support/test/compile_pass/src/lib.rs
      
      * frame/treasury/src/tests.rs
      
      * update frame/whitelist/src/mock.rs
      
      * update frame/vesting/src/mock.rs
      
      * update test-utils/runtime/src/lib.rs
      
      * update bin/node-template/runtime/src/lib.rs
      
      * Update frame/grandpa/src/mock.rs
      
      Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
      
      * resolve failed checks 1518659 & 1518669
      
      * resolve format check
      
      * backtrack to resolve compile error
      
      * check --all --tests :white_check_mark:
      
      * cargo +nightly fmt :white_check_mark:
      
      
      
      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 avatarKeith Yeung <kungfukeith11@gmail.com>
      aaf693f0
  3. Apr 28, 2022
  4. Apr 27, 2022
    • Squirrel's avatar
      Updating shell.nix nightly (#11266) · 3ecb5306
      Squirrel authored
      
      * The 2022-02-10 nightly can't build some deps
      
      There's a sig that returns `impl IntoIterator<Item = (&'static str, OsString)>` and an Option is being retured but it's incorrectly not allowing a `?` in the method.
      
      * removing duplicate test
      
      * [ci] add job cargo-check-nixos
      
      * add dummy variables nix check
      
      * fix check-dependent jobs
      
      * fix check-dependent-project template
      
      Co-authored-by: default avataralvicsam <alvicsam@gmail.com>
      3ecb5306
    • Zeke Mostov's avatar
      Nomination Pools (#10694) · 247f33dc
      Zeke Mostov authored
      
      * Update frame/nomination-pools/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
      
      * Add admin roles and make some calls permissionless
      
      * Destroy pool in withdraw unbonded
      
      * Add docs on pool admin
      
      * Fixup tests
      
      * Test unbond_other permissionless scenarios
      
      * Test withdraw unbonded permissionless
      
      * Test only can join open pools
      
      * Move unsafe set state to mock
      
      * Test: nominate_works
      
      * Add bounds: MinJoinBond, MinCreateBond, MaxPools
      
      * Test MinCreateBond, MinJoinBond, MaxPools
      
      * Add post checks to tests
      
      * Remove some TODOs
      
      * Setup weight infrastructure
      
      * Benchmark claim_payout
      
      * Benchmark create
      
      * Benchmark nominate
      
      * Benchmark join
      
      * Benchmark unbond_other
      
      * Refactor join benchmark to use scenario setup
      
      * Clean up and address warnings
      
      * Basic withdraw unbonded benchmarks
      
      * Refactor nominate benchmark
      
      * Refactor claim payout
      
      * Add feature sp-staking/runtime-benchmarks
      
      * Get node runtime to compile
      
      * Get node to run
      
      * Mak...
      247f33dc
    • Chigozie Joshua's avatar
      Adds remove_approval feature to treasury pallet (#11243) · bdf55aab
      Chigozie Joshua authored
      
      * added remove_approval feature to treasury pallet
      
      * Update frame/treasury/src/lib.rs
      
      Co-authored-by: default avatarXiliang Chen <xlchen1291@gmail.com>
      
      * treasury pallet refactoring: removed proposalId check in remove_approval call and trailing new line in tests file
      
      * fmt
      
      * 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_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/treasury/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Update frame/treasury/src/lib.rs
      
      Co-authored-by: default avatarjoe petrowski <25483142+joepetrowski@users.noreply.github.com>
      
      * remove_approval extrinsic in treasury pallet:added extra checks in test and extra documentation
      
      * refactored error logging on remove_approval extrinsic in treasury pallet
      
      Co-authored-by: default avatarXiliang Chen <xlchen1291@gmail.com>
      Co-authored-by: default avatarShawn Tabrizi <shawntabrizi@gmail.com>
      Co-authored-by: default avatarParity Bot <admin@parity.io>
      Co-authored-by: default avatarjoe petrowski <25483142+joepetrowski@users.noreply.github.com>
      bdf55aab
    • Koute's avatar
      Make wildcard storage change subscriptions RPC-unsafe (#11259) · 3890fd4c
      Koute authored
      
      * When an RPC is rejected because it's RPC-unsafe say why in the error message
      
      * Make wildcard storage change subscriptions RPC-unsafe
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      
      * Fix typo
      
      * Fix tests
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      3890fd4c
  5. Apr 26, 2022
  6. Apr 25, 2022
    • tgmichel's avatar
      Add `chain-info` Subcommand (#11250) · 5eb2e329
      tgmichel authored
      
      * Add `blockchain-info` Subcommand
      
      * Update comment
      
      * Cleanup
      
      * Cleanup
      
      * Use `sync_run`
      
      * Use `sc_client_db` utility fns instead service backend
      
      * Use service `Backend` builder
      
      * Impl `From<sp_blockchain::Info>`
      
      * Rename to `chain-info`
      
      * fmt
      
      * Copyright year
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      
      * Expose `DatabaseParams`
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      5eb2e329
    • Bastian Köcher's avatar
      pallet-asset: Fix transfer of a large amount of an asset (#11241) · 2541efdb
      Bastian Köcher authored
      * pallet-asset: Fix transfer of a large amount of an asset
      
      Before this pr transferring a large amount of an asset would check that transferring the asset would
      not overflow the supply of the asset. However, it doesn't make sense to check for asset supply
      overflow when we just transfer from one account to another account and don't increase the supply in
      any way. It also required to extend the `can_deposit` method of `fungible` and `fungibles` with a
      `mint` parameter. If this parameter is set to `true`, it means we want to mint the amount of an
      asset before transferring it into an account. For `can_withdraw` we don't need to add an extra
      parameter, because withdrawing should never be able to underflow the supply. If that would happen,
      it would mean that somewhere the supply wasn't increased while increasing the balance of an account.
      
      * Update frame/assets/src/functions.rs
      
      * Update frame/assets/src/functions.rs
      
      * Update fram...
      2541efdb
    • Bastian Köcher's avatar
      cumulus-companion: Fix CI when there is no Polkadot companion (#11280) · 914db49d
      Bastian Köcher authored
      This tries to fix the CI if there is no polkadot companion. Currently we don't update Polkadot
      master in Cumulus, which means we may use some old commit that isn't compiling with the latest
      Substrate master anymore. This can happen if there was a pr that had a companion in Polkadot, but no
      companion was required for Cumulus. Then Cumulus will still point to some old Polkadot commit that
      isn't compiling anymore with the latest Substrate commit. So, we need to tell the script to use the
      latest master of Polkadot. If there is a companion for Polkadot, it would simply override the extra
      dependency patch later on.
      914db49d
    • Nazar Mokrynskyi's avatar
  7. Apr 22, 2022
    • Bastian Köcher's avatar
      BABE: Fix aux data cleaning (#11263) · 53575a95
      Bastian Köcher authored
      With the latest optimizations of the `FinalityNotification` generation, the aux data pruning started
      to print a warning. The problem here was that we printed a warning and stopped the adding of blocks
      to prune when we hit the `heigh_limit`. This is now wrong, as we could for example have two 512 long
      forks and then we start finalizing one of them. The second fork head would be part of the stale
      heads at some point (in the current implementation when we finalize second fork head number + 1),
      but then we would actually need to go back into the past than `heigh_limit` (which was actually
      last_finalized - 1). We now go back until we reach the canonical chain.
      
      Also fixed some wrong comment that was added by be about the content of the `finalized` blocks in
      the `FinalityNotification`.
      53575a95
    • dependabot[bot]'s avatar
      Bump tracing-core from 0.1.21 to 0.1.26 (#11258) · 02c7433b
      dependabot[bot] authored
      
      Bumps [tracing-core](https://github.com/tokio-rs/tracing) from 0.1.21 to 0.1.26.
      - [Release notes](https://github.com/tokio-rs/tracing/releases)
      - [Commits](https://github.com/tokio-rs/tracing/compare/tracing-core-0.1.21...tracing-core-0.1.26)
      
      ---
      updated-dependencies:
      - dependency-name: tracing-core
        dependency-type: direct:production
        update-type: version-update:semver-patch
      ...
      
      Signed-off-by: default avatardependabot[bot] <support@github.com>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      02c7433b
  8. Apr 21, 2022
  9. Apr 20, 2022
  10. Apr 19, 2022