-
Notifications
You must be signed in to change notification settings - Fork 329
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.
- Loading branch information
1 parent
dbc6a1e
commit c287ce3
Showing
3 changed files
with
46 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