pub struct WitnessConfigView {
pub combined_transactions_size_limit: u32,
pub main_storage_proof_size_soft_limit: u32,
pub new_transactions_validation_state_size_soft_limit: u32,
}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": "A witness contains transactions from both the previous chunk and the current one.\n This 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.\n After this limit is reached we defer execution of any new receipts.",
"type": "integer",
"format": "uint",
"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": "uint",
"minimum": 0.0
}
}
}Fields§
§combined_transactions_size_limit: u32A 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: u32Size 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: u32Soft 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§const fn clone_from(&mut self, source: &Self)
const 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<WitnessConfigView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WitnessConfigView, <__D as Deserializer<'de>>::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) -> WitnessConfigView
fn from(value: &WitnessConfigView) -> WitnessConfigView
Converts to this type from the input type.
Source§impl Serialize for WitnessConfigView
impl Serialize for WitnessConfigView
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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