From 59b4d10e62721e723c5aa0e87744814bcc73704a Mon Sep 17 00:00:00 2001 From: NikVolf Date: Mon, 31 Oct 2016 21:07:28 +0300 Subject: [PATCH] some future todos --- verification/src/queue.rs | 4 ++++ 1 file changed, 4 insertions(+) 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>,