Skip to content

Watch revoked HTLC-Success/Timeout outputs #546

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

Merged
merged 3 commits into from
Mar 17, 2020

Conversation

TheBlueMatt
Copy link
Collaborator

#519 with some minor nits.

Antoine Riard added 3 commits March 17, 2020 14:09
Adjusted tx occurs when a previous aggregated claim tx has
seen one of its outpoint being partially claimed by a remote tx.
To pursue claiming of the remaining outpoint a adjusted claim tx
is generated  with leftover of claimable outpoints.

Previously, in case of block-rescan where a partial claim occurs,
we would generate duplicated adjusted tx, wrongly inflating feerate
for next bumps. At rescan, if input has already been dropped from
outpoints map from a claiming request, don't regenerate again
a adjuste tx.
Bumping of justice txn on revoked HTLC-Success/HTLC-timeout is triggered
until our claim is confirmed onchain with at least
ANTI_REORG_DELAY_SAFE. Before this patch, we weren't tracking them in
check_spend_remote_htlc, leading us to infinite bumps.

Fix lightningdevkit#411

Small fixes by Matt Corallo <[email protected]>
@codecov
Copy link

codecov bot commented Mar 17, 2020

Codecov Report

Merging #546 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #546      +/-   ##
==========================================
- Coverage   90.24%   90.24%   -0.01%     
==========================================
  Files          34       34              
  Lines       19206    19182      -24     
==========================================
- Hits        17332    17310      -22     
+ Misses       1874     1872       -2
Impacted Files Coverage Δ
lightning/src/ln/channelmonitor.rs 90.25% <100%> (+0.02%) ⬆️
lightning/src/ln/functional_tests.rs 96.33% <100%> (-0.03%) ⬇️
lightning/src/ln/onchaintx.rs 92.81% <100%> (+0.39%) ⬆️
lightning/src/ln/functional_test_utils.rs 94.59% <100%> (ø) ⬆️
lightning/src/util/ser.rs 90.06% <0%> (+0.06%) ⬆️
lightning/src/util/ser_macros.rs 97.27% <0%> (+0.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8236b2...2d2f658. Read the comment docs.

@TheBlueMatt
Copy link
Collaborator Author

Gonna take this - its all @ariard's code with one tiny tweak.

@TheBlueMatt TheBlueMatt merged commit feb0a9f into lightningdevkit:master Mar 17, 2020
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