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

@@ -95,7 +95,7 @@ def is_signature_valid(appointment, signature, pk):
def test_init(watcher):
assert type(watcher.appointments) is dict and len(watcher.appointments) == 0
assert type(watcher.locator_uuid_map) is dict and len(watcher.locator_uuid_map) == 0
assert watcher.block_queue is None
assert watcher.block_queue.empty()
assert watcher.asleep is True
assert watcher.max_appointments == MAX_APPOINTMENTS
assert watcher.zmq_subscriber is None