From 77ed0dc2bcc4a56508cd9b2dd4ab661ed23ab9f4 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) --- substrate/node/runtime/src/impls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/node/runtime/src/impls.rs b/substrate/node/runtime/src/impls.rs index 2e9bd38c8f..69b782e807 100644 --- a/substrate/node/runtime/src/impls.rs +++ b/substrate/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) ///