Skip to content

cmd/chantools: add sweephtlc#241

Open
yyforyongyu wants to merge 9 commits into
lightninglabs:masterfrom
yyforyongyu:sweephtlc
Open

cmd/chantools: add sweephtlc#241
yyforyongyu wants to merge 9 commits into
lightninglabs:masterfrom
yyforyongyu:sweephtlc

Conversation

@yyforyongyu

Copy link
Copy Markdown
Member

Summary

  • add sweephtlc for matching exact on-chain HTLC outpoints against channel.db
  • reconstruct segwit v0 HTLC scripts and sign remote-commitment outgoing timeout sweeps
  • keep publish opt-in with dry-run/raw transaction output by default
  • document the new command and add matcher tests

Tests

  • go test ./cmd/chantools -run 'TestMatchSingleRemoteOfferedHtlc|TestMatchSingleHtlcWrongCommitPoint|TestMatchSingleLocalOfferedHtlcUnsupported|TestNonExistent'\n- go test ./... -run TestNonExistent\n- git diff --check

@yyforyongyu yyforyongyu force-pushed the sweephtlc branch 2 times, most recently from bb9873e to b7d3312 Compare June 18, 2026 15:11
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.

1 participant