lnchannel: pass reference to lnworker
This commit is contained in:
@@ -376,10 +376,8 @@ class Peer(PrintError):
|
||||
}
|
||||
chan = Channel(chan_dict,
|
||||
sweep_address=self.lnworker.sweep_address,
|
||||
payment_completed=self.lnworker.payment_completed)
|
||||
lnworker=self.lnworker)
|
||||
chan.lnwatcher = self.lnwatcher
|
||||
chan.get_preimage = self.lnworker.get_preimage # FIXME hack.
|
||||
chan.save_preimage = self.lnworker.save_preimage # FIXME hack.
|
||||
sig_64, _ = chan.sign_next_commitment()
|
||||
self.send_message("funding_created",
|
||||
temporary_channel_id=temp_channel_id,
|
||||
@@ -470,10 +468,8 @@ class Peer(PrintError):
|
||||
}
|
||||
chan = Channel(chan_dict,
|
||||
sweep_address=self.lnworker.sweep_address,
|
||||
payment_completed=self.lnworker.payment_completed)
|
||||
lnworker=self.lnworker)
|
||||
chan.lnwatcher = self.lnwatcher
|
||||
chan.get_preimage = self.lnworker.get_preimage # FIXME hack.
|
||||
chan.save_preimage = self.lnworker.save_preimage # FIXME hack.
|
||||
remote_sig = funding_created['signature']
|
||||
chan.receive_new_commitment(remote_sig, [])
|
||||
sig_64, _ = chan.sign_next_commitment()
|
||||
|
||||
Reference in New Issue
Block a user