verifier: fix race in __init__
This commit is contained in:
parent
1526fd3722
commit
e8bc025f5c
@ -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()
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user