mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Clean the transaction definitions in the coordinator
Moves to borsh for serialization. No longer includes nonces anywhere in the TX.
This commit is contained in:
@@ -20,16 +20,16 @@ workspace = true
|
||||
[dependencies]
|
||||
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"] }
|
||||
serai-client = { path = "../../substrate/client", version = "0.1", default-features = false, features = ["serai", "borsh"] }
|
||||
|
||||
log = { version = "0.4", default-features = false, features = ["std"] }
|
||||
|
||||
futures = { version = "0.3", default-features = false, features = ["std"] }
|
||||
tokio = { version = "1", default-features = false }
|
||||
|
||||
serai-db = { version = "0.1.1", path = "../../common/db" }
|
||||
serai-task = { version = "0.1", path = "../../common/task" }
|
||||
serai-db = { path = "../../common/db", version = "0.1.1" }
|
||||
serai-task = { path = "../../common/task", version = "0.1" }
|
||||
|
||||
serai-cosign = { path = "../cosign" }
|
||||
serai-cosign = { path = "../cosign", version = "0.1" }
|
||||
|
||||
messages = { package = "serai-processor-messages", path = "../../processor/messages" }
|
||||
messages = { package = "serai-processor-messages", version = "0.1", path = "../../processor/messages" }
|
||||
|
||||
@@ -96,6 +96,9 @@ impl NewSet {
|
||||
}
|
||||
|
||||
/// The channel for notifications to sign a slash report, as emitted by an ephemeral event stream.
|
||||
///
|
||||
/// These notifications MAY be for irrelevant validator sets. The only guarantee is the
|
||||
/// notifications for all relevant validator sets will be included.
|
||||
pub struct SignSlashReport;
|
||||
impl SignSlashReport {
|
||||
pub(crate) fn send(txn: &mut impl DbTxn, set: &ValidatorSet) {
|
||||
|
||||
Reference in New Issue
Block a user