Skip to content
Snippets Groups Projects
Commit 204e10f4 authored by Shawn Tabrizi's avatar Shawn Tabrizi Committed by Sergey Pepyakin
Browse files

Suggest `--release` compilation (#3627)

parent da319b26
Branches
Tags
No related merge requests found
......@@ -208,6 +208,9 @@ pub trait SimpleSlotWorker<B: BlockT> {
let slot_after_building = SignedDuration::default().slot_now(slot_duration);
if slot_after_building != 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";
"slot" => slot_number,
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment