Skip to content

Commit

Permalink
release v2220-rc1 (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
markopoloparadox authored May 14, 2024
1 parent d18f352 commit 9d88dbf
Show file tree
Hide file tree
Showing 9 changed files with 479 additions and 463 deletions.
304 changes: 152 additions & 152 deletions Cargo.lock

Large diffs are not rendered by default.

238 changes: 119 additions & 119 deletions Cargo.toml

Large diffs are not rendered by default.

162 changes: 81 additions & 81 deletions avail-subxt/Cargo.lock

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions avail-subxt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "src/e2e.rs"

[dependencies]
avail-base = { path = "../base" }
avail-core = { git = "https://github.com/availproject/avail-core", tag = "node-v2210-rc1", features = ["serde"] }
avail-core = { git = "https://github.com/availproject/avail-core", tag = "node-v2220-rc1", features = ["serde"] }

# Other
derive_more = "0.99.17"
Expand All @@ -40,8 +40,8 @@ serde_json = { version = "1.0", features = ["arbitrary_precision"] }

# Substrate
subxt = "0.34"
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4", default-features = false }
sp-runtime = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4", default-features = false }
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5", default-features = false }
sp-runtime = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5", default-features = false }
codec = { package = "parity-scale-codec", version = "3", default-features = false, features = [
"derive",
"full",
Expand All @@ -51,7 +51,7 @@ scale-info = { version = "2.5.0", features = ["bit-vec"] }
bounded-collections = { version = "0.2.0", features = ["serde"] }

[dev-dependencies]
avail-core = { git = "https://github.com/availproject/avail-core", tag = "node-v2210-rc1", features = ["serde", "runtime"] }
avail-core = { git = "https://github.com/availproject/avail-core", tag = "node-v2220-rc1", features = ["serde", "runtime"] }

async-std = { version = "1.12.0", features = ["attributes", "tokio1"] }
futures = "0.3.13"
Expand All @@ -64,17 +64,17 @@ indicatif = "0.17"
rand = "0.8.5"

# Substrate
sp-keyring = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
binary-merkle-tree = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4", default-features = false }
sp-keyring = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }
binary-merkle-tree = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5", default-features = false }
subxt-signer = "0.34"

# Dependency `subxt` uses it's own 'version' of sp-core so we need to patch it :)
[patch.crates-io]
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
sp-io = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
sp-runtime = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
sp-std = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
# frame-metadata = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }
sp-io = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }
sp-runtime = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }
sp-std = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }
# frame-metadata = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }


[features]
Expand Down
168 changes: 84 additions & 84 deletions e2e/Cargo.lock

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions e2e/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ edition = "2021"

[dependencies]
avail-subxt = { path = "../avail-subxt" }
kate-recovery = { git = "https://github.com/availproject/avail-core", tag = "node-v2210-rc1" }
kate = { git = "https://github.com/availproject/avail-core", tag = "node-v2210-rc1" }
avail-core = { git = "https://github.com/availproject/avail-core", tag = "node-v2210-rc1" }
kate-recovery = { git = "https://github.com/availproject/avail-core", tag = "node-v2220-rc1" }
kate = { git = "https://github.com/availproject/avail-core", tag = "node-v2220-rc1" }
avail-core = { git = "https://github.com/availproject/avail-core", tag = "node-v2220-rc1" }

# Parity
sp-keyring = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
sp-keyring = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }
subxt-signer = "0.34"
codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full", "bit-vec"] }
binary-merkle-tree = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
binary-merkle-tree = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }

# Other
async-std = { version = "1.12.0", features = ["attributes", "tokio1"] }
Expand All @@ -25,7 +25,7 @@ serde = { version = "1.0.195", default-features = false, features = ["derive", "

# Dependency `subxt` uses it's own 'version' of sp-core so we need to patch it :)
[patch.crates-io]
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
sp-io = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
sp-runtime = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
sp-std = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-4" }
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }
sp-io = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }
sp-runtime = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }
sp-std = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-5" }
2 changes: 1 addition & 1 deletion node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pub mod cli;
pub mod rpc;
pub mod service;

pub const NODE_VERSION: &str = "2.1.3";
pub const NODE_VERSION: &str = "2.1.4";
24 changes: 20 additions & 4 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ use sc_network_sync::SyncingService;
use sc_service::{
error::Error as ServiceError, Configuration, RpcHandlers, TaskManager, WarpSyncParams,
};
use sc_telemetry::custom_telemetry::external::BlockIntervalFromNode;
use sc_telemetry::{custom_telemetry::CustomTelemetryWorker, Telemetry, TelemetryWorker};
use sc_transaction_pool_api::OffchainTransactionPoolFactory;
use sp_api::ProvideRuntimeApi;
Expand Down Expand Up @@ -226,11 +227,15 @@ pub fn new_partial(
let telemetry_handle = telemetry.as_ref().map(|t| t.handle());
let custom_telemetry_worker = CustomTelemetryWorker {
handle: telemetry_handle,
sampling_interval_ms: 20_000u128,
sampling_interval_ms: 7_500u128,
max_interval_buffer_size: 20,
max_block_request_buffer_size: 10,
};
task_manager
.spawn_handle()
.spawn("custom_telemetry", None, custom_telemetry_worker.run());
task_manager.spawn_handle().spawn(
"custom_telemetry",
None,
custom_telemetry_worker.run(Some(filter_intervals), None),
);

let select_chain = sc_consensus::LongestChain::new(backend.clone());

Expand Down Expand Up @@ -679,6 +684,17 @@ fn extend_metrics(prometheus: &Registry) -> Result<(), PrometheusError> {
Ok(())
}

fn filter_intervals(intervals: Vec<BlockIntervalFromNode>) -> Vec<BlockIntervalFromNode> {
// We are working on a 7.5 second telemetry interval basis.
// If there are more than 4 blocks worth of events then the node is still syncing and we
// don't want to broadcast sync related data.
if intervals.len() > 4 {
return vec![];
}

intervals
}

/*
#[cfg(test)]
mod tests {
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// Per convention: if the runtime behavior changes, increment spec_version
// and set impl_version to 0. This paramenter is typically incremented when
// there's an update to the transaction_version.
spec_version: 30,
spec_version: 31,
// The version of the implementation of the specification. Nodes can ignore this. It is only
// used to indicate that the code is different. As long as the authoring_version and the
// spec_version are the same, the code itself might have changed, but the native and Wasm
Expand Down

0 comments on commit 9d88dbf

Please sign in to comment.