1
0

lnworker: define use_trampoline() for code clarity

This commit is contained in:
ThomasV
2022-09-19 17:43:13 +02:00
parent 68bf714ae6
commit 2af59e32b2
5 changed files with 28 additions and 22 deletions

View File

@@ -185,6 +185,9 @@ class MockLNWallet(Logger, EventListener, NetworkRetryManager[LNPeerAddr]):
def channel_db(self):
return self.network.channel_db if self.network else None
def uses_trampoline(self):
return not bool(self.channel_db)
@property
def channels(self):
return self._channels