From 247ac99711f536dfd21d55d289b27a918e71bb35 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Mon, 25 May 2020 16:33:43 +0200 Subject: [PATCH] fix: make receivable_msat really optional for backwards compat --- drain/drain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drain/drain.py b/drain/drain.py index 6587cce..b7c6f1a 100755 --- a/drain/drain.py +++ b/drain/drain.py @@ -99,7 +99,7 @@ def spendable_from_scid(plugin, payload, scid=None, _raise=False): their_reserve = their spendable = channel_peer['spendable_msat'] - receivable = channel_peer['receivable_msat'] + receivable = channel_peer.get('receivable_msat') if not receivable: # receivable_msat was added with the 0.8.2 release, have a fallback receivable = their - their_reserve - Millisatoshi('3000sat')