Skip to content

[WIP] Bump Claim Txn #333

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

Closed

Conversation

ariard
Copy link

@ariard ariard commented Mar 31, 2019

Based on #305, have to go after a yet-not-written-add-fee-estimator-thing-in-monitor PR.

Note: follow previous discussion, but need more thought on timer height.

Note: need to move spendable_output stuff after claim_tx maturation ( + TODO #334 (comment))

Antoine Riard added 8 commits March 28, 2019 20:49
Broadcasting a commitment tx means that we have to fail
inbound HTLC in backward channel. Doing it prematurely would
put us at risk in case of reorg. So we delay passing failure
update upstream until solving tx mature to HTLC_FAIL_ANTI_
REORG_DELAY.
Requirements differ if HTLC is a revoked/non-revoked dust/
non-revoked non-dust one.

Add connect_blocks in test_utils to fix broken tests due to
anti-reorg delay enforcement

Remove anti-duplicate htlc update stuff in ManySimpleChannelMonitor
Modify ChainListener API by adding height field to block_disconnect
Add test_failure_delay_htlc_local_commitment

Move some bits of check_spend_remote as we need to fail dust HTLCs
which can be spread on both prev/lastest local commitment tx
Add pruning of waiting-conf channel closing at block_disconnect

Fix tests broken by introduced change
We need also to track claim tx until their maturation to know
when we may safely remove them from could-be-bumped-txn buffer
When we generate a justice tx, a htlc tx on remote commitment or
a htlc tx on local commitment we track them until first conf.
If first conf doesn't happen before height timer expiration, we
regenerate claim tx from its cached marerial with a higher fee.
We use RBF or CPFP following the class of claim tx.
@ariard ariard changed the title [WIP] 2019 03 track in flight claim tx [WIP] Bump Claim Tx Mar 31, 2019
@ariard ariard changed the title [WIP] Bump Claim Tx [WIP] Bump Claim Txn Mar 31, 2019
@TheBlueMatt TheBlueMatt added this to the 0.0.9 milestone Apr 22, 2019
@TheBlueMatt TheBlueMatt removed this from the 0.0.9 milestone May 21, 2019
@ariard
Copy link
Author

ariard commented Jul 8, 2019

Much have been rewritten in #347

@ariard ariard closed this Jul 8, 2019
ariard pushed a commit to ariard/rust-lightning that referenced this pull request Oct 14, 2020
We remove test_no_failure_dust_htlc_local_commitment from our test
framework as this test deliberately throwing junk transaction in
our monitoring parsing code is hitting new assertions.

This test was added in lightningdevkit#333, but it sounds as an oversight as the
correctness intention of this test (i.e verifying lack of dust
HTLCs canceling back in case of junk commitment transaction) doesn't
currently break.
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