- May 02, 2023
-
-
Shunsuke Watanabe authored
* up * up * added test * remove unncessary dep * cargo fmt * cargo fmt * up * Update client/consensus/manual-seal/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * fix test * cargo fmt * added docs * updated doc --------- Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: parity-processbot <>
-
Mira Ressel authored
Co-authored-by: parity-processbot <>
-
Alexandru Vasile authored
* rpc/chain_head: Add backend to subscription management Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_head: Pin blocks internally and adjust testing Signed-off-by: Alexandru Vasile <[email protected]> * client/in_mem: Reference for the number of pinned blocks Signed-off-by: Alexandru Vasile <[email protected]> * rpc/tests: Check in-memory references to pinned blocks Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_head: Fix clippy Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_head: Remove unused comment Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_head: Place subscription handle under `Arc` and unpin blocks on drop Signed-off-by: Alexandru Vasile <[email protected]> * rpc/tests: Check all pinned blocks are unpinned on drop Signed-off-by: Alexandru Vasile <[email protected]> * Apply suggestions from code review Co-authored-by: Bastian Köcher <[email protected]> * Update client/rpc-spec-v2/src/chain_head/subscription.rs Co-authored-by: Bastian Köcher <[email protected]> * rpc/tests: Retry fetching the pinned references for CI correctness Signed-off-by: Alexandru Vasile <[email protected]> * client/service: Use 512 as maximum number of pinned blocks Signed-off-by: Alexandru Vasile <[email protected]> * chain_head: Fix merging conflicts Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_head: Adjust subscriptions to use pinning API Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_head/tests: Test subscription management Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_head: Adjust chain_head follow to the new API Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_head: Adjust chain_head.rs to the new API Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_head/tests: Adjust test.rs to the new API Signed-off-by: Alexandru Vasile <[email protected]> * client/builder: Use new chainHead API Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_head: Fix documentation Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_head: Fix clippy Signed-off-by: Alexandru Vasile <[email protected]> * client/in_mem: ChainHead no longer uses `in_mem::children` Signed-off-by: Alexandru Vasile <[email protected]> * Update client/rpc-spec-v2/src/chain_head/subscription.rs Co-authored-by: Sebastian Kunert <[email protected]> * Update client/rpc-spec-v2/src/chain_head/subscription.rs Co-authored-by: Sebastian Kunert <[email protected]> * Update client/rpc-spec-v2/src/chain_head/subscription.rs Co-authored-by: Sebastian Kunert <[email protected]> * Update client/rpc-spec-v2/src/chain_head/subscription.rs Co-authored-by: Sebastian Kunert <[email protected]> * chain_head: Add block state machine Signed-off-by: Alexandru Vasile <[email protected]> * Address feedback Signed-off-by: Alexandru Vasile <[email protected]> * Use new_native_or_wasm_executor Signed-off-by: Alexandru Vasile <[email protected]> * chain_head: Remove 'static on Backend Signed-off-by: Alexandru Vasile <[email protected]> * chain_head: Add documentation Signed-off-by: Alexandru Vasile <[email protected]> * chain_head: Lock blocks before async blocks Signed-off-by: Alexandru Vasile <[email protected]> * chain_head_follower: Remove static on backend Signed-off-by: Alexandru Vasile <[email protected]> * Update client/service/src/builder.rs Co-authored-by: Davide Galassi <[email protected]> * Update client/service/src/builder.rs Co-authored-by: Davide Galassi <[email protected]> * chain_head: Add BlockHeaderAbsent to the PartialEq impl Signed-off-by: Alexandru Vasile <[email protected]> * client: Add better documentation around pinning constants Signed-off-by: Alexandru Vasile <[email protected]> * chain_head: Move subscription to dedicated module Signed-off-by: Alexandru Vasile <[email protected]> * subscription: Rename global pin / unpin functions Signed-off-by: Alexandru Vasile <[email protected]> --------- Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: parity-processbot <> Co-authored-by: Sebastian Kunert <[email protected]> Co-authored-by: Davide Galassi <[email protected]>
-
- Apr 29, 2023
-
-
yjh authored
-
- Apr 27, 2023
-
-
dependabot[bot] authored
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/bytecodealliance/wasmtime/releases) - [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md) - [Commits](https://github.com/bytecodealliance/wasmtime/compare/v6.0.1...v6.0.2) --- updated-dependencies: - dependency-name: wasmtime dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
yjh authored
* chore(cli): make cli display docs correctly * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: command-bot <>
-
Bastian Köcher authored
Before this wasn't printing a warning for `VerificationFailed` when there wasn't a peer assigned to the error message. However, if there happens an error on importing the state there wouldn't be any error. This pr improves the situation to also print an error in this case. Besides that there are some other cleanups.
-
- Apr 25, 2023
-
-
yjh authored
* refactor: extract TelemetryParams and PrometheusParams * improve run_cmd docs * extract `RuntimeParams` * use `normalize` * keep params types same style * improve `max_runtime_instances` * fmt * add license and improve code * Update client/cli/src/params/runtime_params.rs Co-authored-by: Bastian Köcher <[email protected]> --------- Co-authored-by: Bastian Köcher <[email protected]>
-
- Apr 21, 2023
-
-
ordian authored
-
Aaro Altonen authored
* Evict inactive peers from `SyncingEngine` If both halves of the block announce notification stream have been inactive for 2 minutes, report the peer and disconnect it, allowing `SyncingEngine` to free up a slot for some other peer that hopefully is more active. This needs to be done because the node may falsely believe it has open connections to peers because the inbound substream can be closed without any notification and closed outbound substream is noticed only when node attempts to write to it which may not happen if the node has nothing to send. * zzz * wip * Evict peers only when timeout expires * Use `debug!()` --------- Co-authored-by: parity-processbot <>
-
- Apr 20, 2023
-
-
Aaro Altonen authored
* Keep track of the pending response for each peer individually When peer disconnects or the syncing is restarted, remove the pending response so syncing won't start sending duplicate requests/receive stale responses from disconnected peers. Before this commit pending responses where stored in `FuturesUnordered` which made it hard to keep track of pending responses for each individual peer. * Update client/network/sync/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * ".git/.scripts/commands/fmt/fmt.sh" * Apply suggestions from code review Co-authored-by: Dmitry Markin <[email protected]> Co-authored-by: Sebastian Kunert <[email protected]> * Update client/network/sync/src/lib.rs --------- Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: command-bot <> Co-authored-by: Dmitry Markin <[email protected]> Co-authored-by: Sebastian Kunert <[email protected]>
-
Bastian Köcher authored
-
- Apr 19, 2023
-
-
Davide Galassi authored
* First iteration to encapsulate schnorrkel and merlin usage * Remove schnorkel direct dependency from BABE pallet * Remove schnorrkel direct dependency from BABE client * Trivial renaming for VrfTranscript data and value * Better errors * Expose a function to get a schnorrkel friendly transcript * Keep the vrf signature stuff together (preventing some clones around) * Fix tests * Remove vrf agnostic transcript and define it as an associated type for VrfSigner and VrfVerifier * Fix babe pallet mock * Inner types are required to be public for polkadot * Update client/consensus/babe/src/verification.rs Co-authored-by: Koute <[email protected]> * Nit * Remove Deref implementations * make_bytes as a method * Trigger CI --------- Co-authored-by: Koute <[email protected]>
-
Bastian Köcher authored
-
- Apr 18, 2023
-
-
yjh authored
* chore(docs): improve some comments * Update client/network/common/src/sync/message.rs Co-authored-by: Koute <[email protected]> * Update client/rpc-api/src/chain/mod.rs Co-authored-by: Koute <[email protected]> * Update client/rpc/src/chain/mod.rs Co-authored-by: Koute <[email protected]> * Update client/rpc/src/chain/mod.rs Co-authored-by: Koute <[email protected]> * Update frame/staking/src/pallet/impls.rs Co-authored-by: Koute <[email protected]> --------- Co-authored-by: Koute <[email protected]>
-
André Silva authored
* babe: replace usage of SharedEpochChanges with internal RPC * babe-rpc: fix tests * babe: use SinkExt::send instead of Sender::try_send SinkExt::send provides backpressure in case the channel is full * Update client/consensus/babe/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * babe: fix spawn * babe: send handles backpressure * babe: use testing::TaskExecutor * babe-rpc: better error handling --------- Co-authored-by: Bastian Köcher <[email protected]>
-
Aaro Altonen authored
* Poll the substream validation before polling `Notifications` In tests, it can happen that `Notifications` doesn't produce any events which causes `poll()` to return `Poll::Pending` and the substream validation futures won't get polled. Poll the futures before calling `Notifications` so results for substream validations are received even if `Notifications` is not producing any events. * Remove `pending_messages` * Remove unused import
-
- Apr 15, 2023
-
-
Bastian Köcher authored
We should not panic on an invalid header pointer and instead return an error. It is possible that the application modifies the header pointer illegally, but then we should return an error instead of panicking.
-
- Apr 14, 2023
-
-
NingLin-P authored
Signed-off-by: linning <[email protected]>
-
dependabot[bot] authored
Bumps [cargo_metadata](https://github.com/oli-obk/cargo_metadata) from 0.15.3 to 0.15.4. - [Release notes](https://github.com/oli-obk/cargo_metadata/releases) - [Changelog](https://github.com/oli-obk/cargo_metadata/blob/main/CHANGELOG.md) - [Commits](https://github.com/oli-obk/cargo_metadata/compare/0.15.3...0.15.4) --- updated-dependencies: - dependency-name: cargo_metadata dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bastian Köcher authored
The check was intially added by: https://github.com/paritytech/substrate/pull/5121 But a later pr fixed it properly: https://github.com/paritytech/substrate/pull/9789 TLDR: We don't need to check for skipped anymore, as we already remove all transactions that are being unlocked by an invalid transactions and thus, we will not tag them as invalid directly because the nonce for example is incorrect. Fixes: https://github.com/paritytech/substrate/issues/13911
-
- Apr 12, 2023
-
-
Sam Johnson authored
* globally upgrade quote to latest 1.0.x (1.0.26) * globally upgrade syn to final 1.0.x version (1.0.109) * globally upgrade proc-macro2 to 1.0.56 * upgrade to syn v2.0.13 and fix everything except NestedMeta * fix parse nested metadata code in decl_runtime_apis.rs * Port more stuff to syn 2.0 * Make the rest compile * Ignore error * update to syn 2.0.14 --------- Co-authored-by: Bastian Köcher <[email protected]>
-
Roman Useinov authored
* [Deps] Bump scale-info to match cumulus and polkadot * fix Cargo.lock * fix identity * more fixes * fix * fixes * more fixes
-
Adrian Catangiu authored
* add cost/benefit to gossip messages * report BEEFY gossip peer reputation changes * drop WorkerParams helper struct * add reputation costs to tests * add peer reputation cost/benefit to on-demand-requests protocol * include amount of signatures checked in invalid proof reputation cost Signed-off-by: Adrian Catangiu <[email protected]>
-
- Apr 11, 2023
-
-
Mira Ressel authored
-
yjh authored
-
- Apr 10, 2023
-
-
Liam Aharon authored
-
- Apr 09, 2023
-
-
yjh authored
* refactor: use builder api for all executors * improve a lot * remove unused args * cleanup deps * fix inconsistency about heap alloc * add `heap_pages` back to try-runtime * fix * chore: reduce duplicated code for sc-service-test * cleanup code * fmt * improve test executor * improve * use #[deprecated] * set runtime_cache_size: 4 * fix and improve * refactor builder * fix * fix bench * fix tests * fix warnings * fix warnings * fix * fix * update by suggestions * update name
-
- Apr 07, 2023
-
-
Marcin S. authored
* WASM executor: add `OutputExceedsBounds` variant to `Error` Previously this was a `WasmError`, which is intended for runtime construction errors. However this led to confusion as output-exceeds-bounds occurs due to execution of `validate_block`. * Fix warning
-
Aaro Altonen authored
* Make blocks per request configurable * Correct type * Update docs * Update client/cli/src/params/network_params.rs
-
- Apr 06, 2023
-
-
Chris Kerr authored
* Fix typo GRANPA -> GRANDPA * Fix capitalisation Fixed words capitalised in the middle of sentences.
-
Liam Aharon authored
-
- Apr 05, 2023
-
-
Bastian Köcher authored
* TrieRecorder: Start adding support for transactions * Adds `transactions` functions and some test * More tests * Docs * Ensure that we rollback failed transactions in the storage proof * FMT * Update primitives/trie/src/recorder.rs Co-authored-by: Dmitry Markin <[email protected]> * Review comments * Update primitives/trie/src/recorder.rs Co-authored-by: Sebastian Kunert <[email protected]> * ".git/.scripts/commands/fmt/fmt.sh" * For the holy clippy! * Update primitives/trie/src/recorder.rs Co-authored-by: Anton <[email protected]> --------- Co-authored-by: Dmitry Markin <[email protected]> Co-authored-by: Sebastian Kunert <[email protected]> Co-authored-by: command-bot <> Co-authored-by: Anton <[email protected]>
-
Bastian Köcher authored
Instead of registering `ReadRuntimeVersionExt` in `sp-state-machine` it is moved to `ExecutionExtension` which provides the default extensions.
-
- Apr 04, 2023
-
-
s0me0ne-unkn0wn authored
* Expose WASM extensions in executor semantics * Fix benches * Remove redundant extensions
-
Bastian Köcher authored
This removes the deprecated batch verification. This was actually never really activated. Nevertheless, we need to keep the host functions around to support old runtimes which may import these host functions. However, we do not give access to these functions anymore. This means that any new runtime can not call them anymore. The host function implementations we keep will not do batch verification and will instead fall back to the always existing option of directly verifying the passed signature. `finish_batch_verification` will return the combined result of all the batch verify calls. This removes the `TaskExecutorExt` which only existed to support the batch verification. So, any code that used this extension can just remove the registration of them. It also removes `SignatureBatching` that was used by `frame-executive` to control the batch verification. However, there wasn't any `Verify` implementation that called the batch verification functions.
-
- Apr 03, 2023
-
-
Bastian Köcher authored
This fixes the compilation on master for the node template that was not pulling the latest release as part of its build.
-
Damian Straszak authored
* Changes in RPC docs. * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: command-bot <>
-
- Mar 31, 2023
-
-
asynchronous rob authored
* Extract most aura logic out to standalone module, make use of these * Update client/consensus/aura/src/standalone.rs improve docs Co-authored-by: Bastian Köcher <[email protected]> * add slot_duration_at * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: parity-processbot <>
-
- Mar 30, 2023
-
-
Adrian Catangiu authored
* sc-consensus-beefy: add justifications to gossip protocol * sc-consensus-beefy: voter gossips finality proofs * sc-consensus-beefy: add finality proof gossip test * sc-consensus-beefy: always gossip finality proof Gossip finality proof in _both_ cases of reaching finality threshold through votes: 1. threshold reached through self vote, 2. threshold reached through incoming vote. * address comments
-