Skip to content

Commit

Permalink
use bigger batches
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless committed Dec 21, 2023
1 parent d2ca29b commit 3a6ec3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/lib/config/src/constants/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub const MAX_BYTES_PER_PACKED_SLOT: u64 = 65;
pub static GAS_PER_SLOT: Lazy<BigUint> =
Lazy::new(|| BigUint::from(MAX_BYTES_PER_PACKED_SLOT) * BigUint::from(GAS_PER_PUBDATA_BYTE));

pub const MAX_TXS_IN_BLOCK: usize = 1024;
pub const MAX_TXS_IN_BLOCK: usize = 10000;

pub const MAX_NEW_FACTORY_DEPS: usize = 32;

Expand All @@ -28,5 +28,5 @@ pub const PAD_MSG_BEFORE_HASH_BITS_LEN: usize = 736;
/// The size of the bootloader memory in bytes which is used by the protocol.
/// While the maximal possible size is a lot higher, we restric ourselves to a certain limit to reduce
/// the requirements on RAM.
pub const USED_BOOTLOADER_MEMORY_BYTES: usize = 1 << 24;
pub const USED_BOOTLOADER_MEMORY_BYTES: usize = 24000000;
pub const USED_BOOTLOADER_MEMORY_WORDS: usize = USED_BOOTLOADER_MEMORY_BYTES / 32;
2 changes: 1 addition & 1 deletion core/lib/vm/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub const VM_HOOK_POSITION: u32 = RESULT_SUCCESS_FIRST_SLOT - 1;
pub const VM_HOOK_PARAMS_COUNT: u32 = 2;
pub const VM_HOOK_PARAMS_START_POSITION: u32 = VM_HOOK_POSITION - VM_HOOK_PARAMS_COUNT;

pub(crate) const MAX_MEM_SIZE_BYTES: u32 = 16777216; // 2^24
pub(crate) const MAX_MEM_SIZE_BYTES: u32 = 24000000;

/// Arbitrary space in memory closer to the end of the page
pub const RESULT_SUCCESS_FIRST_SLOT: u32 =
Expand Down

0 comments on commit 3a6ec3e

Please sign in to comment.