some future todos

This commit is contained in:
NikVolf 2016-10-31 21:07:28 +03:00
parent 20e4ddd187
commit 59b4d10e62
1 changed files with 4 additions and 0 deletions

View File

@ -86,7 +86,11 @@ impl Schedule {
pub struct Queue {
verifier: Box<ContinueVerify<State=usize>>,
items: RwLock<Schedule>,
// 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<LinkedHashMap<H256, VerifiedBlock>>,
invalid: RwLock<HashSet<H256>>,
processing: RwLock<HashSet<H256>>,