mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-06-12 22:51:03 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user