We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0648bb9 + f6dc8cf commit dcedafcCopy full SHA for dcedafc
crates/sc-consensus-subspace/src/block_import.rs
@@ -727,8 +727,11 @@ where
727
return Ok(result);
728
}
729
730
+ // this is the actual reference execution time for the given block weight.
731
+ // but we need add some buffer here to allow for block import processing
732
+ // apart from the actual execution. A 200ms should be good enough.
733
let reference_execution_time_ms =
- runtime_api.block_weight(best_hash)?.ref_time() / WEIGHT_REF_TIME_PER_MILLIS;
734
+ (runtime_api.block_weight(best_hash)?.ref_time() / WEIGHT_REF_TIME_PER_MILLIS) + 200;
735
736
if actual_execution_time_ms > reference_execution_time_ms as u128 {
737
warn!(
0 commit comments