Skip to content

Add anchor outputs zero fee spec test vector#2400

Merged
t-bast merged 1 commit into
masterfrom
anchor-spec-test-vectors
Dec 16, 2022
Merged

Add anchor outputs zero fee spec test vector#2400
t-bast merged 1 commit into
masterfrom
anchor-spec-test-vectors

Conversation

@t-bast
Copy link
Copy Markdown
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 pm47 and sstone August 30, 2022 11:56
Copy link
Copy Markdown
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