From d79dd668075e49401e6c4b712c1c05ec3397977c Mon Sep 17 00:00:00 2001 From: brentstone Date: Wed, 25 Sep 2024 18:24:49 -0700 Subject: [PATCH] fix kibibytes to bytes for max proposal code size --- crates/apps_lib/src/client/rpc.rs | 2 +- crates/apps_lib/src/config/genesis/templates.rs | 2 +- crates/governance/src/parameters.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/apps_lib/src/client/rpc.rs b/crates/apps_lib/src/client/rpc.rs index bb44f82881..ab8d0b2285 100644 --- a/crates/apps_lib/src/client/rpc.rs +++ b/crates/apps_lib/src/client/rpc.rs @@ -634,7 +634,7 @@ pub async fn query_protocol_parameters( ); display_line!( context.io(), - "{:4}Max. proposal code size: {} kB", + "{:4}Max. proposal code size: {} bytes", "", max_proposal_code_size ); diff --git a/crates/apps_lib/src/config/genesis/templates.rs b/crates/apps_lib/src/config/genesis/templates.rs index 5e3aaf881e..3164af7548 100644 --- a/crates/apps_lib/src/config/genesis/templates.rs +++ b/crates/apps_lib/src/config/genesis/templates.rs @@ -431,7 +431,7 @@ pub struct PosParams { pub struct GovernanceParams { /// Min funds to stake to submit a proposal pub min_proposal_fund: u64, - /// Maximum size of proposal in kibibytes (KiB) + /// Maximum size of proposal in bytes pub max_proposal_code_size: u64, /// Minimum number of epochs between the proposal end epoch and start epoch pub min_proposal_voting_period: u64, diff --git a/crates/governance/src/parameters.rs b/crates/governance/src/parameters.rs index 4464582c8d..68f243308f 100644 --- a/crates/governance/src/parameters.rs +++ b/crates/governance/src/parameters.rs @@ -25,7 +25,7 @@ use super::storage::keys as goverance_storage; pub struct GovernanceParameters { /// Minimum amount of locked funds pub min_proposal_fund: token::Amount, - /// Maximum kibibyte length for proposal code + /// Maximum length for proposal code in bytes pub max_proposal_code_size: u64, /// Minimum number of epochs between the proposal end epoch and start epoch pub min_proposal_voting_period: u64,