Skip to content

Commit

Permalink
fix runtime block cost tests
Browse files Browse the repository at this point in the history
  • Loading branch information
enthusiastmartin committed Aug 27, 2021
1 parent 05ab686 commit b1aafff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runtime/src/tests.rs
Expand Up @@ -14,9 +14,11 @@ fn full_block_cost() {

let max_weight = BlockWeights::get().get(DispatchClass::Normal).max_total.unwrap_or(1);
let weight_fee = WeightToFee::calc(&max_weight);
assert_eq!(weight_fee, 47_349_441_402_750);
assert_eq!(weight_fee, 47647303225875);

//let target_fee = 393 * DOLLARS + 68_950_233_386_750;
let target_fee = 39369248090258875;

let target_fee = 393 * DOLLARS + 68_950_233_386_750;
assert_eq!(ExtrinsicBaseWeight::get() as u128 + length_fee + weight_fee, target_fee);
}

Expand Down

0 comments on commit b1aafff

Please sign in to comment.