referrerpolicy=no-referrer-when-downgrade

Type Alias bp_runtime::ChainId

source ·
pub type ChainId = [u8; 4];
Expand description

Unique identifier of the chain.

In addition to its main function (identifying the chain), this type may also be used to identify module instance. We have a bunch of pallets that may be used in different bridges. E.g. messages pallet may be deployed twice in the same runtime to bridge ThisChain with Chain1 and Chain2. Sometimes we need to be able to identify deployed instance dynamically. This type may be used for that.