mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 13:51:11 +00:00
Suggest --release compilation (#3627)
This commit is contained in:
committed by
Sergei Pepyakin
parent
c4af4fa522
commit
113d512300
@@ -208,6 +208,9 @@ pub trait SimpleSlotWorker<B: BlockT> {
|
|||||||
let slot_after_building = SignedDuration::default().slot_now(slot_duration);
|
let slot_after_building = SignedDuration::default().slot_now(slot_duration);
|
||||||
if slot_after_building != slot_number {
|
if slot_after_building != slot_number {
|
||||||
info!("Discarding proposal for slot {}; block production took too long", slot_number);
|
info!("Discarding proposal for slot {}; block production took too long", slot_number);
|
||||||
|
// If the node was compiled with debug, tell the user to use release optimizations.
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
|
info!("Recompile your node in `--release` mode to mitigate this problem.");
|
||||||
telemetry!(CONSENSUS_INFO; "slots.discarding_proposal_took_too_long";
|
telemetry!(CONSENSUS_INFO; "slots.discarding_proposal_took_too_long";
|
||||||
"slot" => slot_number,
|
"slot" => slot_number,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user