Port the trivial audit fixes to evm (#236)

* port the trivial audit fixes to evm

* MAX_POV_SIZE is imported instead of declaring
This commit is contained in:
Özgün Özerk
2024-06-27 20:22:50 +03:00
committed by GitHub
parent b0c0a81219
commit 3c9696b982
5 changed files with 59 additions and 24 deletions
+1 -3
View File
@@ -48,7 +48,7 @@ pub const MILLISECS_PER_BLOCK: u64 = 6000;
pub const MILLISECS_PER_BLOCK: u64 = 12000;
// NOTE: Currently it is not possible to change the slot duration after the
// chain has started. Attempting to do so will brick block production.
// chain has started. Attempting to do so will brick block production.
pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;
// Time is measured by number of blocks.
@@ -89,8 +89,6 @@ pub const RELAY_CHAIN_SLOT_DURATION_MILLIS: u32 = 6000;
/// Maximum length for a block.
pub const MAX_BLOCK_LENGTH: u32 = 5 * 1024 * 1024;
pub const MAX_POV_SIZE: u64 = 5 * 1024 * 1024;
/// Current approximation of the gas/s consumption considering
/// EVM execution over compiled WASM (on 4.4Ghz CPU).
/// Given the 500ms Weight, from which 75% only are used for transactions,