verifier: fix race in __init__

This commit is contained in:
SomberNight 2018-10-19 18:10:04 +02:00
parent 1526fd3722
commit e8bc025f5c
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9
2 changed files with 2 additions and 2 deletions

View file

@ -48,8 +48,8 @@ class SynchronizerBase(NetworkJobOnDefaultServer):
Every time a status changes, run a coroutine provided by the subclass.
"""
def __init__(self, network):
NetworkJobOnDefaultServer.__init__(self, network)
self.asyncio_loop = network.asyncio_loop
NetworkJobOnDefaultServer.__init__(self, network)
def _reset(self):
super()._reset()

View file

@ -44,8 +44,8 @@ class SPV(NetworkJobOnDefaultServer):
""" Simple Payment Verification """
def __init__(self, network, wallet):
NetworkJobOnDefaultServer.__init__(self, network)
self.wallet = wallet
NetworkJobOnDefaultServer.__init__(self, network)
def _reset(self):
super()._reset()