Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit a218568

Browse files
joepetrowskikianenigma
authored andcommitted
fix formula in comment (#4006)
1 parent 56a2aef commit a218568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/runtime/src/impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl<C: Get<Balance>> Convert<Weight, Balance> for LinearWeightToFee<C> {
6161

6262
/// Update the given multiplier based on the following formula
6363
///
64-
/// diff = (target_weight - previous_block_weight)
64+
/// diff = (previous_block_weight - target_weight)
6565
/// v = 0.00004
6666
/// next_weight = weight * (1 + (v . diff) + (v . diff)^2 / 2)
6767
///

0 commit comments

Comments
 (0)