adding message from client to sync and disabling sending transactions to the queue while syncing
This commit is contained in:
@@ -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 */},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user