@@ -67,6 +67,7 @@ class MockNetwork:
|
||||
self.channel_db = ChannelDB(self)
|
||||
self.channel_db.data_loaded.set()
|
||||
self.path_finder = LNPathFinder(self.channel_db)
|
||||
self.lngossip = MockLNGossip()
|
||||
self.tx_queue = tx_queue
|
||||
self._blockchain = MockBlockchain()
|
||||
|
||||
@@ -129,6 +130,11 @@ class MockWallet:
|
||||
return ''
|
||||
|
||||
|
||||
class MockLNGossip:
|
||||
def get_sync_progress_estimate(self):
|
||||
return None, None, None
|
||||
|
||||
|
||||
class MockLNWallet(Logger, EventListener, NetworkRetryManager[LNPeerAddr]):
|
||||
MPP_EXPIRY = 2 # HTLC timestamps are cast to int, so this cannot be 1
|
||||
PAYMENT_TIMEOUT = 120
|
||||
|
||||
Reference in New Issue
Block a user