Added NetworkId::PolkadotBulletin variant (#2517)

We're going to bridge Polkadot Bridge Hub with [Polkadot Bulletin
chain](https://github.com/zdave-parity/polkadot-bulletin-chain) soon
(and Rococo Bridge Hub with 1:1 copy of Polkadot Bulletin chain even
sooner), so we need a variant for that chain in `NetworkId`. As
suggested, I'm adding a new variant for it to the `NetworkId` (we may
have used `ByGenesis(_)`, but decision was made to have a dedicated
variant for that).
This commit is contained in:
Svyatoslav Nikolsky
2023-11-28 12:14:50 +03:00
committed by GitHub
parent 75062717de
commit 0f7ffc66a5
+2
View File
@@ -75,6 +75,8 @@ pub enum NetworkId {
BitcoinCore,
/// The Bitcoin network, including hard-forks supported by Bitcoin Cash developers.
BitcoinCash,
/// The Polkadot Bulletin chain.
PolkadotBulletin,
}
impl From<OldNetworkId> for Option<NetworkId> {