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:
lisa neigut
2018-09-19 17:59:46 -07:00
committed by Rusty Russell
parent b1f15c2605
commit b1ceaf9910
15 changed files with 101 additions and 61 deletions

View File

@@ -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):