mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
add_own_channel does not need to be async
This commit is contained in:
parent
9372eacc29
commit
e286ed1c13
2 changed files with 3 additions and 3 deletions
|
@ -378,7 +378,7 @@ class ChannelDB(SqlDB):
|
|||
|
||||
def add_channel_update(self, payload):
|
||||
categorized_chan_upds = self.add_channel_updates([payload], verify=False)
|
||||
assert len(categorized_chan_upds.good) == 1
|
||||
assert len(categorized_chan_upds.good) == 1, categorized_chan_upds
|
||||
|
||||
def create_database(self):
|
||||
c = self.conn.cursor()
|
||||
|
|
|
@ -962,7 +962,7 @@ class Peer(Logger):
|
|||
assert chan.config[LOCAL].funding_locked_received
|
||||
chan.set_state("OPEN")
|
||||
self.network.trigger_callback('channel', chan)
|
||||
asyncio.ensure_future(self.add_own_channel(chan))
|
||||
self.add_own_channel(chan)
|
||||
self.logger.info(f"CHANNEL OPENING COMPLETED for {scid}")
|
||||
forwarding_enabled = self.network.config.get('lightning_forward_payments', False)
|
||||
if forwarding_enabled:
|
||||
|
@ -972,7 +972,7 @@ class Peer(Logger):
|
|||
chan_upd = self.get_outgoing_gossip_channel_update_for_chan(chan)
|
||||
self.transport.send_bytes(chan_upd)
|
||||
|
||||
async def add_own_channel(self, chan):
|
||||
def add_own_channel(self, chan):
|
||||
# add channel to database
|
||||
bitcoin_keys = [chan.config[LOCAL].multisig_key.pubkey, chan.config[REMOTE].multisig_key.pubkey]
|
||||
sorted_node_ids = list(sorted(self.node_ids))
|
||||
|
|
Loading…
Add table
Reference in a new issue