adding message from client to sync and disabling sending transactions to the queue while syncing

This commit is contained in:
Nikolay Volf
2016-03-17 12:17:53 +01:00
committed by arkpar
parent 81f8f939b9
commit 31f4a214a9
5 changed files with 67 additions and 4 deletions

View File

@@ -173,6 +173,9 @@ impl NetworkProtocolHandler<SyncMessage> for EthSync {
SyncMessage::NewChainHead => {
let mut sync_io = NetSyncIo::new(io, self.chain.deref());
self.sync.write().unwrap().chain_new_head(&mut sync_io);
},
SyncMessage::BlockQueueEmpty => {
self.sync.write().unwrap().client_block_queue_empty();
}
_ => {/* Ignore other messages */},
}