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 anchor outputs zero fee spec test vector #2400

Merged
merged 1 commit into from
Dec 16, 2022
Merged

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Aug 30, 2022

As specified in lightning/bolts#1018

Our test suite for those test vectors isn't very flexible as it depends on the test name and expects all commitment formats to have exactly the same set of tests, which isn't true for zero fee htlc txs where the feerate doesn't impact which htlcs materialize in the commit tx (only the dust limit impacts that).

It's a bit hacky, but I chose to make minimal modifications to the test file to fit the new tests in, it can be a bit confusing but I don't think it's worth refactoring as we shouldn't change this often.

@t-bast t-bast requested review from sstone and pm47 August 30, 2022 11:56
Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look that hacky to me.

@t-bast t-bast merged commit aa04402 into master Dec 16, 2022
@t-bast t-bast deleted the anchor-spec-test-vectors branch December 16, 2022 10:06
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