Skip to content

Conversation

@ecdsa
Copy link
Member

@ecdsa ecdsa commented Oct 20, 2024

this was rebased in july 2024 from #7509
I guess it needs to be rebased again :-)

Here are my personal notes regarding this rebase:

  • some tests are broken (REDEEMED state reached too early in test_breach)
  • we should use password in memory (daemon unlock command)
  • if no password in memory (non-android GUI): maybe warn user?
  • stop LN support for watching-only and hardware wallets

@ecdsa ecdsa force-pushed the anchor_commitments_2024 branch 8 times, most recently from d95d10b to a4acc85 Compare November 26, 2024 08:44
Due to malleability of HTLC-transactions, we can't send presigned
justice transactions for the second-stage HTLC transactions, which is
why we now send first-stage justice transactions for anchor channels.
@ecdsa ecdsa force-pushed the anchor_commitments_2024 branch from a4acc85 to dbfc27d Compare November 26, 2024 09:05
@ecdsa ecdsa marked this pull request as ready for review November 26, 2024 09:17
@ecdsa ecdsa merged commit dbfc27d into master Nov 26, 2024
12 of 15 checks passed
@ecdsa
Copy link
Member Author

ecdsa commented Nov 26, 2024

Notes about this merge:

  • commits were merged individually (there is no merge commit).
  • anchor outputs can be activated by config variable enable_anchor_channels
  • unit tests are performed both with and without anchors. However, regtest are run only with anchors. (unlike in the original PR)
  • the commit that reorders functions in lnsweep was left out due to difficulty rebasing.
  • password-storing code was left out. Instead, htlc sweeping assumes that the wallet is unlocked, and calls wallet.get_unlocked_password()
  • a confusion between sats and msats was fixed (see FIXED_ANCHOR_SAT)
  • the for loop calling extract_preimage_from_htlc in f4ebe6e was left out.

@ecdsa ecdsa deleted the anchor_commitments_2024 branch December 20, 2025 08:52
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.

3 participants