mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-30 23:37:24 +00:00
25974f2076
* Mostly notes. * Better error messages. * Introduce Fatal/NonFatal + drop back channel participation - Fatal/NonFatal - in order to make it easier to use utility functions. - We drop the back channel in dispute participation as it won't be needed any more. * Better error messages. * Utility function for receiving `CandidateEvent`s. * Ordering module typechecks. * cargo fmt * Prepare spam slots module. * Implement SpamSlots mechanism. * Implement queues. * cargo fmt * Participation. * Participation taking shape. * Finish participation. * cargo fmt * Cleanup. * WIP: Cleanup + Integration. * Make `RollingSessionWindow` initialized by default. * Make approval voting typecheck. * Get rid of lazy_static & fix approval voting tests * Move `SessionWindowSize` to node primitives. * Implement dispute coordinator initialization. * cargo fmt * Make queues return error instead of boolean. * Initialized: WIP * Introduce chain api for getting finalized block. * Fix ordering to only prune candidates on finalized events. * Pruning of old sessions in spam slots. * New import logic. * Make everything typecheck. * Fix warnings. * Get rid of obsolete dispute-participation. * Fixes. * Add back accidentelly deleted Cargo.lock * Deliver disputes in an ordered fashion. * Add module docs for errors * Use type synonym. * hidden docs. * Fix overseer tests. * Ordering provider taking `CandidateReceipt`. ... To be kicked on one next commit. * Fix ordering to use relay_parent as included block is not unique per candidate. * Add comment in ordering.rs. * Take care of duplicate entries in queues. * Better spam slots. * Review remarks + docs. * Fix db tests. * Participation tests. * Also scrape votes on first leaf for good measure. * Make tests typecheck. * Spelling. * Only participate in actual disputes, not on every import. * Don't account backing votes to spam slots. * Fix more tests. * Don't participate if we don't have keys. * Fix tests, typos and warnings. * Fix merge error. * Spelling fixes. * Add missing docs. * Queue tests. * More tests. * Add metrics + don't short circuit import. * Basic test for ordering provider. * Import fix. * Remove dead link. * One more dead link. Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com>
153 lines
4.2 KiB
TOML
153 lines
4.2 KiB
TOML
[[bin]]
|
|
name = "polkadot"
|
|
path = "src/main.rs"
|
|
|
|
[package]
|
|
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.13"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
readme = "README.md"
|
|
|
|
[dependencies]
|
|
polkadot-cli = { path = "cli", features = [ "kusama-native", "westend-native", "rococo-native" ] }
|
|
color-eyre = { version = "0.5.11", default-features = false }
|
|
parity-util-mem = { version = "*", default-features = false, features = ["jemalloc-global"] }
|
|
|
|
[dev-dependencies]
|
|
assert_cmd = "1.0.2"
|
|
nix = "0.20.0"
|
|
tempfile = "3.2.0"
|
|
|
|
[workspace]
|
|
members = [
|
|
"cli",
|
|
"core-primitives",
|
|
"erasure-coding",
|
|
"primitives",
|
|
"runtime/common",
|
|
"runtime/common/slot_range_helper",
|
|
"runtime/parachains",
|
|
"runtime/polkadot",
|
|
"runtime/kusama",
|
|
"runtime/rococo",
|
|
"runtime/westend",
|
|
"runtime/test-runtime",
|
|
"statement-table",
|
|
"xcm",
|
|
"xcm/xcm-builder",
|
|
"xcm/xcm-executor",
|
|
"xcm/xcm-executor/integration-tests",
|
|
"xcm/xcm-simulator",
|
|
"xcm/xcm-simulator/example",
|
|
"xcm/xcm-simulator/fuzzer",
|
|
"xcm/pallet-xcm",
|
|
"xcm/pallet-xcm-benchmarks",
|
|
"xcm/procedural",
|
|
"node/client",
|
|
"node/collation-generation",
|
|
"node/core/approval-voting",
|
|
"node/core/av-store",
|
|
"node/core/backing",
|
|
"node/core/bitfield-signing",
|
|
"node/core/candidate-validation",
|
|
"node/core/chain-api",
|
|
"node/core/chain-selection",
|
|
"node/core/dispute-coordinator",
|
|
"node/core/parachains-inherent",
|
|
"node/core/provisioner",
|
|
"node/core/pvf",
|
|
"node/core/runtime-api",
|
|
"node/network/approval-distribution",
|
|
"node/network/bridge",
|
|
"node/network/protocol",
|
|
"node/network/statement-distribution",
|
|
"node/network/bitfield-distribution",
|
|
"node/network/availability-distribution",
|
|
"node/network/availability-recovery",
|
|
"node/network/collator-protocol",
|
|
"node/network/gossip-support",
|
|
"node/network/dispute-distribution",
|
|
"node/overseer",
|
|
"node/overseer/overseer-gen",
|
|
"node/overseer/overseer-gen/proc-macro",
|
|
"node/malus",
|
|
"node/primitives",
|
|
"node/service",
|
|
"node/subsystem",
|
|
"node/subsystem-types",
|
|
"node/subsystem-test-helpers",
|
|
"node/subsystem-util",
|
|
"node/jaeger",
|
|
"node/metrics",
|
|
"node/metered-channel",
|
|
"node/test/client",
|
|
"node/test/service",
|
|
"node/test/polkadot-simnet/common",
|
|
"node/test/polkadot-simnet/node",
|
|
"node/test/polkadot-simnet/test",
|
|
"parachain/test-parachains",
|
|
"parachain/test-parachains/adder",
|
|
"parachain/test-parachains/adder/collator",
|
|
"utils/staking-miner",
|
|
"utils/remote-ext-tests/bags-list",
|
|
"utils/generate-bags",
|
|
]
|
|
|
|
# We want to be able to build the bridge relayer without pulling it (and all of its
|
|
# dependencies into the Polkadot workspace)
|
|
exclude = ["bridges/relays/bin-substrate", "bridges/bin/rialto/runtime", "bridges/bin/millau/runtime"]
|
|
|
|
[badges]
|
|
maintenance = { status = "actively-developed" }
|
|
|
|
# make sure dev builds with backtrace do
|
|
# not slow us down
|
|
[profile.dev.package.backtrace]
|
|
opt-level = 3
|
|
|
|
[profile.release]
|
|
# Polkadot runtime requires unwinding.
|
|
panic = "unwind"
|
|
|
|
[features]
|
|
runtime-benchmarks= [ "polkadot-cli/runtime-benchmarks" ]
|
|
try-runtime = [ "polkadot-cli/try-runtime" ]
|
|
disputes = [ "polkadot-cli/disputes" ]
|
|
|
|
# Configuration for building a .deb package - for use with `cargo-deb`
|
|
[package.metadata.deb]
|
|
name = "polkadot"
|
|
extended-description = "Implementation of a https://polkadot.network node in Rust based on the Substrate framework."
|
|
section = "misc"
|
|
maintainer = "martin@parity.io"
|
|
license-file = ["LICENSE", "0"]
|
|
# https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
|
|
maintainer-scripts = "scripts/packaging/deb-maintainer-scripts"
|
|
assets = [
|
|
["target/release/polkadot", "/usr/bin/", "755"],
|
|
["scripts/packaging/polkadot.service", "/lib/systemd/system/", "644"]
|
|
]
|
|
conf-files = [
|
|
"/etc/default/polkadot"
|
|
]
|
|
|
|
# Configuration for building an .rpm package - for use with `cargo-rpm`
|
|
[package.metadata.rpm]
|
|
package = "polkadot"
|
|
|
|
[package.metadata.rpm.cargo]
|
|
buildflags = ["--release"]
|
|
|
|
[package.metadata.rpm.targets]
|
|
polkadot = { path = "/usr/bin/polkadot" }
|
|
|
|
[package.metadata.rpm.files]
|
|
"../scripts/packaging/polkadot.service" = { path = "/usr/lib/systemd/system/polkadot.service", mode = "644" }
|
|
|
|
|
|
[package.metadata.spellcheck]
|
|
config = "./scripts/gitlab/spellcheck.toml"
|