mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 16:17:59 +00:00
d5a7991429
* Use a `BoundedVec` in `ValidationResult` > Use a `BoundedVec` for `upward_messages` and `horizontal_messages` in order to > limit the number of individual messages/memory allocations right at decoding > time. The reason for this is that the `ValidationResult` may contain a code > upgrade (including a full PVF binary), so the total size limit can't be set > too low and this limit will still allow several millions of upward messages, > which will (due to the memory allocator overhead) already have a > non-negligible memory footprint in decoded form. * List all fields when hashing so we don't miss one * Define types for `BoundedVec`s of messages * Fix test compile errors * Depend on `bounded-collections` 0.1.4 (fixes allocation issue) * Fix compilation issue * Derive `Hash` instead of manual `impl` * Avoid use of unwrap
30 lines
1.3 KiB
TOML
30 lines
1.3 KiB
TOML
[package]
|
|
name = "polkadot-node-primitives"
|
|
description = "Primitives types for the Node-side"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
|
|
[dependencies]
|
|
bounded-vec = "0.7"
|
|
futures = "0.3.21"
|
|
polkadot-primitives = { path = "../../primitives" }
|
|
parity-scale-codec = { version = "3.3.0", default-features = false, features = ["derive"] }
|
|
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-application-crypto = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-consensus-vrf = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-consensus-babe = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-maybe-compressed-blob = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
polkadot-parachain = { path = "../../parachain", default-features = false }
|
|
schnorrkel = "0.9.1"
|
|
thiserror = "1.0.31"
|
|
serde = { version = "1.0.137", features = ["derive"] }
|
|
|
|
[target.'cfg(not(target_os = "unknown"))'.dependencies]
|
|
zstd = { version = "0.11.2", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
polkadot-erasure-coding = { path = "../../erasure-coding" }
|