Skip to content
  1. May 16, 2022
  2. May 15, 2022
  3. May 14, 2022
    • Nazar Mokrynskyi's avatar
      Network sync refactoring (part 3) (#11347) · 8a458708
      Nazar Mokrynskyi authored
      * Move `light.v1.proto` schema into new crate `sc-network-light`
      
      * Move `sc_network::light_client_requests` and submodule to `sc_network_light::light_client_requests`
      
      * Fix apparently outdated reference in documentation and visibility modifier
      
      * Fix rustdoc check
      
      * Update lock file
      8a458708
  4. May 13, 2022
  5. May 12, 2022
  6. May 11, 2022
  7. May 10, 2022
    • Kian Paimani's avatar
      fix a few more things with nomination pools (#11373) · ce212479
      Kian Paimani authored
      
      
      * fix a few more things with nomination pools
      
      * add bench
      
      * use weight fn
      
      * 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_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/nomination-pools/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * allow real root to also set roles
      
      * Update frame/nomination-pools/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Update frame/nomination-pools/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * move out of the closure
      
      * fix a few more things
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      ce212479
    • Niklas Adolfsson's avatar
      update Cargo.lock (#11384) · 6e0ba2da
      Niklas Adolfsson authored
      6e0ba2da
    • Joshy Orndorff's avatar
      sc-consensus-slots: rename `client` -> `select_chain` (#11375) · f6b982d7
      Joshy Orndorff authored
      * rename `client` -> `select_chain`
      
      * missed one
      
      * `cargo fmt` (only the file I touched)
      
      * Missed another one
      
      * Revert "`cargo fmt` (only the file I touched)"
      
      This reverts commit 96a0c6cd131cdc08013f7ddb9e7bf2af34ae3ee3.
      
      * `cargo fmt` (again) (only the LINES I touched)
      f6b982d7
    • Davide Galassi's avatar
      Refactory of Fork-Tree data structure (#11228) · 12d57414
      Davide Galassi authored
      
      
      * Iterative version of some fork-tree methods
      
      * Prune doesn't require its generic args to be 'clone'
      
      * Fork-tree import and drain-filter iterative implementations
      
      * Fork-tree map iterative implementation
      
      * Optimization of some operations, e.g. rebalance only when required
      
      * Destructuring assignments not supported yet by stable rustc 1.57
      
      * Safe implementation of 'map' and 'drain_filter' methods
      
      * Remove dummy comment
      
      * Trigger CI pipeline
      
      * Test map for multi-root fork-tree and refactory of `find_node_index_where`
      
      * Fix find node index with predicate
      
      * Nits
      
      * Tree traversal algorithm is not specified
      
      * Move unspecified tree traversal warning to 'map'
      
      * Immutable 'drain_filter' predicate
      
      * Apply suggestions from code review
      
      * Remove double mapping
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      12d57414
    • Davide Galassi's avatar
      Sanity check for Babe's configuration (#11385) · 07098c7d
      Davide Galassi authored
      
      
      * Prevent div by zero in native babe code
      * Additional sanity check for babe config
      * Further sanity checks and postpone threshold computation
      * Apply suggestions from code review
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      07098c7d
    • David's avatar
      jsonrpsee integration (#8783) · 29c0c6a4
      David authored
      * Add tokio
      
      * No need to map CallError to CallError
      
      * jsonrpsee proc macros (#9673)
      
      * port error types to `JsonRpseeError`
      
      * migrate chain module to proc macro api
      
      * make it compile with proc macros
      
      * update branch
      
      * update branch
      
      * update to jsonrpsee master
      
      * port system rpc
      
      * port state rpc
      
      * port childstate & offchain
      
      * frame system rpc
      
      * frame transaction payment
      
      * bring back CORS hack to work with polkadot UI
      
      * port babe rpc
      
      * port manual seal rpc
      
      * port frame mmr rpc
      
      * port frame contracts rpc
      
      * port finality grandpa rpc
      
      * port sync state rpc
      
      * resolve a few TODO + no jsonrpc deps
      
      * Update bin/node/rpc-client/src/main.rs
      
      * Update bin/node/rpc-client/src/main.rs
      
      * Update bin/node/rpc-client/src/main.rs
      
      * Update bin/node/rpc-client/src/main.rs
      
      * Port over system_ rpc tests
      
      * Make it compile
      
      * Use prost 0.8
      
      * Use prost 0.8
      
      * Make it compile
      
      * Ignore more failing tests
      
      * Comment out WIP tests
      
      * fi...
      29c0c6a4
    • Sasha Gryaznov's avatar
  8. May 09, 2022
  9. May 06, 2022
  10. May 05, 2022
  11. May 04, 2022
    • André Silva's avatar
      babe: only process vrf on module finalization (#11113) · d6d4068c
      André Silva authored
      
      
      * babe: only process vrf on block execution finalization
      
      * babe: rename CurrentBlockRandomness to PreviousBlockRandomness
      
      * babe: add test for initialization ordering
      
      * babe: rename PreviousBlockRandomness to ParentBlockRandomness
      
      * babe: re-add CurrentBlockRandomness with deprecation notice
      
      * babe: export CurrentBlockRandomness
      
      * babe: silence deprecation warning when exporting CurrentBlockRandomness
      
      * babe: suggestion from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * babe: flatten nested option
      
      * babe: rustfmt
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      d6d4068c
    • João Paulo Silva de Souza's avatar
    • Shawn Tabrizi's avatar
      Basic TOML Lint (#11348) · 7d520234
      Shawn Tabrizi authored
      * basic lint
      
      * lint ordering
      7d520234
    • Kian Paimani's avatar
      fix a few things with nomination pools (#11343) · 19a9e564
      Kian Paimani authored
      * fix a few things with nomination pools
      
      * fix typo
      
      * fix build
      
      * add missing try-runtime feat
      19a9e564
    • Web3 Smith's avatar
      Update MMR Runtime API with functionality to generate MMR proof for a series... · fd45676d
      Web3 Smith authored
      
      Update MMR Runtime API with functionality to generate MMR proof for a series of leaf indices  (#10635)
      
      * updated mmr rpc api with functions for batch generation of proof
      
      * update code comments
      
      * fix build errors
      
      * added tests to mmr-rpc
      
      * add tests to pallet-mmr
      
      * update comments
      
      * minor comment fix
      
      * remove unused variables
      
      * fix rust doc errors
      
      * refactor mmr runtime api
      
      * fix tests
      
      * minor fix
      
      * minor fix
      
      * fix node-runtime
      
      * revert to initial api
      
      * impl from proof fot batchproof
      
      * minor fix
      
      * minor fix
      
      * use explicit functions to convert btw batch proof and single proof
      
      * minor fix
      
      * add new variant to mmr error
      
      * fmt
      
      * update conversion to single leaf proof
      
      * fix style nit
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      fd45676d
    • Bastian Köcher's avatar
      sc-network: Do not return error on peer id only reserved nodes (#11346) · 82adb65f
      Bastian Köcher authored
      When passing reserved nodes only with a peer id it was failing with the `DuplicateBootnode` error.
      Besides that there are some clean ups. We for example added the bootnodes twice to the `known_addresses`.
      82adb65f
    • Adrian Catangiu's avatar
      BEEFY voter bugfixes (#11335) · 1e2424ec
      Adrian Catangiu authored
      
      
      * beefy: gadget should always use current validator set
      
      The gadget/client-voter was using previous' session validator set
      to sign the 1st block in the new session (to have chained validator
      set handoffs).
      
      This is not necessary because:
      1. BEEFY piggy-backs on GRANDPA and only works on canonical chain,
         so it need not concern itself with the validity of the block header
         (which contains digest with the new session's validator set). It
         can safely assume header is valid and simply use new validator set.
      2. The BEEFY payload itself already contains a merkle root for the
         next validator set keys. So at the BEEFY-payload layer we already
         have a validated/trusted hand-off of authority.
      
      Signed-off-by: default avataracatangiu <[email protected]>
      
      * beefy: buffer votes for not yet finalized blocks
      
      Signed-off-by: default avataracatangiu <[email protected]>
      
      * beefy: add buffered votes regression test
      1e2424ec