Skip to content

Commit

Permalink
Fix fee calculation e2e test (#1659)
Browse files Browse the repository at this point in the history
# Description

* Fix for e2e test after adjustment of adaptive fee mechanism from 25%
to 50%.
* fix for liminal integration tests build

## Type of change

Please delete options that are not relevant.

- Bug fix (non-breaking change which fixes an issue)

Test passed:
https://github.com/Cardinal-Cryptography/aleph-node/actions/runs/8341568094/job/22828318727
  • Loading branch information
Marcin-Radecki authored Mar 19, 2024
1 parent f43fd90 commit 3b21ef4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ try-runtime = [
"pallet-authorship/try-runtime",
"pallet-balances/try-runtime",
"pallet-elections/try-runtime",
"pallet-operations/try-runtime",
"pallet-identity/try-runtime",
"pallet-insecure-randomness-collective-flip/try-runtime",
"pallet-session/try-runtime",
Expand Down
4 changes: 3 additions & 1 deletion e2e-tests/src/test/fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ pub async fn fee_calculation() -> anyhow::Result<()> {
/// amount is equal to the existential deposit of the chain.
async fn fill_blocks(block_occupancy: BlockOccupancy, blocks: u32, connection: &SignedConnection) {
let limit = match block_occupancy {
BlockOccupancy::Low => 140,
// 850 transfers == 37.3% weight < 37.5% == 50% of 75% that is maximum real block occupancy for transfer transactions
BlockOccupancy::Low => 850,
// above 37.5% block weight
BlockOccupancy::High => 1000,
};

Expand Down

0 comments on commit 3b21ef4

Please sign in to comment.