Skip to content

Add PaymentFailReason enum for fail_htlc_backwards #221

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

Closed
wants to merge 2 commits into from

Conversation

yuntai
Copy link
Contributor

@yuntai yuntai commented Oct 25, 2018

to indicate failure reason after a PaymentReceived event.

and set onion error code to unknown_payment_hash or incorrect_payment_amount.

The test will come with the sequel of #219.

to indicate fail reason after a PaymentReceived event
@yuntai yuntai force-pushed the 2018-10-paymentfail branch from 34a9dff to f133554 Compare October 25, 2018 12:25
@TheBlueMatt
Copy link
Collaborator

Looks good. Can you also add documentation to the PaymentReceived event that describes that users have to fail payments that have a value out of bounds?

@yuntai
Copy link
Contributor Author

yuntai commented Oct 25, 2018

Documentation added.

@TheBlueMatt
Copy link
Collaborator

Will take as #224.

TheBlueMatt added a commit that referenced this pull request Oct 26, 2018
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