Initializes block_queue on init

Building from backed up data may require initializing the block queues of both the watcher and responder with the blocks they've missed.
This commit is contained in:
Sergi Delgado Segura
2019-10-30 12:20:42 -07:00
parent ddcbc6a6de
commit 8ad3ae5f1d
4 changed files with 7 additions and 8 deletions

View File

@@ -84,7 +84,7 @@ def test_init_responder(responder):
assert type(responder.tx_job_map) is dict and len(responder.tx_job_map) == 0
assert type(responder.unconfirmed_txs) is list and len(responder.unconfirmed_txs) == 0
assert type(responder.missed_confirmations) is dict and len(responder.missed_confirmations) == 0
assert responder.block_queue is None
assert responder.block_queue.empty()
assert responder.asleep is True
assert responder.zmq_subscriber is None