Skip to content

Commit 87ebe7c

Browse files
authored
More space (#1670)
1 parent 3b21ef4 commit 87ebe7c

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aleph-node"
3-
version = "0.13.2"
3+
version = "0.13.3"
44
description = "Aleph node binary"
55
build = "build.rs"
66
license = "GPL-3.0-or-later"

bin/runtime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aleph-runtime"
3-
version = "0.13.2"
3+
version = "0.13.3"
44
license = "GPL-3.0-or-later"
55
authors.workspace = true
66
edition.workspace = true

bin/runtime/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
9797
spec_name: create_runtime_str!("aleph-node"),
9898
impl_name: create_runtime_str!("aleph-node"),
9999
authoring_version: 1,
100-
spec_version: 71,
100+
spec_version: 73,
101101
impl_version: 1,
102102
apis: RUNTIME_API_VERSIONS,
103103
transaction_version: 18,
@@ -120,8 +120,9 @@ pub const MICRO_AZERO: Balance = MILLI_AZERO / 1000;
120120
pub const NANO_AZERO: Balance = MICRO_AZERO / 1000;
121121
pub const PICO_AZERO: Balance = NANO_AZERO / 1000;
122122

123-
// 75% block weight is dedicated to normal extrinsics
124-
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);
123+
// 99% block weight is dedicated to normal extrinsics leaving 1% reserved space for the operational
124+
// extrinsics.
125+
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(99);
125126
// The whole process for a single block should take 1s, of which 400ms is for creation,
126127
// 200ms for propagation and 400ms for validation. Hence the block weight should be within 400ms.
127128
pub const MAX_BLOCK_WEIGHT: Weight =

e2e-tests/src/test/fee.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::{config::setup_test, transfer::setup_for_transfer};
1717
/// In order to increase the block occupancy we need to transfer funds to a lot of accounts. This
1818
/// array contains the accounts we will be transferring funds to.
1919
static DESTINATIONS: Lazy<Vec<AccountId>> = Lazy::new(|| {
20-
(0..1000)
20+
(0..1600)
2121
.map(|i| keypair_from_string(&format!("//{i}")).account_id().clone())
2222
.collect()
2323
});
@@ -106,10 +106,10 @@ 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-
// 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
112-
BlockOccupancy::High => 1000,
109+
// 1100 transfers == 49% weight < 49.5% == 50% of 99% that is maximum real block occupancy for transfer transactions
110+
BlockOccupancy::Low => 1100,
111+
// above 49.5% block weight
112+
BlockOccupancy::High => 1600,
113113
};
114114

115115
let existential_deposit = connection

0 commit comments

Comments
 (0)