pub struct WitnessConfigView {
pub combined_transactions_size_limit: u32,
pub main_storage_proof_size_soft_limit: u64,
pub new_transactions_validation_state_size_soft_limit: u64,
}
Expand description
Configuration specific to ChunkStateWitness.
JSON schema
{
"description": "Configuration specific to ChunkStateWitness.",
"type": "object",
"required": [
"combined_transactions_size_limit",
"main_storage_proof_size_soft_limit",
"new_transactions_validation_state_size_soft_limit"
],
"properties": {
"combined_transactions_size_limit": {
"description": "Maximum size of transactions contained inside ChunkStateWitness.\n\nA witness contains transactions from both the previous chunk and the current one.\nThis parameter limits the sum of sizes of transactions from both of those chunks.",
"type": "integer",
"format": "uint",
"minimum": 0.0
},
"main_storage_proof_size_soft_limit": {
"description": "Size limit for storage proof generated while executing receipts in a chunk.\nAfter this limit is reached we defer execution of any new receipts.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"new_transactions_validation_state_size_soft_limit": {
"description": "Soft size limit of storage proof used to validate new transactions in ChunkStateWitness.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
Fields§
§combined_transactions_size_limit: u32
Maximum 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.
main_storage_proof_size_soft_limit: u64
Size limit for storage proof generated while executing receipts in a chunk. After this limit is reached we defer execution of any new receipts.
new_transactions_validation_state_size_soft_limit: u64
Soft size limit of storage proof used to validate new transactions in ChunkStateWitness.
Trait Implementations§
Source§impl Clone for WitnessConfigView
impl Clone for WitnessConfigView
Source§fn clone(&self) -> WitnessConfigView
fn clone(&self) -> WitnessConfigView
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 WitnessConfigView
impl Debug for WitnessConfigView
Source§impl<'de> Deserialize<'de> for WitnessConfigView
impl<'de> Deserialize<'de> for WitnessConfigView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&WitnessConfigView> for WitnessConfigView
impl From<&WitnessConfigView> for WitnessConfigView
Source§fn from(value: &WitnessConfigView) -> Self
fn from(value: &WitnessConfigView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WitnessConfigView
impl RefUnwindSafe for WitnessConfigView
impl Send for WitnessConfigView
impl Sync for WitnessConfigView
impl Unpin for WitnessConfigView
impl UnwindSafe for WitnessConfigView
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