Esempio n. 1
0
 def __init__(self, remote_keypair, local_keypair, chan, tx_queue):
     self.chan = chan
     self.remote_keypair = remote_keypair
     self.node_keypair = local_keypair
     self.network = MockNetwork(tx_queue)
     self.channels = {self.chan.channel_id: self.chan}
     self.payments = {}
     self.wallet = MockWallet()
     self.localfeatures = LnLocalFeatures(0)
     self.pending_payments = defaultdict(asyncio.Future)
Esempio n. 2
0
 def __init__(self, remote_keypair, local_keypair, chan, tx_queue):
     self.remote_keypair = remote_keypair
     self.node_keypair = local_keypair
     self.network = MockNetwork(tx_queue)
     self.channels = {chan.channel_id: chan}
     self.payments = {}
     self.logs = defaultdict(list)
     self.wallet = MockWallet()
     self.localfeatures = LnLocalFeatures(0)
     self.localfeatures |= LnLocalFeatures.OPTION_DATA_LOSS_PROTECT_OPT
     self.pending_payments = defaultdict(asyncio.Future)
Esempio n. 3
0
 def __init__(self, remote_keypair, local_keypair, chan: 'Channel',
              tx_queue):
     self.remote_keypair = remote_keypair
     self.node_keypair = local_keypair
     self.network = MockNetwork(tx_queue)
     self.channels = {chan.channel_id: chan}
     self.payments = {}
     self.logs = defaultdict(list)
     self.wallet = MockWallet()
     self.localfeatures = LnLocalFeatures(0)
     self.localfeatures |= LnLocalFeatures.OPTION_DATA_LOSS_PROTECT_OPT
     self.pending_payments = defaultdict(asyncio.Future)
     chan.lnworker = self
     chan.node_id = remote_keypair.pubkey
     # used in tests
     self.enable_htlc_settle = asyncio.Event()
     self.enable_htlc_settle.set()