mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 21:01:05 +00:00
Various minor fixes (#2860)
* Make sr-api-macros benchmark work again
It broke with 4f888f34d3.
* Give better indication of import progress
* Only send consensus info when explicitly enabled
This is only necessary for validators and they can
explicitly enable it via
--telemetry-url 'wss://telemetry.polkadot.io 1'
(or some other endpoint)
* Remove unnecessary mutable
* Fix style
This commit is contained in:
committed by
Gavin Wood
parent
12bbc2ffd9
commit
5c3d1f82cd
@@ -175,7 +175,7 @@ pub fn import_blocks<F, E, R>(
|
||||
|
||||
block_count = b;
|
||||
if b % 1000 == 0 {
|
||||
info!("#{}", b);
|
||||
info!("#{} blocks were added to the queue", b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,6 +184,13 @@ pub fn import_blocks<F, E, R>(
|
||||
wait_recv.recv()
|
||||
.expect("Importing thread has panicked. Then the main process will die before this can be reached. qed.");
|
||||
blocks_imported += 1;
|
||||
if blocks_imported % 1000 == 0 {
|
||||
info!(
|
||||
"#{} blocks were imported (#{} left)",
|
||||
blocks_imported,
|
||||
count - blocks_imported
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
info!("Imported {} blocks. Best: #{}", block_count, client.info().chain.best_number);
|
||||
|
||||
Reference in New Issue
Block a user