From 3130f4ec27232312ca6ea72e2f63d5f1226488fb Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Wed, 1 Mar 2023 21:30:31 +0100 Subject: [PATCH] pygossmap: read .disabled from channel_flags --- contrib/pyln-client/pyln/client/gossmap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/pyln-client/pyln/client/gossmap.py b/contrib/pyln-client/pyln/client/gossmap.py index a632d28bf..2a10a0bbf 100755 --- a/contrib/pyln-client/pyln/client/gossmap.py +++ b/contrib/pyln-client/pyln/client/gossmap.py @@ -53,6 +53,7 @@ class GossmapHalfchannel(object): self.htlc_maximum_msat: Optional[int] = fields.get('htlc_maximum_msat', None) self.fee_base_msat: int = fields['fee_base_msat'] self.fee_proportional_millionths: int = fields['fee_proportional_millionths'] + self.disabled = fields['channel_flags'] & 2 > 0 # Cache the _scidd and hash to have faster operation later # Unfortunately the @final decorator only comes for python3.8