pub struct WitnessConfig {
pub main_storage_proof_size_soft_limit: usize,
pub combined_transactions_size_limit: usize,
pub new_transactions_validation_state_size_soft_limit: usize,
}Expand description
Configuration specific to ChunkStateWitness.
Fields§
§main_storage_proof_size_soft_limit: usizeSize limit for storage proof generated while executing receipts in a chunk. After this limit is reached we defer execution of any new receipts.
combined_transactions_size_limit: usizeMaximum size of transactions contained inside ChunkStateWitness. A witness contains transactions from both the previous chunk and the current one. This parameter limits the sum of sizes of transactions from both of those chunks.
new_transactions_validation_state_size_soft_limit: usizeSoft size limit of storage proof used to validate new transactions in ChunkStateWitness.
Implementations§
Source§impl WitnessConfig
impl WitnessConfig
Sourcepub fn test_disabled() -> Self
pub fn test_disabled() -> Self
Creates a config that effectively disables ChunkStateWitness related limits by setting them to max values. This can be useful for tests and benchmarks.
Trait Implementations§
Source§impl Clone for WitnessConfig
impl Clone for WitnessConfig
Source§fn clone(&self) -> WitnessConfig
fn clone(&self) -> WitnessConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WitnessConfig
impl Debug for WitnessConfig
Source§impl From<WitnessConfig> for WitnessConfigView
impl From<WitnessConfig> for WitnessConfigView
Source§fn from(config: WitnessConfig) -> Self
fn from(config: WitnessConfig) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WitnessConfig
impl PartialEq for WitnessConfig
impl Copy for WitnessConfig
impl StructuralPartialEq for WitnessConfig
Auto Trait Implementations§
impl Freeze for WitnessConfig
impl RefUnwindSafe for WitnessConfig
impl Send for WitnessConfig
impl Sync for WitnessConfig
impl Unpin for WitnessConfig
impl UnwindSafe for WitnessConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more