Commit 54eb085
Honor the funding template's RBF minimum feerate when splicing
Contributing to an already-pending splice — e.g. adding our funds to a
counterparty-initiated splice via splice_in or splice_out — replaces the
in-flight funding transaction, so the funding template requires at least the
RBF minimum feerate. We passed our plain ChannelFunding feerate estimate, which
can sit below that minimum (it does at the regtest floor), so the contribution
was rejected with FeeRateBelowRbfMinimum.
Raise the contribution feerate to the template's RBF minimum when one applies,
capped by our max, so it can replace the pending splice. A node can therefore
now contribute to a counterparty's pending splice; the rbf_splice_channel check
that expected splice_out to fail while a splice was pending relied on this very
bug and is dropped.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 5135534 commit 54eb085
2 files changed
Lines changed: 74 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1658 | 1658 | | |
1659 | 1659 | | |
1660 | 1660 | | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
1661 | 1671 | | |
1662 | 1672 | | |
1663 | 1673 | | |
1664 | 1674 | | |
1665 | | - | |
| 1675 | + | |
1666 | 1676 | | |
1667 | 1677 | | |
1668 | 1678 | | |
| |||
1781 | 1791 | | |
1782 | 1792 | | |
1783 | 1793 | | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
1784 | 1804 | | |
1785 | 1805 | | |
1786 | 1806 | | |
1787 | 1807 | | |
1788 | 1808 | | |
1789 | | - | |
| 1809 | + | |
1790 | 1810 | | |
1791 | 1811 | | |
1792 | 1812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1387 | 1387 | | |
1388 | 1388 | | |
1389 | 1389 | | |
1390 | | - | |
| 1390 | + | |
1391 | 1391 | | |
1392 | 1392 | | |
1393 | 1393 | | |
| |||
1424 | 1424 | | |
1425 | 1425 | | |
1426 | 1426 | | |
1427 | | - | |
| 1427 | + | |
| 1428 | + | |
1428 | 1429 | | |
1429 | 1430 | | |
1430 | 1431 | | |
1431 | 1432 | | |
1432 | 1433 | | |
1433 | | - | |
1434 | | - | |
1435 | | - | |
1436 | | - | |
1437 | | - | |
1438 | | - | |
1439 | | - | |
1440 | 1434 | | |
1441 | 1435 | | |
1442 | 1436 | | |
| |||
1687 | 1681 | | |
1688 | 1682 | | |
1689 | 1683 | | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
1690 | 1733 | | |
1691 | 1734 | | |
1692 | 1735 | | |
| |||
0 commit comments