From a2185689988a890ce6bfbfdf8629d6176946f48f Mon Sep 17 00:00:00 2001 From: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Date: Sun, 3 Nov 2019 15:09:45 +0100 Subject: [PATCH] fix formula in comment (#4006) --- node/runtime/src/impls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/runtime/src/impls.rs b/node/runtime/src/impls.rs index 2e9bd38c8f822..69b782e807dfc 100644 --- a/node/runtime/src/impls.rs +++ b/node/runtime/src/impls.rs @@ -61,7 +61,7 @@ impl> Convert for LinearWeightToFee { /// Update the given multiplier based on the following formula /// -/// diff = (target_weight - previous_block_weight) +/// diff = (previous_block_weight - target_weight) /// v = 0.00004 /// next_weight = weight * (1 + (v . diff) + (v . diff)^2 / 2) ///