mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
wallet: Clamp maxheight to positive number for large minconf
Fixes #2518 Signed-off-by: Christian Decker <decker.christian@gmail.com> Changelog-fixed: `minconf` no longer gets wrapped around for large values, which was causing funds with insufficient confirmations to be selected.
This commit is contained in:
committed by
neil saitug
parent
e40b7c5584
commit
be853f563a
@@ -482,7 +482,7 @@ def test_withdraw(node_factory, bitcoind):
|
||||
with pytest.raises(RpcError, match=r'Cannot afford transaction'):
|
||||
l1.rpc.withdraw(waddr, 'all')
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
|
||||
def test_minconf_withdraw(node_factory, bitcoind):
|
||||
"""Issue 2518: ensure that ridiculous confirmation levels don't overflow
|
||||
|
||||
|
||||
Reference in New Issue
Block a user