From 126e44e99f5edb050c20c9901040865cd14f5bb9 Mon Sep 17 00:00:00 2001 From: joepetrowski Date: Sun, 3 Nov 2019 13:08:51 +0100 Subject: [PATCH] fix formula in comment --- 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) ///