1
0

lnpeer: add get_channel_by_id, for small speed-up

This commit is contained in:
SomberNight
2020-04-30 21:13:29 +02:00
parent b9b53e7f76
commit 6f7a4ab048
3 changed files with 18 additions and 5 deletions

View File

@@ -170,6 +170,7 @@ class MockLNWallet(Logger, NetworkRetryManager[LNPeerAddr]):
try_force_closing = LNWallet.try_force_closing
get_first_timestamp = lambda self: 0
on_peer_successfully_established = LNWallet.on_peer_successfully_established
get_channel_by_id = LNWallet.get_channel_by_id
class MockTransport: