Skip to content

Commit 3b21ef4

Browse files
Fix fee calculation e2e test (#1659)
# 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
1 parent f43fd90 commit 3b21ef4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bin/runtime/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ try-runtime = [
141141
"pallet-authorship/try-runtime",
142142
"pallet-balances/try-runtime",
143143
"pallet-elections/try-runtime",
144+
"pallet-operations/try-runtime",
144145
"pallet-identity/try-runtime",
145146
"pallet-insecure-randomness-collective-flip/try-runtime",
146147
"pallet-session/try-runtime",

e2e-tests/src/test/fee.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ pub async fn fee_calculation() -> anyhow::Result<()> {
106106
/// amount is equal to the existential deposit of the chain.
107107
async fn fill_blocks(block_occupancy: BlockOccupancy, blocks: u32, connection: &SignedConnection) {
108108
let limit = match block_occupancy {
109-
BlockOccupancy::Low => 140,
109+
// 850 transfers == 37.3% weight < 37.5% == 50% of 75% that is maximum real block occupancy for transfer transactions
110+
BlockOccupancy::Low => 850,
111+
// above 37.5% block weight
110112
BlockOccupancy::High => 1000,
111113
};
112114

0 commit comments

Comments
 (0)