-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expose transaction insertion in sync lib #609
Conversation
@@ -30,7 +30,7 @@ pub enum SyncMessage { | |||
/// Hashes of blocks imported to blockchain | |||
good: Vec<H256>, | |||
/// Hashes of blocks not imported to blockchain | |||
bad: Vec<H256>, | |||
retracted: 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.
retracted != bad. Bad blocks are the ones which were not imported due to an error. You need additional field for dead blocks - ones which were removed from the canonical chain.
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.
this is from https://github.com/ethcore/parity/pull/607
review/merge it first)
Conflicts: sync/src/chain.rs
required for #587 |
where T: Fn(&Address) -> U256 | ||
{ | ||
let mut queue = self.transaction_queue.lock().unwrap(); | ||
queue.add(transaction, fetch_nonce); |
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.
add returns a result right now so this will be a warning (after merge with master). We should forward the result up to sync/src/lib.rs
Expose transaction insertion in sync lib
tiny one, should go after 607