Renaming bad blocks as retracted

This commit is contained in:
Tomasz Drwięga
2016-03-05 11:37:19 +01:00
parent 8a13e87cbe
commit b9a6a70ced
4 changed files with 10 additions and 9 deletions

View File

@@ -410,7 +410,7 @@ impl<V> Client<V> where V: Verifier {
if !good_blocks.is_empty() && block_queue.queue_info().is_empty() {
io.send(NetworkIoMessage::User(SyncMessage::NewChainBlocks {
good: good_blocks,
bad: bad_blocks,
retracted: bad_blocks,
})).unwrap();
}
}

View File

@@ -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>,
},
/// A block is ready
BlockVerified,