Skip to content

Commit f51468b

Browse files
damipmodship
authored andcommitted
security limitations
1 parent a6a6384 commit f51468b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

massa-models/src/config/constants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pub const MAX_OPERATIONS_PER_BLOCK: u32 = 5000;
154154
/// Maximum block size in bytes
155155
pub const MAX_BLOCK_SIZE: u32 = 300_000;
156156
/// Maximum capacity of the asynchronous messages pool
157-
pub const MAX_ASYNC_POOL_LENGTH: u64 = 1_000;
157+
pub const MAX_ASYNC_POOL_LENGTH: u64 = 500;
158158
/// Maximum operation validity period count
159159
pub const OPERATION_VALIDITY_PERIODS: u64 = 10;
160160
/// Number of periods of executed operation and denunciation history to keep
@@ -318,7 +318,7 @@ pub const MAX_GAS_PER_BLOCK: u64 = u32::MAX as u64;
318318
/// Maximum of GAS allowed for asynchronous messages execution on one slot
319319
pub const MAX_ASYNC_GAS: u64 = 1_000_000_000;
320320
/// Constant cost applied to asynchronous messages (to take into account some costs related to snapshot)
321-
pub const ASYNC_MSG_CST_GAS_COST: u64 = 750_000;
321+
pub const ASYNC_MSG_CST_GAS_COST: u64 = 1_000_000;
322322
/// Gas used by a base operation (transaction, roll buy, roll sell)
323323
pub const BASE_OPERATION_GAS_COST: u64 = 800_000; // approx MAX_GAS_PER_BLOCK / MAX_OPERATIONS_PER_BLOCK
324324
/// Maximum event size in bytes

0 commit comments

Comments
 (0)