lightningd: take into account outstanding HTLCs for 'spendable_msat'

The current calculation ignores them, which is unrealistic.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-05-31 17:00:33 +09:30
parent ab31f40aa2
commit bb6c34fb13
2 changed files with 20 additions and 1 deletions

View File

@@ -2047,7 +2047,6 @@ def test_setchannelfee_all(node_factory, bitcoind):
assert result['channels'][1]['short_channel_id'] == scid3
@pytest.mark.xfail(strict=True)
def test_channel_spendable(node_factory, bitcoind):
"""Test that spendable_msat is accurate"""
sats = 10**6