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

Remove next_funding_txid tlv from Channel read/write #3417

Merged

Conversation

dunxen
Copy link
Contributor

@dunxen dunxen commented Nov 21, 2024

Want to remove this before release so that we can work on a way to not persist this but rather get it from other persisted data and just free up the TLV.

Note that the "added in 0.0.124" comment was incorrect as it was actually added in #3137 but the comment was stale. So it's safe to remove.

See #3137 (comment) for context.

Copy link
Contributor

@optout21 optout21 left a comment

Choose a reason for hiding this comment

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

LGTM, minor comment regarding the commas

@dunxen dunxen force-pushed the 2024-11-removenextfundingtxidpersist branch from 5f02ff5 to b78ec80 Compare November 21, 2024 10:55
@dunxen
Copy link
Contributor Author

dunxen commented Nov 21, 2024

LGTM, minor comment regarding the commas

Thanks. Done!

Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.24%. Comparing base (0c31021) to head (7177acb).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3417      +/-   ##
==========================================
+ Coverage   89.22%   89.24%   +0.02%     
==========================================
  Files         130      130              
  Lines      106965   106960       -5     
  Branches   106965   106960       -5     
==========================================
+ Hits        95438    95458      +20     
+ Misses       8734     8709      -25     
  Partials     2793     2793              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@jkczyz jkczyz left a comment

Choose a reason for hiding this comment

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

LGTM. Could you please include the rationale in the commit message? Better to not rely on github for this information.

We want to remove this before release so that we can work on a way to
not persist this but rather get it from other persisted data and just
free up the TLV.

Note that the "added in 0.0.124" comment was incorrect as it was
actually added in lightningdevkit#3137 but the comment was stale so it's safe to remove.
@dunxen dunxen force-pushed the 2024-11-removenextfundingtxidpersist branch from b78ec80 to 7177acb Compare November 25, 2024 07:20
@dunxen
Copy link
Contributor Author

dunxen commented Nov 25, 2024

LGTM. Could you please include the rationale in the commit message? Better to not rely on github for this information.

Yeah true, thanks! Done.

@TheBlueMatt
Copy link
Collaborator

Can we actually just remove the field entirely and use funding_tx.compute_txid() and the current channel state instead?

@dunxen
Copy link
Contributor Author

dunxen commented Nov 26, 2024

Can we actually just remove the field entirely and use funding_tx.compute_txid() and the current channel state instead?

Yeah that's likely what we'll do. I just wanted to remove the persistence here to keep this small. I can address removing the field entirely in #3423.

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

Alright, definitely need to figure it out before 0.1, though.

@TheBlueMatt TheBlueMatt merged commit 12920d8 into lightningdevkit:main Nov 26, 2024
17 of 19 checks passed
@dunxen
Copy link
Contributor Author

dunxen commented Nov 27, 2024

Alright, definitely need to figure it out before 0.1, though.

Yeah, I'm adding it to #3423 which needs to go in before 0.1.

@dunxen dunxen mentioned this pull request Nov 27, 2024
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.

4 participants