- Aug 15, 2022
-
-
Squirrel authored
* declone and close the door * cargo fmt * remove brackets
-
dependabot[bot] authored
* Bump rpassword from 5.0.1 to 7.0.0 Bumps [rpassword](https://github.com/conradkleinespel/rpassword) from 5.0.1 to 7.0.0. - [Release notes](https://github.com/conradkleinespel/rpassword/releases) - [Commits](https://github.com/conradkleinespel/rpassword/compare/v5.0.1...v7.0.0) --- updated-dependencies: - dependency-name: rpassword dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Use new API Signed-off-by: Oliver Tale-Yazdi <[email protected]> * fmt Signed-off-by: Oliver Tale-Yazdi <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Oliver Tale-Yazdi <[email protected]>
-
- Aug 12, 2022
-
-
Niklas Adolfsson authored
* feat(rpc middleware): use custom time buckets * cargo fmt * make it compile again * fix bad comment
-
- Aug 11, 2022
-
-
lucasvanmol authored
https://docs.substrate.io/v3/runtime/custom-rpcs/#public-rpcs > https://docs.substrate.io/main-docs/build/custom-rpc/#public-rpcs
-
yjh authored
-
- Aug 09, 2022
-
-
Nazar Mokrynskyi authored
* Extract `NetworkKVProvider` trait in `sc-authority-discovery` and remove unnecessary dependency * Extract `NetworkSyncForkRequest` trait in `sc-finality-grandpa` * Relax requirements on `SyncOracle` trait, remove extra native methods from `NetworkService` that are already provided by trait impls * Move `NetworkSigner` trait from `sc-authority-discovery` into `sc-network-common` and de-duplicate methods on `NetworkService` * Move `NetworkKVProvider` trait from `sc-authority-discovery` into `sc-network-common` and de-duplicate methods on `NetworkService` * Minimize `sc-authority-discovery` dependency on `sc-network` * Move `NetworkSyncForkRequest` trait from `sc-finality-grandpa` to `sc-network-common` and de-duplicate methods in `NetworkService` * Extract `NetworkStatusProvider` trait and de-duplicate methods on `NetworkService` * Extract `NetworkPeers` trait and de-duplicate methods on `NetworkService` * Extract `NetworkEventStream` trait and de-duplicate methods on `NetworkService` * Move more methods from `NetworkService` into `NetworkPeers` trait * Move `NetworkStateInfo` trait into `sc-network-common` * Extract `NetworkNotification` trait and de-duplicate methods on `NetworkService` * Extract `NetworkRequest` trait and de-duplicate methods on `NetworkService` * Remove `NetworkService::local_peer_id()`, it is already provided by `NetworkStateInfo` impl * Extract `NetworkTransaction` trait and de-duplicate methods on `NetworkService` * Extract `NetworkBlock` trait and de-duplicate methods on `NetworkService` * Remove dependencies on `NetworkService` from most of the methods of `sc-service` * Address simple review comments
-
Koute authored
* Restore `wasmtime`'s default stack size limit to 1MB * Add extra comments * Enforce different maximum call depth in release mode * Split the call depth limit in two
-
- Aug 08, 2022
-
-
Nikos Kontakis authored
* rename prunning and keep-blocks flags * Add aliases in keep-blocks and pruning for backward compatibility * Rename in code variables from and to and
-
- Aug 05, 2022
-
-
Bastian Köcher authored
Before `highestBlock` was an optional that was omitted when it was `None`. We recently changed the way the `highestBlock` is determined, this resulted in having this value in 99.99% of the time being `None` when the node is syncing blocks at the tip. Now we always return a block for `highestBlock`. If sync doesn't return us any best seen block, we return our own local best block as `highestBlock`. This should mainly reflect the same behavior to before we changed the way the best seen block is determined.
-
Dmitry Markin authored
-
Dmitry Markin authored
* Rename transactions protocol to include genesis hash * Add protocol name generation to sc_network::utils * Use utils functions for transactions protocol name generation * Extract protocol name generation into public module * Use sc_network::protocol_name::standard_protocol_name() for BEEFY and GRANDPA * minor: add missing newline at EOF * Change block-announces protocol name to include genesis_hash & fork_id * Change protocol names to include genesis hash and fork id Protocols changed: - sync - state - light - sync/warp * Revert "Use sc_network::protocol_name::standard_protocol_name() for BEEFY and GRANDPA" This reverts commit cd60a95a3face397e1b67f4bc95dd0f2b581bfae. * Get rid of `protocol_name` module
-
- Aug 04, 2022
-
-
Davide Galassi authored
* Prevent duplicated leaves in the backend * Comments... * Use highest known heaf as a shortcut for not existing header detection * Apply code review suggestion Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
ZhiYong authored
* beefy: use VersionedFinalityProof instead of SignedCommitment. * Change the exposed RPC API to support versioned proofs. Co-authored-by: Adrian Catangiu <[email protected]>
-
- Aug 03, 2022
-
-
Sacha Lansky authored
* Fix docs urls * Update bin/node-template/README.md * Update frame/aura/src/lib.rs * Run cargo +nightly fmt Co-authored-by: Bastian Köcher <[email protected]>
-
Bastian Köcher authored
* Revert non-best block This makes `revert` also revert non-best blocks. * Update client/db/src/lib.rs * Do not count leaves against the maximum number to revert * Add some explanation * Fix bug * Apply suggestions from code review Co-authored-by: Davide Galassi <[email protected]> Co-authored-by: Davide Galassi <[email protected]>
-
- Aug 02, 2022
-
-
Alexandru Vasile authored
* Bump jsonrpsee to v0.15.1 Signed-off-by: Alexandru Vasile <[email protected]> * Update cargo.lock Signed-off-by: Alexandru Vasile <[email protected]> * rpc-servers: Adjust RpcMiddleware to WS and HTTP traits Signed-off-by: Alexandru Vasile <[email protected]> * rpc/author: Use `SubscriptionSink` Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain: Use `SubscriptionSink` Signed-off-by: Alexandru Vasile <[email protected]> * rpc/state: Use `SubscriptionSink` Signed-off-by: Alexandru Vasile <[email protected]> * rpc/finality-grandpa: Use `SubscriptionSink` Signed-off-by: Alexandru Vasile <[email protected]> * rpc/beefy: Use `SubscriptionSink` Signed-off-by: Alexandru Vasile <[email protected]> * client: Extract RPC string result from queries Signed-off-by: Alexandru Vasile <[email protected]> * Apply rust-fmt Signed-off-by: Alexandru Vasile <[email protected]> * Fix warnings Signed-off-by: Alexandru Vasile <[email protected]> * Fix testing Signed-off-by: Alexandru Vasile <[email protected]> * rpc/tests: Remove trailing comma Signed-off-by: Alexandru Vasile <[email protected]> * rpc: Use `SubscriptionResult` for implementations Signed-off-by: Alexandru Vasile <[email protected]> * rpc: Remove comment Signed-off-by: Alexandru Vasile <[email protected]> * rpc: Delegate middleware calls to `RpcMiddleware` Signed-off-by: Alexandru Vasile <[email protected]> * rpc: Remove comment Signed-off-by: Alexandru Vasile <[email protected]> * Revert Cargo.lock Signed-off-by: Alexandru Vasile <[email protected]> * Update Cargo.lock with minimal changes Signed-off-by: Alexandru Vasile <[email protected]> * rpc: Update imports for `SubscriptionResult` Signed-off-by: Alexandru Vasile <[email protected]> * Apply cargo fmt Signed-off-by: Alexandru Vasile <[email protected]> * rpc/tests: Submit raw json requests to validate DenyUnsafe Signed-off-by: Alexandru Vasile <[email protected]>
-
Niklas Adolfsson authored
* fix(rpc middleware): fix `is_error` bug * Update client/rpc-servers/src/middleware.rs
-
- Jul 29, 2022
-
-
yjh authored
* feat: generalize ConsensusDataProvider for manual-seal * rename all generic type param `proof`/`PROOF` to `P` * rename a missing thing * Update client/consensus/manual-seal/src/consensus.rs Co-authored-by: Davide Galassi <[email protected]> * Update client/consensus/manual-seal/src/consensus/babe.rs Co-authored-by: Davide Galassi <[email protected]> * Update client/consensus/manual-seal/src/consensus/aura.rs Co-authored-by: Davide Galassi <[email protected]> Co-authored-by: Davide Galassi <[email protected]>
-
Nazar Mokrynskyi authored
* Make `chain_sync` an explicit networking parameter instead of offering factory method * Derive `Copy` on `SyncMode` and remove cloning
-
Adrian Catangiu authored
* client/beefy: don't accept vote for older rounds * client/beefy: clean up and reorg the worker struct * client/beefy: first step towards Full BEEFY The first step from Lean->Full BEEFY is to have the worker enforce uninterrupted line of BEEFY finalized mandatory blocks. There is one mandatory block per session (the first block in the session). As such, votes processing and votes generation now enforces that all mandatory blocks are finalized in strict monotonically increasing sequence and no block 'N' will be worked on if there is any GRANDPA finalized but BEEFY non-final mandatory block 'M', where 'M < N'. Implementation details: - Introduced 'VoterOracle' to separate the voting decisions logic, and track new/pending sessions. - New sessions get queued up with the worker operating either: 1. up-to-date - all mandatory blocks leading up to current GRANDPA finalized: queue has ONE element, the 'current session' where `mandatory_done == true`, 2. lagging behind GRANDPA: queue has [1, N] elements, where all `mandatory_done == false`. In this state, everytime a session gets its mandatory block BEEFY finalized, the session is popped off the queue, eventually getting to operating mode `1. up-to-date`. - Votes get triaged and those that fall withing the `VoterOracle` allowed window get processed, the others get dropped if stale, or buffered for later processing (when they reach the window). - Worker general code was also updated to fall in one of two roles: 1. react to external events and change internal 'state', 2. generate events/votes based on internal 'state'. Signed-off-by: acatangiu <[email protected]> * client/beefy: sketch idea for block import and sync Signed-off-by: acatangiu <[email protected]> * client/beefy: add BEEFY block import * client/beefy: process justifications from block import * client/beefy: add TODOs for sync protocol * client/beefy: add more docs and comments * client/beefy-rpc: fix RPC error * client/beefy: verify justification validity on block import * client/beefy: more tests * client/beefy: small fixes - first handle and note the self vote before gossiping it, - don't shortcircuit on err when processing pending votes. * client/beefy: remove invalid justifications at block import * todo: beefy block import tests * RFC: ideas for multiple justifications per block * Revert "RFC: ideas for multiple justifications per block" This reverts commit 8256fb07d3124db69daf252720b3c0208202624d. * client/beefy: append justif to backend on block import * client/beefy: groundwork for block import test * client/beefy: groundwork2 for block import test * client/beefy: groundwork3 for block import test * client/beefy: add block import test * client/beefy: add required trait bounds to block import builder * remove client from beefy block import, backend gets the job done Signed-off-by: acatangiu <[email protected]>
-
Dmitry Markin authored
* Always allocate slots for reserved nodes * minor: replace no-slot peer counter with a set
-
yjh authored
* feat: add propose method for SimpleSlotWorker * remove param slot * improve code * fmt
-
Koute authored
* Expose allocation stats in `FreeingBumpHeapAllocator` * Return allocation stats when calling into the runtime * Bump `parity-scale-codec` to 3.1.3 (fork) * Prevent double allocation of the payload when calling `sp_io::storage::get` * Fix tests * Remove unnecessary `mut` * Enable the `bytes` feature for `parity-scale-codec` in `sp-runtime-interface` * Update client/allocator/src/freeing_bump.rs Co-authored-by: Bastian Köcher <[email protected]> * Bump `parity-scale-codec` to 3.1.3 * Fix some of the UI tests Co-authored-by: Bastian Köcher <[email protected]>
-
- Jul 28, 2022
-
-
Liu-Cheng Xu authored
Add more info to the log to help debug the issue like https://github.com/paritytech/substrate/issues/11732. Co-authored-by: Bastian Köcher <[email protected]>
-
- Jul 27, 2022
-
-
Sebastian Kunert authored
* Remove retain_mut crate * Remove reain_mut crate from babe-consensus
-
- Jul 26, 2022
-
-
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: alvicsam <[email protected]>
-
- Jul 25, 2022
-
-
Qinxuan Chen authored
* Update comfy-table v5.0.1 => v6.0.0 Signed-off-by: koushiro <[email protected]> * Update strum v0.23.0 => v0.24.1 Signed-off-by: koushiro <[email protected]> * Update h2 v0.3.9 => v0.3.13 Signed-off-by: koushiro <[email protected]> * Update file-per-thread-logger v0.1.4 => v0.1.5 Signed-off-by: koushiro <[email protected]> * Update mio v0.8.0 => v0.8.4 Signed-off-by: koushiro <[email protected]> * revert twox-hash Signed-off-by: koushiro <[email protected]> * Update secp256k1 v0.21.2 => v0.24.0 Signed-off-by: koushiro <[email protected]>
-
Davide Galassi authored
* Remove unused leaves-set fields * Fix undo_import method Old leaf sould be inserted using the displaced number * Fix leaves count * Apply code review suggestions Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
- Jul 22, 2022
-
-
Dmitry Markin authored
-
- Jul 21, 2022
-
-
Nazar Mokrynskyi authored
* Stop RPC servers on drop * Switch to existing wrappers that stop RPC servers * Apply formatting
-
Dmitry Markin authored
* Remove --light cli option * Cleanup light client leftovers * Remove commented-out code and clean-up more light client leftovers * Fix formatting with `cargo +nightly fmt` * Remove FIXME regarding db directory structure Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
- Jul 20, 2022
-
-
Alan Sapede authored
* Make reading json genesis file faster * Formatting * fmt
-
Oliver Tale-Yazdi authored
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
- Jul 18, 2022
-
-
Bastian Köcher authored
* Disable the interest cache The feature is currently broken with the latest `tracing-core`. We will enable it again, when it is fixed upstream. * FMT
-
Koute authored
* Improve `wasmtime` error reporting * cargo fmt
-
- Jul 17, 2022
-
-
yjh authored
* make template more clear * fmt check_equivocation Co-authored-by: Bastian Köcher <[email protected]>
-
- Jul 16, 2022
-
-
Sergej Sakac authored
* removed evaluation.rs * no need for parent_hash * fix
-
Nazar Mokrynskyi authored
-
- Jul 15, 2022
-
-
Arkadiy Paronyan authored
* Fixed sync target detection * Always report sync_target metric * Clamp median across all peers
-
- Jul 12, 2022
-
-
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: Bastian Köcher <[email protected]>
-