You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deftest_lockup_drain(node_factory, bitcoind):
"""Try to get channel into a state where funder can't afford fees on additional HTLC, so fundee can't add HTLC"""l1, l2=node_factory.line_graph(2, opts={'may_reconnect': True})
# l1 sends all the money to l2 until even 1 msat can't get through.total=l1.drain(l2)
# Even if feerate now increases 1.5x (22500), l2 should be able to send# non-dust HTLC to l1.l1.force_feerates(22500)
l2.pay(l1, total//2)
# reset fees and send all back againl1.force_feerates(15000)
l1.drain(l2)
# But if feerate increase just a little more, l2 should not be able to send# non-fust HTLC to l1l1.force_feerates(22502) # TODO: Why does 22501 fail? off by one in C code?withpytest.raises(RpcError, match=r".*Capacity exceeded.*"):
l2.pay(l1, total//2)
My best guess is that there is a rounding due to the feerate smoothing.
The text was updated successfully, but these errors were encountered:
Issue and Steps to Reproduce
@m-schmoock identified an issue with forcing feerates:
The code this refers to is this:
My best guess is that there is a rounding due to the feerate smoothing.
The text was updated successfully, but these errors were encountered: