-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Enacted & Retracted blocks' transactions removed/added to transaction… #674
Conversation
Not sure where (if) should I merge |
i'd say generally "good" should become "enacted" and "bad" to "retracted". i don't think they're used for different meanings. |
I agree that Can you confirm my assumption that |
@@ -230,12 +230,36 @@ impl<V> Client<V> where V: Verifier { | |||
Ok(closed_block) | |||
} | |||
|
|||
fn calculate_enacted_retracted(&self, routes: Vec<ImportRoute>) -> (Vec<H256>, Vec<H256>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is routes
?
ahh so:
as such, none of them are subsets of the other. |
i suggest we rename |
But isn't |
@@ -293,11 +321,12 @@ impl<V> Client<V> where V: Verifier { | |||
|
|||
{ | |||
if !good_blocks.is_empty() && self.block_queue.queue_info().is_empty() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gavofyork Is the block_queue
is empty check needed here?
My understanding is that if we don't send the event - some of the blocks' transactions will not be removed from queue because of that (cause in next event the blocks won't be there)
3b, 4b, 5b, 3c good: 3b, 4b, 5b, 3c
(all disjoint) |
Fails on:
|
now contained in #700 |
… queue
Closes #649