mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 12:09:37 +00:00
b493e3e31f
* Route validators for any active set through sc-authority-discovery Additionally adds an RPC route to retrieve their P2P addresses. * Have the coordinator get peers from substrate * Have the RPC return one address, not up to 3 Prevents the coordinator from believing it has 3 peers when it has one. * Add missing feature to serai-client * Correct network argument in serai-client for p2p_validators call * Add a test in serai-client to check DHT population with a much quicker failure than the coordinator tests * Update to latest Substrate Removes distinguishing BABE/AuthorityDiscovery keys which causes sc_authority_discovery to populate as desired. * Update to a properly tagged substrate commit * Add all dialed to peers to GossipSub * cargo fmt * Reduce common code in serai-coordinator-tests with amore involved new_test * Use a recursive async function to spawn `n` DockerTests with the necessary networking configuration * Merge UNIQUE_ID and ONE_AT_A_TIME * Tidy up the new recursive code in tests/coordinator * Use a Mutex in CONTEXT to let it be set multiple times * Make complimentary edits to full-stack tests * Augment coordinator P2p connection logs * Drop lock acquisitions before recursing * Better scope lock acquisitions in full-stack, preventing a deadlock * Ensure OUTER_OPS is reset across the test boundary * Add cargo deny allowance for dockertest fork
45 lines
1.3 KiB
TOML
45 lines
1.3 KiB
TOML
[package]
|
|
name = "serai-coordinator-tests"
|
|
version = "0.1.0"
|
|
description = "Tests for Serai's Coordinator"
|
|
license = "AGPL-3.0-only"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/tests/coordinator"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
keywords = []
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
hex = "0.4"
|
|
|
|
async-trait = "0.1"
|
|
async-recursion = "1"
|
|
zeroize = { version = "1", default-features = false }
|
|
rand_core = { version = "0.6", default-features = false }
|
|
|
|
blake2 = "0.10"
|
|
ciphersuite = { path = "../../crypto/ciphersuite", default-features = false, features = ["ristretto", "secp256k1"] }
|
|
schnorrkel = "0.11"
|
|
dkg = { path = "../../crypto/dkg", default-features = false, features = ["tests"] }
|
|
|
|
messages = { package = "serai-processor-messages", path = "../../processor/messages" }
|
|
|
|
scale = { package = "parity-scale-codec", version = "3" }
|
|
|
|
serai-client = { path = "../../substrate/client", features = ["serai"] }
|
|
serai-message-queue = { path = "../../message-queue" }
|
|
|
|
borsh = { version = "1", features = ["de_strict_order"] }
|
|
|
|
tokio = { version = "1", features = ["time"] }
|
|
|
|
dockertest = "0.4"
|
|
serai-docker-tests = { path = "../docker" }
|
|
serai-message-queue-tests = { path = "../message-queue" }
|