Move address_is_old to AddressSynchronizer.
Cache local_height at that level instead of wallet.synchronize
This commit is contained in:
@@ -325,7 +325,7 @@ class WatchTower(LNWatcher):
|
||||
LOGGING_SHORTCUT = 'W'
|
||||
|
||||
def __init__(self, network):
|
||||
adb = AddressSynchronizer(WalletDB({}, manual_upgrades=False))
|
||||
adb = AddressSynchronizer(WalletDB({}, manual_upgrades=False), network.config)
|
||||
adb.start_network(network)
|
||||
LNWatcher.__init__(self, adb, network)
|
||||
self.network = network
|
||||
|
||||
Reference in New Issue
Block a user