mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 20:59:23 +00:00
Cosigns was an archive of every single cosign ever received. By scoping NetworksLatestCosignedBlock to be by the global session, we have the latest cosign for each network in a session (valid to replace all prior cosigns by that network within that session, even for the purposes of fault) and automatically have the notable cosigns indexed (as they are the latest ones within their session). This not only saves space yet also allows optimizing evaluation a bit.
37 lines
1.2 KiB
TOML
37 lines
1.2 KiB
TOML
[package]
|
|
name = "serai-cosign"
|
|
version = "0.1.0"
|
|
description = "Evaluator of cosigns for the Serai network"
|
|
license = "AGPL-3.0-only"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/coordinator/cosign"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
keywords = []
|
|
edition = "2021"
|
|
publish = false
|
|
rust-version = "1.81"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[package.metadata.cargo-machete]
|
|
ignored = ["scale"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
blake2 = { version = "0.10", default-features = false, features = ["std"] }
|
|
schnorrkel = { version = "0.11", default-features = false, features = ["std"] }
|
|
|
|
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["std", "derive"] }
|
|
borsh = { version = "1", default-features = false, features = ["std", "derive", "de_strict_order"] }
|
|
serai-client = { path = "../../substrate/client", default-features = false, features = ["serai", "borsh"] }
|
|
|
|
log = { version = "0.4", default-features = false, features = ["std"] }
|
|
|
|
tokio = { version = "1", default-features = false, features = [] }
|
|
|
|
serai-db = { path = "../../common/db" }
|
|
serai-task = { path = "../../common/task" }
|