diff --git a/verification/src/queue.rs b/verification/src/queue.rs index a036547e..06925fd3 100644 --- a/verification/src/queue.rs +++ b/verification/src/queue.rs @@ -86,7 +86,11 @@ impl Schedule { pub struct Queue { verifier: Box>, items: RwLock, + // todo: write lock on verified should continue until blocks are persisted in the database + // todo: OR journal verified transactions before they are persisted + // todo: OTHERWISE verification thread may behave suboptiomal, trying to verify the same block + // todo: over and over again until in finally gets inserted verified: RwLock>, invalid: RwLock>, processing: RwLock>,