Skip to content
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

Add a test for checking KeyNotInDescriptor error #335

Open
danielabrozzoni opened this issue Dec 14, 2021 · 0 comments
Open

Add a test for checking KeyNotInDescriptor error #335

danielabrozzoni opened this issue Dec 14, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@danielabrozzoni
Copy link
Collaborator

danielabrozzoni commented Dec 14, 2021

We return an error if the user gives us a cpfp private key that is not contained in the cpfp descriptor:

.ok_or(CpfpKeyError::KeyNotInDescriptor(pubkey.to_string()))?;

This needs to be unit tested, the right place to do so is probably here:

fn test_from_config() {

@danielabrozzoni danielabrozzoni added the good first issue Good for newcomers label Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant