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

liquid: return more accurate errors in createSpendingTransaction #258

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

jamesdorfman
Copy link
Contributor

@jamesdorfman jamesdorfman commented Nov 20, 2023

Currently, this function returns pset.ErrGenerateSurjectionProof in many places where there is not actually a surjection proof error. This made it very difficult to debug the issue which is fixed in ElementsProject/glightning#11.

This PR updates the errors to be more accurate. I am open to adding more information to these errors, aside from just returning err. Let me know your thoughts.

@nepet
Copy link
Contributor

nepet commented Dec 18, 2023

I am okay with returning the err only for now. When this becomes a problem in the future we can wrap the error to include more information.
Ack addfc7b

@nepet nepet merged commit a729a02 into ElementsProject:master Dec 18, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants