-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return a ValidChainInformation when building the chain spec info (#2979)
The "chain information building process" is done in two steps: fetching all the info, then validating that the values are coherent together. In the past, the `chain_spec` module used to do only the first step, leaving the second step to the API user of this module. Then I've changed the implementation to produce a `ValidChainInformation` and turn it back into an (not-validated) `ChainInformation`. This PR changes the return type to `ValidChainInformation`, and thus the API user doesn't need to handle that. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
becc0a3
commit 150bc4d
Showing
4 changed files
with
19 additions
and
23 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