-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Make runtime_io::chain_id
configurable
#3990
Comments
@xlc I checked the latest codebase. I couldn't find |
It is now here
|
@xlc I debugged a bit. I found that this file is related to
Should I defined substrate/primitives/core/src/crypto.rs Line 56 in c60f008 |
Make it a constant is definitely not the intent of this issue because that won't make it configurable by any means. However I don't actually know how should we make it configurable and if even we need this field or not. If you just want to contribute something simple, I highly recommend to pick something else. We need someone to actually define how should we improve this first before any coding. |
as a note BasicExternalities is only used: to build genesis storage in
and to get runtime version: substrate/primitives/io/src/lib.rs Line 397 in c60f008
but indeed it should either be unavailable or return the correct value I think |
Closed by #7810. One should use the following as chain id: substrate/frame/system/src/lib.rs Lines 261 to 266 in 0fc8329
|
I think it currently returns hardcoded
42
. It should be configurable in chain spec.substrate/core/state-machine/src/basic.rs
Line 171 in 7dd7067
But there is also another
id
in chain spec, which is a string.substrate/core/chain-spec/src/chain_spec.rs
Line 111 in 7dd7067
The text was updated successfully, but these errors were encountered: