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

Fix HTLC conversion to and from plain format #568

Merged
merged 4 commits into from Oct 12, 2020
Merged

Conversation

sisou
Copy link
Member

@sisou sisou commented Sep 2, 2020

This PR adds a failing test which shows that HTLCs cannot recreate themselves from the plain format.

This is due to the hash algorithm not getting picked up during fromPlain and thus the hashRoot Hash getting re-initialized with the default Blake2b, although the original HTLC specified another hash algorithm.

@sisou sisou added the bug label Sep 2, 2020
@sisou sisou requested a review from mar-v-in September 2, 2020 12:51
@sisou sisou changed the title Add test for HTLC conversion to and from plain format Fix HTLC conversion to and from plain format Sep 8, 2020
@styppo styppo merged commit d257307 into master Oct 12, 2020
@styppo styppo deleted the soeren/htlc-from-plain branch October 12, 2020 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants