Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into shawntabrizi-xcm-tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Nov 15, 2021
2 parents e7c8c8e + 13c2695 commit 413379a
Show file tree
Hide file tree
Showing 76 changed files with 333 additions and 317 deletions.
485 changes: 243 additions & 242 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ path = "src/main.rs"
name = "polkadot"
description = "Implementation of a https://polkadot.network node in Rust based on the Substrate framework."
license = "GPL-3.0-only"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-cli"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
description = "Polkadot Relay-chain Client Node"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion core-primitives/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-core-primitives"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion erasure-coding/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-erasure-coding"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion erasure-coding/fuzzer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "erasure_coding_fuzzer"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-client"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/collation-generation/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-collation-generation"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/approval-voting/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-approval-voting"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/av-store/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-av-store"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/backing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-backing"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/bitfield-signing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-bitfield-signing"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/candidate-validation/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-candidate-validation"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/chain-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-chain-api"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/chain-selection/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "polkadot-node-core-chain-selection"
description = "Chain Selection Subsystem"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/dispute-coordinator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-dispute-coordinator"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/dispute-participation/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-dispute-participation"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/parachains-inherent/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-parachains-inherent"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/provisioner/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-provisioner"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/core/pvf/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-pvf"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
15 changes: 14 additions & 1 deletion node/core/pvf/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,21 @@ impl metrics::Metrics for Metrics {
prometheus::Histogram::with_opts(
prometheus::HistogramOpts::new(
"pvf_preparation_time",
"Time spent in preparing PVF artifacts",
"Time spent in preparing PVF artifacts in seconds",
)
.buckets(vec![
// This is synchronized with COMPILATION_TIMEOUT=60s constant found in
// src/prepare/worker.rs
0.1,
0.5,
1.0,
10.0,
20.0,
30.0,
40.0,
50.0,
60.0,
]),
)?,
registry,
)?,
Expand Down
4 changes: 3 additions & 1 deletion node/core/pvf/src/prepare/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ use std::{sync::Arc, time::Duration};
const NICENESS_BACKGROUND: i32 = 10;
const NICENESS_FOREGROUND: i32 = 0;

const COMPILATION_TIMEOUT: Duration = Duration::from_secs(10);
/// The time period after which the preparation worker is considered unresponsive and will be killed.
// NOTE: If you change this make sure to fix the buckets of `pvf_preparation_time` metric.
const COMPILATION_TIMEOUT: Duration = Duration::from_secs(60);

/// Spawns a new worker with the given program path that acts as the worker and the spawn timeout.
///
Expand Down
2 changes: 1 addition & 1 deletion node/core/runtime-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-core-runtime-api"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/jaeger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-jaeger"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
description = "Polkadot Jaeger primitives"
Expand Down
2 changes: 1 addition & 1 deletion node/malus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "src/variant-a.rs"
name = "polkadot-test-malus"
description = "Misbehaving nodes for local testnets, system and Simnet tests."
license = "GPL-3.0-only"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion node/metered-channel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "metered-channel"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
description = "Channels with attached Meters"
Expand Down
2 changes: 1 addition & 1 deletion node/metrics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-metrics"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
description = "Subsystem traits and message definitions"
Expand Down
2 changes: 1 addition & 1 deletion node/network/approval-distribution/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-approval-distribution"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/network/availability-distribution/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-availability-distribution"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/network/availability-recovery/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-availability-recovery"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/network/bitfield-distribution/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-availability-bitfield-distribution"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/network/bridge/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-network-bridge"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/network/collator-protocol/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-collator-protocol"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/network/dispute-distribution/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-dispute-distribution"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/network/gossip-support/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-gossip-support"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/network/protocol/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-network-protocol"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
description = "Primitives types for the Node-side"
Expand Down
2 changes: 1 addition & 1 deletion node/network/statement-distribution/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-statement-distribution"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
description = "Statement Distribution Subsystem"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion node/overseer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-overseer"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/overseer/overseer-gen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-overseer-gen"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
description = "Generate an overseer including builder pattern and message wrapper from a single struct."
Expand Down
2 changes: 1 addition & 1 deletion node/overseer/overseer-gen/proc-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-overseer-gen-proc-macro"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
description = "Generate an overseer including builder pattern and message wrapper from a single annotated struct definition."
Expand Down
2 changes: 1 addition & 1 deletion node/primitives/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-primitives"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
description = "Primitives types for the Node-side"
Expand Down
2 changes: 1 addition & 1 deletion node/service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-service"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/subsystem-test-helpers/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-subsystem-test-helpers"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
description = "Subsystem traits and message definitions"
Expand Down
2 changes: 1 addition & 1 deletion node/subsystem-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-subsystem-types"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
description = "Subsystem traits and message definitions"
Expand Down
2 changes: 1 addition & 1 deletion node/subsystem-util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-subsystem-util"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
description = "Subsystem traits and message definitions"
Expand Down
2 changes: 1 addition & 1 deletion node/subsystem/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-node-subsystem"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"
description = "Subsystem traits and message definitions and the generated overseer"
Expand Down
2 changes: 1 addition & 1 deletion node/test/client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-test-client"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion node/test/polkadot-simnet/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-simnet"
version = "0.9.12"
version = "0.9.13"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

Expand Down
Loading

0 comments on commit 413379a

Please sign in to comment.