Skip to content
  1. Jul 29, 2022
  2. Jul 27, 2022
  3. Jul 26, 2022
    • Sebastian Kunert's avatar
      Prepare for rust 1.62.1 (#11903) · 9f409dc0
      Sebastian Kunert authored
      
      
      * Update UI test output for rust 1.62.1
      
      * switch ci to staging image to check that everything works
      
      * fix artifacts node-bench-regression-guard
      
      * Imeplement `scale_info::TypeInfo` manually to silence aggressive rust warning
      
      * Fix more clippy lints
      
      * Make clippy happy by relying on auto-deref were possible
      
      * Add tracking issue to the comments
      
      * pin ci image
      
      Co-authored-by: default avataralvicsam <[email protected]>
      9f409dc0
  4. Jul 17, 2022
  5. Jul 12, 2022
    • Nazar Mokrynskyi's avatar
      Network sync refactoring (part 4) (#11412) · 5896072b
      Nazar Mokrynskyi authored
      
      
      * Remove direct dependency of `sc-network` on `sc-network-light`
      
      * Move `WarpSyncProvider` trait and surrounding data structures into `sc-network-common`
      
      * Move `WarpSyncProvider` trait and surrounding data structures into `sc-network-common`
      
      * Create `sync` module in `sc-network-common`, create `ChainSync` trait there (not used yet), move a bunch of associated data structures from `sc-network-sync`
      
      * Switch from concrete implementation to `ChainSync` trait from `sc-network-common`
      
      * Introduce `OpaqueStateRequest`/`OpaqueStateResponse` to remove generics from `StateSync` trait
      
      * Introduce `OpaqueBlockRequest`/`OpaqueBlockResponse`, make `scheme` module of `sc-network-sync` private
      
      * Surface `sc-network-sync` into `sc-service` and make `sc-network` not depend on it anymore
      
      * Remove now unnecessary dependency from `sc-network`
      
      * Replace crate links with just text since dependencies are gone now
      
      * Remove `warp_sync` re-export from `sc-network-common`
      
      * Update copyright in network-related files
      
      * Address review comments about documentation
      
      * Apply review suggestion
      
      * Rename `extra_requests` module to `metrics`
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      5896072b
    • Roman Proskuryakov's avatar
      Upgrade libp2p to 0.46.1 (#11787) · 1902dc16
      Roman Proskuryakov authored
      * Update libp2p to 0.46.0
      
      * Update libp2p to 0.46.1
      
      * Fix telemetry initialization
      
      * Fix tests
      1902dc16
  6. Jun 24, 2022
  7. Jun 22, 2022
  8. Jun 21, 2022
    • Davide Galassi's avatar
      More robust grandpa revert procedure (#11719) · c189bd15
      Davide Galassi authored
      * More robust revert procedure
      
      Return an error if revert is called in a node that is not actively
      running grandpa, i.e. grandpa genesis data has not been initialized.
      Previous implementation was just firing an `unreachable!` code exception.
      
      Furthermore we skip revert hassle if there is nothing to revert.
      
      * Nit
      c189bd15
  9. Jun 17, 2022
  10. Jun 14, 2022
  11. May 24, 2022
    • Davide Galassi's avatar
      Fix Babe revert when last finalized block is a leaf (#11500) · 35af8fd7
      Davide Galassi authored
      * Fix Babe revert when a leaf is the last finalized block
      
      Without this fix the last finalized block weight data is wrongly removed
      on revert scenario where the last finalized block is a leaf.
      
      * Remove redundant check
      
      * Added test to exercise the fix
      
      * Rename test
      
      * Give variables better names
      35af8fd7
  12. May 21, 2022
  13. May 17, 2022
  14. May 16, 2022
  15. May 11, 2022
  16. May 10, 2022
    • 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
      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
  17. May 06, 2022
  18. May 04, 2022
  19. Apr 30, 2022
  20. Apr 29, 2022
    • 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
  21. Apr 27, 2022
  22. 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
  23. Apr 20, 2022
  24. Apr 12, 2022
    • Bastian Köcher's avatar
      Finality notification: Optimize calculation of stale heads (#11200) · cc4b5c48
      Bastian Köcher authored
      
      
      * Finality notification: Optimize calculation of stale heads
      
      While looking into some problem on Versi where a collator seemed to be stuck. I found out that it
      was not stuck but there was a huge gap between last finalized and best block. This lead to a lot
      leaves and it was basically trapped inside some loop of reading block headers from the db to find
      the stale heads. While looking into this I found out that `leaves` already supports the feature to
      give us the stale heads relative easily. However, the semantics change a little bit. Instead of
      returning all stale heads of blocks that are not reachable anymore after finalizing a block, we
      currently only return heads with a number lower than the finalized block. This should be no problem,
      because these other leaves that are stale will be returned later when a block gets finalized which
      number is bigger than the block number of these leaves.
      
      While doing that, I also changed `tree_route` of the `FinalityNotification` to include the
      `old_finalized`. Based on the comment I assumed that this was already part of it. However, if
      wanted, I can revert this change.
      
      * FMT
      
      * Update client/service/src/client/client.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Do not include the last finalized block
      
      * Rename function
      
      * FMT
      
      * Fix tests
      
      * Update figure
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      cc4b5c48
  25. Apr 06, 2022
  26. Apr 03, 2022
  27. Mar 28, 2022
  28. Mar 24, 2022
    • Davide Galassi's avatar
      BABE's revert procedure (#11022) · c534e00f
      Davide Galassi authored
      * First rough draft for BABE revert
      
      * Proper babe revert test
      
      * Cleanup
      
      * Test trivial cleanup
      
      * Fix to make clippy happy
      
      * Check polkadot companion
      
      * Check cumulus companion
      
      * Remove babe's blocks weight on revert
      
      * Handle "empty" blockchain edge case
      
      * Run companions
      
      * Simplify the filter predicate
      
      * Saturating sub is not required
      
      * Run pipeline
      
      * Run pipeline again...
      c534e00f
  29. Mar 19, 2022
  30. Mar 18, 2022
  31. Mar 15, 2022
  32. Mar 02, 2022
    • Bastian Köcher's avatar
      SimpleSlotWorker: Do not implement `SlotWorker` for all types implementing... · c5827146
      Bastian Köcher authored
      SimpleSlotWorker: Do not implement `SlotWorker` for all types implementing `SimpleSlotWorker` (#10934)
      
      Because Rust currently doesn't support specialization, it prevents users from implementing
      `SlotWorker` for their own types. This pr solves this by removing the generic implementation of
      `SlotWorker` for `SimpleSlotWorker` and providing some wrapper type for that.
      c5827146
  33. Mar 01, 2022
    • Andrew Jones's avatar
      Release primitive crates (#10937) · a3a7fe90
      Andrew Jones authored
      * cargo set-version --bump major -p pallet-contracts-primitives
      
      * cargo set-version --bump major -p sp-core
      
      * cargo set-version --bump major -p sp-runtime-interface
      
      * cargo set-version --bump major -p sp-wasm-interface
      
      * cargo set-version --bump major -p sp-runtime
      
      * cargo set-version --bump major -p sp-storage
      
      * cargo set-version --bump major -p sp-rpc
      
      * cargo set-version --bump major -p sp-io
      
      * cargo set-version --bump major -p sp-trie
      
      * cargo set-version -p sp-state-machine  -- 0.12.0
      
      * cargo set-version -p sp-externalities  -- 0.12.0
      
      * cargo set-version -p sp-keystore -- 0.12.0
      
      * cargo set-version --bump major -p sp-keyring
      
      * cargo set-version --bump major -p sp-version
      
      * cargo set-version --bump major -p sp-tracing
      
      * cargo set-version --bump major -p sp-application-crypto
      
      * cargo set-version --bump major -p sp-arithmetic
      
      * cargo unleash version bump-major -p sp-runtime-interface-proc-macro
      
      * Add codec max-encoded-len feature to sp-arithmetic
      
      * cargo unleash version bump-major -p sp-core-hashing-proc-macro
      a3a7fe90
    • dependabot[bot]'s avatar
      Bump futures from 0.3.16 to 0.3.19 (#10930) · e3377ddc
      dependabot[bot] authored
      
      
      Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.16 to 0.3.19.
      - [Release notes](https://github.com/rust-lang/futures-rs/releases)
      - [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.16...0.3.19)
      
      ---
      updated-dependencies:
      - dependency-name: futures
        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>
      e3377ddc