adding message from client to sync and disabling sending transactions to the queue while syncing
This commit is contained in:
@@ -334,6 +334,12 @@ impl<V> Client<V> where V: Verifier {
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
if self.queue_info().is_empty() {
|
||||
io.send(NetworkIoMessage::User(SyncMessage::BlockQueueEmpty)).expect("error sending message to sync module");
|
||||
}
|
||||
}
|
||||
|
||||
imported
|
||||
}
|
||||
|
||||
|
||||
@@ -40,6 +40,8 @@ pub enum SyncMessage {
|
||||
NewChainHead,
|
||||
/// A block is ready
|
||||
BlockVerified,
|
||||
/// blocks queue is empty
|
||||
BlockQueueEmpty,
|
||||
}
|
||||
|
||||
/// IO Message type used for Network service
|
||||
|
||||
Reference in New Issue
Block a user