mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Make Validator Set Network a first-class property
There already should only be one validator set operating per network. This formalizes that. Then, validator sets used to be able to operate over multiple networks. That is no longer possible. This formalization increases validator set flexibility while also allowing the ability to formalize the definiton of tokens (which is necessary to define a gas asset).
This commit is contained in:
@@ -50,7 +50,11 @@ fn testnet_genesis(
|
||||
session: SessionConfig { keys: validators.iter().map(|name| session_key(*name)).collect() },
|
||||
validator_sets: ValidatorSetsConfig {
|
||||
bond: Amount(1_000_000 * 10_u64.pow(8)),
|
||||
coins: vec![BITCOIN, ETHER, DAI, MONERO],
|
||||
networks: vec![
|
||||
(BITCOIN_NET_ID, BITCOIN_NET.clone()),
|
||||
(ETHEREUM_NET_ID, ETHEREUM_NET.clone()),
|
||||
(MONERO_NET_ID, MONERO_NET.clone()),
|
||||
],
|
||||
participants: validators.iter().map(|name| account_from_name(name)).collect(),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user