mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
6ae9720c36
* Add `DisputeState` to `DisputeCoordinatorMessage::RecentDisputes` The new signature of the message is: ``` RecentDisputes(oneshot::Sender<Vec<(SessionIndex, CandidateHash, DisputeStatus)>>), ``` As part of the change also add `DispiteStatus` to `polkadot_node_primitives`. * Move dummy_signature() in primitives/test-helpers * Enable staging runtime api on Rococo * Implementation * Move disputes to separate module * Vote prioritisation * Duplicates handling * Double vote handling * Unit tests * Logs and metrics * Code review feedback * Fix ACTIVE/INACTIVE separation and update partition names * Add `fn dispute_is_inactive` to node primitives and refactor `fn get_active_with_status()` logic * Keep the 'old' logic if the staging api is not enabled * Fix some comments in tests * Add warning message if there are any inactive_unknown_onchain disputes * Add file headers and remove `use super::*;` usage outside tests * Adding doc comments * Fix test methods names * Fix staging api usage * Fix `get_disputes` runtime function implementation * Fix compilation error * Fix arithmetic operations in tests * Use smaller test data * Rename `RuntimeApiRequest::StagingDisputes` to `RuntimeApiRequest::Disputes` * Remove `staging-client` feature flag * fmt * Remove `vstaging` feature flag * Some comments regarding the staging api * Rename dispute selection modules in provisioner with_staging_api -> prioritized_selection without_staging_api -> random_selection * Comments for staging api * Comments * Additional logging * Code review feedback process_selected_disputes -> into_multi_dispute_statement_set typo In trait VoteType: vote_value -> is_valid * Code review feedback * Fix metrics * get_disputes -> disputes * Get time only once during partitioning * Fix partitioning * Comments * Reduce the number of hardcoded api versions * Code review feedback * Unused import * Comments * More precise log messages * Code review feedback * Code review feedback * Code review feedback - remove `trait VoteType` * Code review feedback * Trace log for DisputeCoordinatorMessage::QueryCandidateVotes counter in vote_selection
77 lines
3.1 KiB
TOML
77 lines
3.1 KiB
TOML
[package]
|
|
name = "polkadot-cli"
|
|
version = "0.9.29"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
description = "Polkadot Relay-chain Client Node"
|
|
edition = "2021"
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
# `wasm-opt` has some problems on Linux, see
|
|
# https://github.com/rustwasm/wasm-pack/issues/781 etc.
|
|
wasm-opt = false
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
clap = { version = "3.1", features = ["derive"], optional = true }
|
|
log = "0.4.17"
|
|
thiserror = "1.0.31"
|
|
futures = "0.3.21"
|
|
pyro = { package = "pyroscope", version = "0.3.1", optional = true }
|
|
|
|
service = { package = "polkadot-service", path = "../node/service", default-features = false, optional = true }
|
|
polkadot-client = { path = "../node/client", optional = true }
|
|
polkadot-node-core-pvf = { path = "../node/core/pvf", optional = true }
|
|
polkadot-performance-test = { path = "../node/test/performance-test", optional = true }
|
|
|
|
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
|
|
try-runtime-cli = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
|
|
sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
|
|
sc-service = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
|
|
polkadot-node-metrics = { path = "../node/metrics" }
|
|
sc-tracing = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
|
|
sc-sysinfo = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
|
|
# this crate is used only to enable `trie-memory-tracker` feature
|
|
# see https://github.com/paritytech/substrate/pull/6745
|
|
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
|
|
[build-dependencies]
|
|
substrate-build-script-utils = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
|
|
[features]
|
|
default = ["wasmtime", "db", "cli", "hostperfcheck", "full-node", "trie-memory-tracker", "polkadot-native"]
|
|
wasmtime = ["sc-cli/wasmtime"]
|
|
db = ["service/db"]
|
|
cli = [
|
|
"clap",
|
|
"sc-cli",
|
|
"sc-service",
|
|
"sc-tracing",
|
|
"frame-benchmarking-cli",
|
|
"try-runtime-cli",
|
|
"polkadot-client",
|
|
"polkadot-node-core-pvf",
|
|
]
|
|
runtime-benchmarks = ["service/runtime-benchmarks", "polkadot-node-metrics/runtime-benchmarks"]
|
|
trie-memory-tracker = ["sp-trie/memory-tracker"]
|
|
full-node = ["service/full-node"]
|
|
try-runtime = ["service/try-runtime"]
|
|
fast-runtime = ["service/fast-runtime"]
|
|
pyroscope = ["pyro"]
|
|
hostperfcheck = ["polkadot-performance-test"]
|
|
|
|
# Configure the native runtimes to use. Polkadot is enabled by default.
|
|
#
|
|
# Validators require the native runtime currently
|
|
polkadot-native = ["service/polkadot-native"]
|
|
kusama-native = ["service/kusama-native"]
|
|
westend-native = ["service/westend-native"]
|
|
rococo-native = ["service/rococo-native"]
|
|
|
|
malus = ["full-node", "service/malus"]
|
|
runtime-metrics = ["service/runtime-metrics", "polkadot-node-metrics/runtime-metrics"]
|