forked from kindelia/Kindelia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): load genesis file by network id
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
- Loading branch information
Showing
6 changed files
with
67 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters