Skip to content

Commit

Permalink
add serai network to initial networks
Browse files Browse the repository at this point in the history
  • Loading branch information
akildemir committed Sep 20, 2023
1 parent 7ab65af commit 3e73abd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/client/tests/validator_sets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ serai_test!(
.get_new_set_events(serai.get_block_by_number(0).await.unwrap().unwrap().hash())
.await
.unwrap(),
[NetworkId::Bitcoin, NetworkId::Ethereum, NetworkId::Monero]
[NetworkId::Bitcoin, NetworkId::Ethereum, NetworkId::Monero, NetworkId::Serai]
.iter()
.copied()
.map(|network| ValidatorSetsEvent::NewSet {
Expand Down
1 change: 1 addition & 0 deletions substrate/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ fn testnet_genesis(
(NetworkId::Bitcoin, NETWORKS[&NetworkId::Bitcoin].clone()),
(NetworkId::Ethereum, NETWORKS[&NetworkId::Ethereum].clone()),
(NetworkId::Monero, NETWORKS[&NetworkId::Monero].clone()),
(NetworkId::Serai, NETWORKS[&NetworkId::Serai].clone()),
],
participants: validators.iter().map(|name| account_from_name(name)).collect(),
},
Expand Down
1 change: 1 addition & 0 deletions substrate/primitives/src/networks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,6 @@ lazy_static::lazy_static! {
(NetworkId::Bitcoin, Network::new(vec![Coin::Bitcoin]).unwrap()),
(NetworkId::Ethereum, Network::new(vec![Coin::Ether, Coin::Dai]).unwrap()),
(NetworkId::Monero, Network::new(vec![Coin::Monero]).unwrap()),
(NetworkId::Serai, Network::new(vec![Coin::Serai]).unwrap()),
]);
}

0 comments on commit 3e73abd

Please sign in to comment.