-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set initial peers and genesis code alongside network id #243
Comments
I think I could take this one. |
@steinerkelvin can you provide an example of what might go in is it different than btw, |
Yeap, it's
|
It occurs to me that the path of the genesis block file could be deterministic (automagic) based on network ID. Eg for Of course it sacrifices flexibility in terms of naming and path. So that's the tradeoff. Counter-argument is that the deterministic approach is more regular and predictable. Less chance for users to screw up and use the wrong genesis block for a given network. thoughts? I will start with the deterministic approach because it is a bit faster to impl and after make it configurable if that is the consensus. |
I think is fine to do it deterministically. Less bloat and it could be added in the future as an optional field if it feels necessary. |
Addresses kindelia#243 Support for loading a different genesis block for each network. The genesis block is loaded from a file whose path is the pattern: ~/.kindelia/genesis/<network-id>.kdl Changes: core: * add util::genesis_path() with associated error enum * add util::genesis_code() with associated error enum * modify hvm::test_statements*() to accept network_id and load genesis block from file instead of compiled string * modify node::new() to to accept network_id and load genesis block from file instead of compiled string cli: * add network_id to test command, required by hvm::test_statements()
Addresses kindelia#243 Support for loading a different genesis block for each network. The genesis block is loaded from a file whose path is the pattern: ~/.kindelia/genesis/<network-id>.kdl Changes: core: * add util::genesis_path() with associated error enum * add util::genesis_code() with associated error enum * modify hvm::test_statements*() to accept network_id and load genesis block from file instead of compiled string * modify node::new() to to accept network_id and load genesis block from file instead of compiled string cli: * add network_id to test command, required by hvm::test_statements() * fix parsing of hex values for --network_id * add clap_num dep for parsing hex values
Addresses kindelia#243 Support for loading a different genesis block for each network. The genesis block is loaded from a file whose path is the pattern: ~/.kindelia/genesis/<network-id>.kdl Changes: core: * add util::genesis_path() with associated error enum * add util::genesis_code() with associated error enum * modify hvm::test_statements*() to accept network_id and load genesis block from file instead of compiled string * modify node::new() to to accept network_id and load genesis block from file instead of compiled string cli: * add network_id to test command, required by hvm::test_statements() * fix parsing of hex values for --network_id * add clap_num dep for parsing hex values
Addresses kindelia#243 Support for loading a different genesis block for each network. The genesis block is loaded from a file whose path is the pattern: ~/.kindelia/genesis/<network-id>.kdl Changes: core: * add util::genesis_path() with associated error enum * add util::genesis_code() with associated error enum * modify hvm::test_statements*() to accept network_id and load genesis block from file instead of compiled string * modify node::new() to to accept network_id and load genesis block from file instead of compiled string cli: * add network_id to test command, required by hvm::test_statements() * fix parsing of hex values for --network_id * add clap_num dep for parsing hex values
Addresses kindelia#243 Support for loading a different genesis block for each network. The genesis block is loaded from a file whose path is the pattern: ~/.kindelia/genesis/<network-id>.kdl Changes: core: * add util::genesis_path() with associated error enum * add util::genesis_code() with associated error enum * modify hvm::test_statements*() to accept network_id and load genesis block from file instead of compiled string * modify node::new() to to accept network_id and load genesis block from file instead of compiled string cli: * add network_id to test command, required by hvm::test_statements() * fix parsing of hex values for --network_id * add clap_num dep for parsing hex values
Addresses kindelia#243 Support for loading a different genesis block for each network. The genesis block is loaded from a file whose path is the pattern: ~/.kindelia/genesis/<network-id>.kdl Changes: core: * add util::genesis_path() with associated error enum * add util::genesis_code() with associated error enum * modify hvm::test_statements*() to accept network_id and load genesis block from file instead of compiled string * modify node::new() to to accept network_id and load genesis block from file instead of compiled string cli: * add network_id to test command, required by hvm::test_statements() * fix parsing of hex values for --network_id * add clap_num dep for parsing hex values
Addresses kindelia#243 Support for loading a different genesis block for each network. The genesis block is loaded from a file whose path is the pattern: ~/.kindelia/genesis/<network-id>.kdl Changes: core: * add util::genesis_path() with associated error enum * add util::genesis_code() with associated error enum * modify hvm::test_statements*() to accept network_id and load genesis block from file instead of compiled string * modify node::new() to to accept network_id and load genesis block from file instead of compiled string cli: * add network_id to test command, required by hvm::test_statements() * fix parsing of hex values for --network_id * add clap_num dep for parsing hex values
Addresses kindelia#243 Support for loading a different genesis block for each network. The genesis block is loaded from a file whose path is the pattern: ~/.kindelia/genesis/<network-id>.kdl Changes: core: * add util::genesis_path() with associated error enum * add util::genesis_code() with associated error enum * modify hvm::test_statements*() to accept network_id and load genesis block from file instead of compiled string * modify node::new() to to accept network_id and load genesis block from file instead of compiled string cli: * add network_id to test command, required by hvm::test_statements() * fix parsing of hex values for --network_id * add clap_num dep for parsing hex values
Addresses kindelia#243 Support for loading a different genesis block for each network. The genesis block is loaded from a file whose path is the pattern: ~/.kindelia/genesis/<network-id>.kdl Changes: core: * add util::genesis_path() with associated error enum * add util::genesis_code() with associated error enum * modify hvm::test_statements*() to accept network_id and load genesis block from file instead of compiled string * modify node::new() to to accept network_id and load genesis block from file instead of compiled string cli: * add network_id to test command, required by hvm::test_statements() * fix parsing of hex values for --network_id * add clap_num dep for parsing hex values
It's interesting to be able to associate both with the network id in the node configuration.
The text was updated successfully, but these errors were encountered: