git.delta.rocks / unique-network / refs/commits / 0dac160136eb

difftreelog

feat(chain_spec) depend on runtime feature

Daniel Shiposha2022-08-25parent: #3be2070.patch.diff
in: master

1 file changed

modifiednode/cli/src/chain_spec.rsdiffbeforeafterboth
66}66}
67
68
69#[cfg(not(feature = "unique-runtime"))]
70/// PARA_ID for Opal/Quartz
71const PARA_ID: u32 = 2095;
72
73#[cfg(feature = "unique-runtime")]
74/// PARA_ID for Unique
75const PARA_ID: u32 = 2037;
6776
68pub trait RuntimeIdentification {77pub trait RuntimeIdentification {
69 fn runtime_id(&self) -> RuntimeId;78 fn runtime_id(&self) -> RuntimeId;
236 get_account_id_from_seed::<sr25519::Public>("Eve//stash"),245 get_account_id_from_seed::<sr25519::Public>("Eve//stash"),
237 get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),246 get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
238 ],247 ],
239 2037248 PARA_ID
240 )249 )
241 },250 },
242 // Bootnodes251 // Bootnodes
251 // Extensions260 // Extensions
252 Extensions {261 Extensions {
253 relay_chain: "rococo-dev".into(),262 relay_chain: "rococo-dev".into(),
254 para_id: 2037,263 para_id: PARA_ID,
255 },264 },
256 )265 )
257}266}
304 get_account_id_from_seed::<sr25519::Public>("Eve//stash"),313 get_account_id_from_seed::<sr25519::Public>("Eve//stash"),
305 get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),314 get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
306 ],315 ],
307 2037316 PARA_ID
308 )317 )
309 },318 },
310 // Bootnodes319 // Bootnodes
319 // Extensions328 // Extensions
320 Extensions {329 Extensions {
321 relay_chain: "westend-local".into(),330 relay_chain: "westend-local".into(),
322 para_id: 2037,331 para_id: PARA_ID,
323 },332 },
324 )333 )
325}334}