Send block status with announcement (#3607)

* Send block status with announcement

* Fixed tests

* Whitespace

Co-Authored-By: Gavin Wood <gavin@parity.io>

* Additional comment

* Update comment

Co-Authored-By: André Silva <andre.beat@gmail.com>
This commit is contained in:
authored and Bastian Köcher committed 2019-09-17 11:19:46 +02:00
1 parent 6679c8b051
commit 84d0c790f3
6 files changed
+85 -30

No files matched your search

+1 -1
View File
@@ -682,7 +682,7 @@ fn build_network_future<
// We poll `imported_blocks_stream`.
while let Ok(Async::Ready(Some(notification))) = imported_blocks_stream.poll() {
network.on_block_imported(notification.hash, notification.header);
network.on_block_imported(notification.hash, notification.header, notification.is_new_best);
}
// We poll `finality_notification_stream`, but we only take the last event.