synchronizer/verifier: ensure fairness between wallets (follow-up)
follow-up to 4346d2fc76
It's not just about the Synchronizer, the Verifier should not starve other jobs either...
(previously I thought the Verifier is not too important as it only makes
requests if there are new txs; however with LNWatcher its progress is not persisted)
This commit is contained in:
@@ -61,9 +61,6 @@ class SynchronizerBase(NetworkJobOnDefaultServer):
|
||||
def __init__(self, network: 'Network'):
|
||||
self.asyncio_loop = network.asyncio_loop
|
||||
self._reset_request_counters()
|
||||
# Ensure fairness between Synchronizers. e.g. if multiple wallets
|
||||
# are open, a large wallet should not starve the small wallets:
|
||||
self._network_request_semaphore = asyncio.Semaphore(100)
|
||||
|
||||
NetworkJobOnDefaultServer.__init__(self, network)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user