mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 08:34:20 +01:00
gossipd: Update BOLT-split flags in channel_update
BOLT 7's been updated to split the flags field in `channel_update` into two: `channel_flags` and `message_flags`. This changeset does the minimal necessary to get to building with the new flags.
This commit is contained in:
committed by
Rusty Russell
parent
b1f15c2605
commit
b1ceaf9910
@@ -557,7 +557,7 @@ class LightningNode(object):
|
||||
|
||||
def is_channel_active(self, chanid):
|
||||
channels = self.rpc.listchannels()['channels']
|
||||
active = [(c['short_channel_id'], c['flags']) for c in channels if c['active']]
|
||||
active = [(c['short_channel_id'], c['channel_flags']) for c in channels if c['active']]
|
||||
return (chanid, 0) in active and (chanid, 1) in active
|
||||
|
||||
def wait_for_channel_onchain(self, peerid):
|
||||
|
||||
Reference in New Issue
Block a user