Commit 47321ba
committed
loop: use default confirmation target for htlc sweep after expiry delta
In this commit, we introduce a delta from the on-chain HTLC's
expiration. Since clients are now able to specify a confirmation target
for the HTLC sweep, it's possible that the sweep doesn't confirm within
the intended target in the event of an increasing demand for block
space. Once the delta from the HTLC's expiration is reached, we'll begin
to use the default sweep confirmation target when sweeping the HTLC,
which should provide a timely confirmation. This is needed because if
the preimage has already been revealed, then we need to make sure we
sweep the HTLC before the server does.1 parent c16e170 commit 47321ba
2 files changed
+34
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
581 | 588 | | |
582 | 589 | | |
583 | 590 | | |
584 | | - | |
585 | | - | |
586 | | - | |
| 591 | + | |
587 | 592 | | |
588 | 593 | | |
589 | | - | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
590 | 604 | | |
591 | | - | |
592 | | - | |
| 605 | + | |
593 | 606 | | |
594 | 607 | | |
595 | 608 | | |
596 | 609 | | |
597 | 610 | | |
| 611 | + | |
598 | 612 | | |
599 | | - | |
| 613 | + | |
600 | 614 | | |
601 | 615 | | |
602 | 616 | | |
| |||
612 | 626 | | |
613 | 627 | | |
614 | 628 | | |
615 | | - | |
616 | | - | |
| 629 | + | |
617 | 630 | | |
618 | 631 | | |
619 | 632 | | |
| |||
690 | 703 | | |
691 | 704 | | |
692 | 705 | | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
693 | 712 | | |
694 | 713 | | |
0 commit comments