-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wallet): add check for network and genesis_hash consistency
- add new `MismatchError::Genesis` and `DescriptorError::Mismatch` error variants, when the genesis_hash parameter and network are inconsistent. - add check on `create_with_params` to check that `genesis_hash` and `network` genesis hash are consistent, return `Descriptor::Mismatch` error otherwise. - add check on `load_with_params` to check that `check_genesis_hash` is also consistent with the genesis hash of current loaded `network`, return the `LoadMismatch` error variant otherwise.
- Loading branch information
1 parent
dbc6a1e
commit e60e101
Showing
3 changed files
with
54 additions
and
1 deletion.
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