verifier: fix race in __init__
This commit is contained in:
@@ -48,8 +48,8 @@ class SynchronizerBase(NetworkJobOnDefaultServer):
|
|||||||
Every time a status changes, run a coroutine provided by the subclass.
|
Every time a status changes, run a coroutine provided by the subclass.
|
||||||
"""
|
"""
|
||||||
def __init__(self, network):
|
def __init__(self, network):
|
||||||
NetworkJobOnDefaultServer.__init__(self, network)
|
|
||||||
self.asyncio_loop = network.asyncio_loop
|
self.asyncio_loop = network.asyncio_loop
|
||||||
|
NetworkJobOnDefaultServer.__init__(self, network)
|
||||||
|
|
||||||
def _reset(self):
|
def _reset(self):
|
||||||
super()._reset()
|
super()._reset()
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ class SPV(NetworkJobOnDefaultServer):
|
|||||||
""" Simple Payment Verification """
|
""" Simple Payment Verification """
|
||||||
|
|
||||||
def __init__(self, network, wallet):
|
def __init__(self, network, wallet):
|
||||||
NetworkJobOnDefaultServer.__init__(self, network)
|
|
||||||
self.wallet = wallet
|
self.wallet = wallet
|
||||||
|
NetworkJobOnDefaultServer.__init__(self, network)
|
||||||
|
|
||||||
def _reset(self):
|
def _reset(self):
|
||||||
super()._reset()
|
super()._reset()
|
||||||
|
|||||||
Reference in New Issue
Block a user