Function massa_api::public::check_input_operation
source · fn check_input_operation(
+check_input_operation in massa_api::public - Rust Function massa_api::public::check_input_operation
source · fn check_input_operation(
op_input: OperationInput,
api_cfg: &APIConfig,
last_slot: Option<Slot>,
diff --git a/massa_api/public/index.html b/massa_api/public/index.html
index d8a24c3d0b..42a6568e1b 100644
--- a/massa_api/public/index.html
+++ b/massa_api/public/index.html
@@ -1,2 +1,2 @@
-massa_api::public - Rust Expand description
Copyright (c) 2022 MASSA LABS info@massa.net
+massa_api::public - Rust Expand description
Copyright (c) 2022 MASSA LABS info@massa.net
Functions§
- Checks the validity of an input operation.
\ No newline at end of file
diff --git a/massa_execution_exports/enum.ExecutionQueryError.html b/massa_execution_exports/enum.ExecutionQueryError.html
index ca05506648..373c67ee88 100644
--- a/massa_execution_exports/enum.ExecutionQueryError.html
+++ b/massa_execution_exports/enum.ExecutionQueryError.html
@@ -2,7 +2,7 @@
NotFound(String),
}Expand description
Execution query errors
Variants§
Trait Implementations§
source§impl Clone for ExecutionQueryError
source§fn clone(&self) -> ExecutionQueryError
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ExecutionQueryError
source§impl Display for ExecutionQueryError
source§impl Error for ExecutionQueryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<ExecutionQueryError> for Error
source§fn from(value: ExecutionQueryError) -> Self
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for ExecutionQueryError
§impl RefUnwindSafe for ExecutionQueryError
§impl Send for ExecutionQueryError
§impl Sync for ExecutionQueryError
§impl Unpin for ExecutionQueryError
§impl UnwindSafe for ExecutionQueryError
Blanket Implementations§
Trait Implementations§
source§impl Clone for ExecutionQueryError
source§fn clone(&self) -> ExecutionQueryError
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ExecutionQueryError
source§impl Display for ExecutionQueryError
source§impl Error for ExecutionQueryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<ExecutionQueryError> for Error
source§fn from(value: ExecutionQueryError) -> Self
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for ExecutionQueryError
§impl RefUnwindSafe for ExecutionQueryError
§impl Send for ExecutionQueryError
§impl Sync for ExecutionQueryError
§impl Unpin for ExecutionQueryError
§impl UnwindSafe for ExecutionQueryError
Blanket Implementations§
§impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.source§impl<T> Borrow<T> for Twhere
diff --git a/massa_execution_exports/enum.SlotExecutionOutput.html b/massa_execution_exports/enum.SlotExecutionOutput.html
index 19f6635b3b..8e1250c295 100644
--- a/massa_execution_exports/enum.SlotExecutionOutput.html
+++ b/massa_execution_exports/enum.SlotExecutionOutput.html
@@ -4,7 +4,7 @@
}Expand description
structure describing the output of the execution of a slot
Variants§
§ExecutedSlot(ExecutionOutput)
Executed slot output
§FinalizedSlot(ExecutionOutput)
Finalized slot output
-Trait Implementations§
source§impl Clone for SlotExecutionOutput
source§fn clone(&self) -> SlotExecutionOutput
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SlotExecutionOutput
source§impl From<SlotExecutionOutput> for SlotExecutionOutput
source§fn from(value: SlotExecutionOutput) -> Self
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for SlotExecutionOutput
§impl RefUnwindSafe for SlotExecutionOutput
§impl Send for SlotExecutionOutput
§impl Sync for SlotExecutionOutput
§impl Unpin for SlotExecutionOutput
§impl UnwindSafe for SlotExecutionOutput
Blanket Implementations§
Trait Implementations§
source§impl Clone for SlotExecutionOutput
source§fn clone(&self) -> SlotExecutionOutput
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SlotExecutionOutput
source§impl From<SlotExecutionOutput> for SlotExecutionOutput
source§fn from(value: SlotExecutionOutput) -> Self
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for SlotExecutionOutput
§impl RefUnwindSafe for SlotExecutionOutput
§impl Send for SlotExecutionOutput
§impl Sync for SlotExecutionOutput
§impl Unpin for SlotExecutionOutput
§impl UnwindSafe for SlotExecutionOutput
Blanket Implementations§
§impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.source§impl<T> Borrow<T> for Twhere
diff --git a/massa_execution_exports/error/enum.ExecutionQueryError.html b/massa_execution_exports/error/enum.ExecutionQueryError.html
index c627d5e735..b9ff8b3d4e 100644
--- a/massa_execution_exports/error/enum.ExecutionQueryError.html
+++ b/massa_execution_exports/error/enum.ExecutionQueryError.html
@@ -2,7 +2,7 @@
NotFound(String),
}Expand description
Execution query errors
Variants§
Trait Implementations§
source§impl Clone for ExecutionQueryError
source§fn clone(&self) -> ExecutionQueryError
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ExecutionQueryError
source§impl Display for ExecutionQueryError
source§impl Error for ExecutionQueryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<ExecutionQueryError> for Error
source§fn from(value: ExecutionQueryError) -> Self
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for ExecutionQueryError
§impl RefUnwindSafe for ExecutionQueryError
§impl Send for ExecutionQueryError
§impl Sync for ExecutionQueryError
§impl Unpin for ExecutionQueryError
§impl UnwindSafe for ExecutionQueryError
Blanket Implementations§
Trait Implementations§
source§impl Clone for ExecutionQueryError
source§fn clone(&self) -> ExecutionQueryError
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ExecutionQueryError
source§impl Display for ExecutionQueryError
source§impl Error for ExecutionQueryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<ExecutionQueryError> for Error
source§fn from(value: ExecutionQueryError) -> Self
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for ExecutionQueryError
§impl RefUnwindSafe for ExecutionQueryError
§impl Send for ExecutionQueryError
§impl Sync for ExecutionQueryError
§impl Unpin for ExecutionQueryError
§impl UnwindSafe for ExecutionQueryError
Blanket Implementations§
§impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.source§impl<T> Borrow<T> for Twhere
diff --git a/massa_execution_exports/mapping_grpc/fn.to_cycle_info.html b/massa_execution_exports/mapping_grpc/fn.to_cycle_info.html
index 1f38bdaf93..e054f3cb33 100644
--- a/massa_execution_exports/mapping_grpc/fn.to_cycle_info.html
+++ b/massa_execution_exports/mapping_grpc/fn.to_cycle_info.html
@@ -1 +1 @@
-to_cycle_info in massa_execution_exports::mapping_grpc - Rust Function massa_execution_exports::mapping_grpc::to_cycle_info
source · fn to_cycle_info(value: ExecutionQueryCycleInfos) -> ExecutionQueryCycleInfos
\ No newline at end of file
+to_cycle_info in massa_execution_exports::mapping_grpc - Rust Function massa_execution_exports::mapping_grpc::to_cycle_info
source · fn to_cycle_info(value: ExecutionQueryCycleInfos) -> ExecutionQueryCycleInfos
\ No newline at end of file
diff --git a/massa_execution_exports/mapping_grpc/fn.to_event_filter.html b/massa_execution_exports/mapping_grpc/fn.to_event_filter.html
index 093209b8cd..941bdaadb3 100644
--- a/massa_execution_exports/mapping_grpc/fn.to_event_filter.html
+++ b/massa_execution_exports/mapping_grpc/fn.to_event_filter.html
@@ -1,4 +1,4 @@
-to_event_filter in massa_execution_exports::mapping_grpc - Rust Function massa_execution_exports::mapping_grpc::to_event_filter
source · pub fn to_event_filter(
+to_event_filter in massa_execution_exports::mapping_grpc - Rust Function massa_execution_exports::mapping_grpc::to_event_filter
source · pub fn to_event_filter(
sce_filters: Vec<ScExecutionEventsFilter>,
) -> Result<EventFilter, ModelsError>
Expand description
Convert a vector of grpc_model::ScExecutionEventsFilter
to a EventFilter
\ No newline at end of file
diff --git a/massa_execution_exports/mapping_grpc/fn.to_execution_query_response.html b/massa_execution_exports/mapping_grpc/fn.to_execution_query_response.html
index 661785c3b7..983b8653fe 100644
--- a/massa_execution_exports/mapping_grpc/fn.to_execution_query_response.html
+++ b/massa_execution_exports/mapping_grpc/fn.to_execution_query_response.html
@@ -1,4 +1,4 @@
-to_execution_query_response in massa_execution_exports::mapping_grpc - Rust pub fn to_execution_query_response(
+to_execution_query_response in massa_execution_exports::mapping_grpc - Rust pub fn to_execution_query_response(
value: Result<ExecutionQueryResponseItem, ExecutionQueryError>,
) -> ExecutionQueryResponse
Expand description
Converts a ExecutionQueryResponse
to a grpc_api::ExecutionQueryResponse
\ No newline at end of file
diff --git a/massa_execution_exports/mapping_grpc/fn.to_execution_query_result.html b/massa_execution_exports/mapping_grpc/fn.to_execution_query_result.html
index ce88fc5c76..75ffb5a76b 100644
--- a/massa_execution_exports/mapping_grpc/fn.to_execution_query_result.html
+++ b/massa_execution_exports/mapping_grpc/fn.to_execution_query_result.html
@@ -1,3 +1,3 @@
-to_execution_query_result in massa_execution_exports::mapping_grpc - Rust fn to_execution_query_result(
+to_execution_query_result in massa_execution_exports::mapping_grpc - Rust fn to_execution_query_result(
value: ExecutionQueryResponseItem,
) -> ExecutionQueryResponseItem
\ No newline at end of file
diff --git a/massa_execution_exports/mapping_grpc/fn.to_execution_query_staker_info.html b/massa_execution_exports/mapping_grpc/fn.to_execution_query_staker_info.html
index 7c61b197dd..04e4f06d35 100644
--- a/massa_execution_exports/mapping_grpc/fn.to_execution_query_staker_info.html
+++ b/massa_execution_exports/mapping_grpc/fn.to_execution_query_staker_info.html
@@ -1,4 +1,4 @@
-to_execution_query_staker_info in massa_execution_exports::mapping_grpc - Rust fn to_execution_query_staker_info(
+to_execution_query_staker_info in massa_execution_exports::mapping_grpc - Rust fn to_execution_query_staker_info(
address: Address,
info: ExecutionQueryStakerInfo,
) -> ExecutionQueryStakerInfoEntry
\ No newline at end of file
diff --git a/massa_execution_exports/mapping_grpc/fn.to_querystate_filter.html b/massa_execution_exports/mapping_grpc/fn.to_querystate_filter.html
index 2a8c5134fc..d664dcd42b 100644
--- a/massa_execution_exports/mapping_grpc/fn.to_querystate_filter.html
+++ b/massa_execution_exports/mapping_grpc/fn.to_querystate_filter.html
@@ -1,4 +1,5 @@
-to_querystate_filter in massa_execution_exports::mapping_grpc - Rust pub fn to_querystate_filter(
+to_querystate_filter in massa_execution_exports::mapping_grpc - Rust pub fn to_querystate_filter(
query: ExecutionQueryRequestItem,
+ network_version: u32,
) -> Result<ExecutionQueryRequestItem, ModelsError>
Expand description
Convert a grpc_api::ScExecutionEventsRequest
to a ScExecutionEventsRequest
\ No newline at end of file
diff --git a/massa_execution_exports/mapping_grpc/index.html b/massa_execution_exports/mapping_grpc/index.html
index 971dbe1046..f2f30ed347 100644
--- a/massa_execution_exports/mapping_grpc/index.html
+++ b/massa_execution_exports/mapping_grpc/index.html
@@ -1,2 +1,2 @@
-massa_execution_exports::mapping_grpc - Rust Module massa_execution_exports::mapping_grpc
source · Expand description
mapping grpc
+massa_execution_exports::mapping_grpc - Rust Module massa_execution_exports::mapping_grpc
source · Expand description
mapping grpc
Functions§
- Convert a vector of
grpc_model::ScExecutionEventsFilter
to a EventFilter
- Converts a
ExecutionQueryResponse
to a grpc_api::ExecutionQueryResponse
- Convert a
grpc_api::ScExecutionEventsRequest
to a ScExecutionEventsRequest
\ No newline at end of file
diff --git a/massa_execution_exports/settings/index.html b/massa_execution_exports/settings/index.html
index 42aa5525d8..5f9ee163e4 100644
--- a/massa_execution_exports/settings/index.html
+++ b/massa_execution_exports/settings/index.html
@@ -1,2 +1,2 @@
-massa_execution_exports::settings - Rust Module massa_execution_exports::settings
source · Expand description
This module provides the structures used to provide configuration parameters to the Execution system
+massa_execution_exports::settings - Rust Module massa_execution_exports::settings
source · Expand description
This module provides the structures used to provide configuration parameters to the Execution system
Structs§
- Execution module configuration
- Storage cost constants
\ No newline at end of file
diff --git a/massa_execution_exports/settings/struct.ExecutionConfig.html b/massa_execution_exports/settings/struct.ExecutionConfig.html
index 403b79f16e..bbee8f6a95 100644
--- a/massa_execution_exports/settings/struct.ExecutionConfig.html
+++ b/massa_execution_exports/settings/struct.ExecutionConfig.html
@@ -1,4 +1,4 @@
-ExecutionConfig in massa_execution_exports::settings - Rust Struct massa_execution_exports::settings::ExecutionConfig
source · pub struct ExecutionConfig {Show 47 fields
+ExecutionConfig in massa_execution_exports::settings - Rust Struct massa_execution_exports::settings::ExecutionConfig
source · pub struct ExecutionConfig {Show 48 fields
pub readonly_queue_length: usize,
pub max_final_events: usize,
pub max_async_gas: u64,
@@ -33,7 +33,8 @@
pub denunciation_expire_periods: u64,
pub broadcast_enabled: bool,
pub broadcast_slot_execution_output_channel_capacity: usize,
- pub max_event_size: usize,
+ pub max_event_size_v0: usize,
+ pub max_event_size_v1: usize,
pub chain_id: u64,
pub broadcast_traces_enabled: bool,
pub broadcast_slot_execution_traces_channel_capacity: usize,
@@ -81,7 +82,8 @@
§denunciation_expire_periods: u64
Denunciation expire delta
§broadcast_enabled: bool
whether slot execution outputs broadcast is enabled
§broadcast_slot_execution_output_channel_capacity: usize
slot execution outputs channel capacity
-§max_event_size: usize
max size of event data, in bytes
+§max_event_size_v0: usize
max size of event data, in bytes
+§max_event_size_v1: usize
max size of event data, in bytes
§chain_id: u64
chain id
§broadcast_traces_enabled: bool
whether slot execution traces broadcast is enabled
§broadcast_slot_execution_traces_channel_capacity: usize
slot execution traces channel capacity
diff --git a/massa_execution_exports/struct.ExecutionConfig.html b/massa_execution_exports/struct.ExecutionConfig.html
index b999293894..27586e598a 100644
--- a/massa_execution_exports/struct.ExecutionConfig.html
+++ b/massa_execution_exports/struct.ExecutionConfig.html
@@ -1,4 +1,4 @@
-ExecutionConfig in massa_execution_exports - Rust Struct massa_execution_exports::ExecutionConfig
source · pub struct ExecutionConfig {Show 47 fields
+ExecutionConfig in massa_execution_exports - Rust Struct massa_execution_exports::ExecutionConfig
source · pub struct ExecutionConfig {Show 48 fields
pub readonly_queue_length: usize,
pub max_final_events: usize,
pub max_async_gas: u64,
@@ -33,7 +33,8 @@
pub denunciation_expire_periods: u64,
pub broadcast_enabled: bool,
pub broadcast_slot_execution_output_channel_capacity: usize,
- pub max_event_size: usize,
+ pub max_event_size_v0: usize,
+ pub max_event_size_v1: usize,
pub chain_id: u64,
pub broadcast_traces_enabled: bool,
pub broadcast_slot_execution_traces_channel_capacity: usize,
@@ -81,7 +82,8 @@
§denunciation_expire_periods: u64
Denunciation expire delta
§broadcast_enabled: bool
whether slot execution outputs broadcast is enabled
§broadcast_slot_execution_output_channel_capacity: usize
slot execution outputs channel capacity
-§max_event_size: usize
max size of event data, in bytes
+§max_event_size_v0: usize
max size of event data, in bytes
+§max_event_size_v1: usize
max size of event data, in bytes
§chain_id: u64
chain id
§broadcast_traces_enabled: bool
whether slot execution traces broadcast is enabled
§broadcast_slot_execution_traces_channel_capacity: usize
slot execution traces channel capacity
diff --git a/massa_execution_exports/struct.ExecutionOutput.html b/massa_execution_exports/struct.ExecutionOutput.html
index 1c23bcf81b..9656495d89 100644
--- a/massa_execution_exports/struct.ExecutionOutput.html
+++ b/massa_execution_exports/struct.ExecutionOutput.html
@@ -14,7 +14,7 @@
§deferred_credits_execution: Vec<(Address, Result<Amount, String>)>
Deferred credits execution (empty if execution-info feature is NOT enabled)
§cancel_async_message_execution: Vec<(Address, Result<Amount, String>)>
Cancel async message execution (empty if execution-info feature is NOT enabled)
§auto_sell_execution: Vec<(Address, Amount)>
Auto sell roll execution (empty if execution-info feature is NOT enabled)
-Trait Implementations§
source§impl Clone for ExecutionOutput
source§fn clone(&self) -> ExecutionOutput
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ExecutionOutput
source§impl From<ExecutionOutput> for ExecutionOutput
source§fn from(value: ExecutionOutput) -> Self
Converts to this type from the input type.source§impl Serialize for ExecutionOutput
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
+Trait Implementations§
source§impl Clone for ExecutionOutput
source§fn clone(&self) -> ExecutionOutput
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ExecutionOutput
source§impl From<ExecutionOutput> for ExecutionOutput
source§fn from(value: ExecutionOutput) -> Self
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for ExecutionOutput
§impl RefUnwindSafe for ExecutionOutput
§impl Send for ExecutionOutput
§impl Sync for ExecutionOutput
§impl Unpin for ExecutionOutput
§impl UnwindSafe for ExecutionOutput
Blanket Implementations§
§impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
diff --git a/massa_execution_exports/types/enum.SlotExecutionOutput.html b/massa_execution_exports/types/enum.SlotExecutionOutput.html
index 0c19513722..cf31e0c950 100644
--- a/massa_execution_exports/types/enum.SlotExecutionOutput.html
+++ b/massa_execution_exports/types/enum.SlotExecutionOutput.html
@@ -4,7 +4,7 @@
}Expand description
structure describing the output of the execution of a slot
Variants§
§ExecutedSlot(ExecutionOutput)
Executed slot output
§FinalizedSlot(ExecutionOutput)
Finalized slot output
-Trait Implementations§
source§impl Clone for SlotExecutionOutput
source§fn clone(&self) -> SlotExecutionOutput
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SlotExecutionOutput
source§impl From<SlotExecutionOutput> for SlotExecutionOutput
source§fn from(value: SlotExecutionOutput) -> Self
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for SlotExecutionOutput
§impl RefUnwindSafe for SlotExecutionOutput
§impl Send for SlotExecutionOutput
§impl Sync for SlotExecutionOutput
§impl Unpin for SlotExecutionOutput
§impl UnwindSafe for SlotExecutionOutput
Blanket Implementations§
Trait Implementations§
source§impl Clone for SlotExecutionOutput
source§fn clone(&self) -> SlotExecutionOutput
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SlotExecutionOutput
source§impl From<SlotExecutionOutput> for SlotExecutionOutput
source§fn from(value: SlotExecutionOutput) -> Self
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for SlotExecutionOutput
§impl RefUnwindSafe for SlotExecutionOutput
§impl Send for SlotExecutionOutput
§impl Sync for SlotExecutionOutput
§impl Unpin for SlotExecutionOutput
§impl UnwindSafe for SlotExecutionOutput
Blanket Implementations§
§impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.source§impl<T> Borrow<T> for Twhere
diff --git a/massa_execution_exports/types/struct.ExecutionOutput.html b/massa_execution_exports/types/struct.ExecutionOutput.html
index 8925ab3bed..fa93d627a5 100644
--- a/massa_execution_exports/types/struct.ExecutionOutput.html
+++ b/massa_execution_exports/types/struct.ExecutionOutput.html
@@ -14,7 +14,7 @@
§deferred_credits_execution: Vec<(Address, Result<Amount, String>)>
Deferred credits execution (empty if execution-info feature is NOT enabled)
§cancel_async_message_execution: Vec<(Address, Result<Amount, String>)>
Cancel async message execution (empty if execution-info feature is NOT enabled)
§auto_sell_execution: Vec<(Address, Amount)>
Auto sell roll execution (empty if execution-info feature is NOT enabled)
-Trait Implementations§
source§impl Clone for ExecutionOutput
source§fn clone(&self) -> ExecutionOutput
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ExecutionOutput
source§impl From<ExecutionOutput> for ExecutionOutput
source§fn from(value: ExecutionOutput) -> Self
Converts to this type from the input type.source§impl Serialize for ExecutionOutput
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
+Trait Implementations§
source§impl Clone for ExecutionOutput
source§fn clone(&self) -> ExecutionOutput
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ExecutionOutput
source§impl From<ExecutionOutput> for ExecutionOutput
source§fn from(value: ExecutionOutput) -> Self
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for ExecutionOutput
§impl RefUnwindSafe for ExecutionOutput
§impl Send for ExecutionOutput
§impl Sync for ExecutionOutput
§impl Unpin for ExecutionOutput
§impl UnwindSafe for ExecutionOutput
Blanket Implementations§
§impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
diff --git a/massa_execution_worker/active_history/index.html b/massa_execution_worker/active_history/index.html
index 69b23acac8..44bd5fa84c 100644
--- a/massa_execution_worker/active_history/index.html
+++ b/massa_execution_worker/active_history/index.html
@@ -1,2 +1,2 @@
-massa_execution_worker::active_history - Rust Module massa_execution_worker::active_history
source · Structs§
- History of the outputs of recently executed slots.
+
massa_execution_worker::active_history - Rust Module massa_execution_worker::active_history
source · Structs§
- History of the outputs of recently executed slots.
Slots should be consecutive, oldest at the beginning and latest at the back.
Enums§
- Result of a lazy, active history search
- Result of the search for a slot index in history
\ No newline at end of file
diff --git a/massa_execution_worker/active_history/struct.ActiveHistory.html b/massa_execution_worker/active_history/struct.ActiveHistory.html
index 0e058079a8..1e76a3308f 100644
--- a/massa_execution_worker/active_history/struct.ActiveHistory.html
+++ b/massa_execution_worker/active_history/struct.ActiveHistory.html
@@ -1,43 +1,44 @@
ActiveHistory in massa_execution_worker::active_history - Rust pub(crate) struct ActiveHistory(pub VecDeque<ExecutionOutput>);
Expand description
History of the outputs of recently executed slots.
Slots should be consecutive, oldest at the beginning and latest at the back.
-Tuple Fields§
§0: VecDeque<ExecutionOutput>
Implementations§
source§impl ActiveHistory
sourcepub fn truncate_from(&mut self, slot: &Slot, thread_count: u8)
Remove slot
and the slots after it from history
+Tuple Fields§
§0: VecDeque<ExecutionOutput>
Implementations§
source§impl ActiveHistory
sourcepub fn truncate_from(&mut self, slot: &Slot, thread_count: u8)
Remove slot
and the slots after it from history
sourcepub fn fetch_executed_op(&self, op_id: &OperationId) -> HistorySearchResult<()>
Lazily query (from end to beginning) the active list of executed ops to check if an op was executed.
Returns a HistorySearchResult
.
-sourcepub fn fetch_message(
+
sourcepub fn fetch_message(
&self,
message_id: &AsyncMessageId,
current_updates: AsyncMessageUpdate,
+ execution_compound_version: u32,
) -> HistorySearchResult<SetUpdateOrDelete<AsyncMessage, AsyncMessageUpdate>>
Lazily query (from end to beginning) a message based on its id
Returns a HistorySearchResult
.
-sourcepub fn fetch_executed_denunciation(
+
sourcepub fn fetch_executed_denunciation(
&self,
de_idx: &DenunciationIndex,
) -> HistorySearchResult<()>
Lazily query (from end to beginning) the active list of executed denunciations.
Returns a HistorySearchResult
.
-sourcepub fn fetch_balance(&self, addr: &Address) -> HistorySearchResult<Amount>
Lazily query (from end to beginning) the active balance of an address after a given index.
+sourcepub fn fetch_balance(&self, addr: &Address) -> HistorySearchResult<Amount>
Lazily query (from end to beginning) the active balance of an address after a given index.
Returns a HistorySearchResult
.
-sourcepub fn fetch_bytecode(&self, addr: &Address) -> HistorySearchResult<Bytecode>
Lazily query (from end to beginning) the active bytecode of an address after a given index.
+sourcepub fn fetch_bytecode(&self, addr: &Address) -> HistorySearchResult<Bytecode>
Lazily query (from end to beginning) the active bytecode of an address after a given index.
Returns a HistorySearchResult
.
-sourcepub fn fetch_active_history_data_entry(
+
sourcepub fn fetch_active_history_data_entry(
&self,
addr: &Address,
key: &[u8],
) -> HistorySearchResult<Vec<u8>>
Lazily query (from end to beginning) the active datastore entry of an address after a given index.
Returns a HistorySearchResult
.
-sourcepub fn fetch_roll_count(&self, addr: &Address) -> Option<u64>
Starting from the newest element in history, return the first existing roll change of addr
.
+sourcepub fn fetch_roll_count(&self, addr: &Address) -> Option<u64>
Starting from the newest element in history, return the first existing roll change of addr
.
§Arguments
addr
: address to fetch the rolls from
-sourcepub fn get_all_deferred_credits_until(&self, slot: &Slot) -> DeferredCredits
Gets all the deferred credits that will be credited until a given slot (included)
-sourcepub(crate) fn get_address_deferred_credit_for(
+
sourcepub fn get_all_deferred_credits_until(&self, slot: &Slot) -> DeferredCredits
Gets all the deferred credits that will be credited until a given slot (included)
+sourcepub(crate) fn get_address_deferred_credit_for(
&self,
addr: &Address,
slot: &Slot,
) -> Option<Amount>
Gets the deferred credits for a given address that will be credited at a given slot
-sourcepub fn get_execution_trail_hash(&self) -> HistorySearchResult<Hash>
Gets the execution trail hash
-sourcepub fn get_slot_index(&self, slot: &Slot, thread_count: u8) -> SlotIndexPosition
Gets the index of a slot in history
-sourcepub fn find_cycle_indices(
+
sourcepub fn get_execution_trail_hash(&self) -> HistorySearchResult<Hash>
Gets the execution trail hash
+sourcepub fn get_slot_index(&self, slot: &Slot, thread_count: u8) -> SlotIndexPosition
Gets the index of a slot in history
+sourcepub fn find_cycle_indices(
&self,
cycle: u64,
periods_per_cycle: u64,
@@ -50,7 +51,7 @@ §Return va
- a boolean indicating that the cycle overflows before the beginning of history
- a boolean indicating that the cycle overflows after the end of history
-
sourcepub fn get_ops_exec_status(&self, batch: &[OperationId]) -> Vec<Option<bool>>
Get the execution statuses of a set of operations.
+
sourcepub fn get_ops_exec_status(&self, batch: &[OperationId]) -> Vec<Option<bool>>
Get the execution statuses of a set of operations.
Returns a list where each element is None if no execution was found for that op,
or a boolean indicating whether the execution was successful (true) or had an error (false).
Trait Implementations§
source§impl Default for ActiveHistory
source§fn default() -> ActiveHistory
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ActiveHistory
§impl RefUnwindSafe for ActiveHistory
§impl Send for ActiveHistory
§impl Sync for ActiveHistory
§impl Unpin for ActiveHistory
§impl UnwindSafe for ActiveHistory
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/massa_execution_worker/context/fn.generate_execution_trail_hash.html b/massa_execution_worker/context/fn.generate_execution_trail_hash.html
index 9d8f3fd2c7..cac9f70365 100644
--- a/massa_execution_worker/context/fn.generate_execution_trail_hash.html
+++ b/massa_execution_worker/context/fn.generate_execution_trail_hash.html
@@ -1,4 +1,4 @@
-generate_execution_trail_hash in massa_execution_worker::context - Rust fn generate_execution_trail_hash(
+generate_execution_trail_hash in massa_execution_worker::context - Rust fn generate_execution_trail_hash(
previous_execution_trail_hash: &Hash,
slot: &Slot,
opt_block_id: Option<&BlockId>,
diff --git a/massa_execution_worker/context/fn.init_prng.html b/massa_execution_worker/context/fn.init_prng.html
index d25afaf3e1..1e1254e8ef 100644
--- a/massa_execution_worker/context/fn.init_prng.html
+++ b/massa_execution_worker/context/fn.init_prng.html
@@ -1,2 +1,2 @@
-init_prng in massa_execution_worker::context - Rust Function massa_execution_worker::context::init_prng
source · fn init_prng(execution_trail_hash: &Hash) -> Xoshiro256PlusPlus
Expand description
Initializes and seeds the PRNG with the given execution trail hash.
+init_prng in massa_execution_worker::context - Rust Function massa_execution_worker::context::init_prng
source · fn init_prng(execution_trail_hash: &Hash) -> Xoshiro256PlusPlus
Expand description
Initializes and seeds the PRNG with the given execution trail hash.
\ No newline at end of file
diff --git a/massa_execution_worker/context/index.html b/massa_execution_worker/context/index.html
index 49094b1afb..02a1cba23a 100644
--- a/massa_execution_worker/context/index.html
+++ b/massa_execution_worker/context/index.html
@@ -1,4 +1,4 @@
-massa_execution_worker::context - Rust Module massa_execution_worker::context
source · Expand description
This module represents the context in which the VM executes bytecode.
+
massa_execution_worker::context - Rust Module massa_execution_worker::context
source · Expand description
This module represents the context in which the VM executes bytecode.
It provides information such as the current call stack.
It also maintains a “speculative” ledger state which is a virtual ledger
as seen after applying everything that happened so far in the context.
diff --git a/massa_execution_worker/context/struct.ExecutionContext.html b/massa_execution_worker/context/struct.ExecutionContext.html
index 96a4c7c437..10d3a3ea09 100644
--- a/massa_execution_worker/context/struct.ExecutionContext.html
+++ b/massa_execution_worker/context/struct.ExecutionContext.html
@@ -1,4 +1,4 @@
-
ExecutionContext in massa_execution_worker::context - Rust Struct massa_execution_worker::context::ExecutionContext
source · pub struct ExecutionContext {Show 24 fields
+ExecutionContext in massa_execution_worker::context - Rust Struct massa_execution_worker::context::ExecutionContext
source · pub struct ExecutionContext {Show 25 fields
config: ExecutionConfig,
speculative_ledger: SpeculativeLedger,
speculative_async_pool: SpeculativeAsyncPool,
@@ -22,6 +22,7 @@
pub module_cache: Arc<RwLock<ModuleCache>>,
pub address_factory: AddressFactory,
pub gas_remaining_before_subexecution: Option<u64>,
+ pub execution_component_version: u32,
pub recursion_counter: u16,
}
Expand description
An execution context that needs to be initialized before executing bytecode,
passed to the VM to interact with during bytecode execution (through ABIs),
@@ -53,8 +54,9 @@
§address_factory: AddressFactory
Address factory
§gas_remaining_before_subexecution: Option<u64>
The gas remaining before the last subexecution.
so excluding the gas used by the last sc call.
+§execution_component_version: u32
The version of the execution component
§recursion_counter: u16
recursion counter, incremented for each new nested call
-Implementations§
source§impl ExecutionContext
Implementations§
source§impl ExecutionContext
sourcepub(crate) fn new(
config: ExecutionConfig,
final_state: Arc<RwLock<dyn FinalStateController>>,
active_history: Arc<RwLock<ActiveHistory>>,
@@ -72,9 +74,9 @@ §arguments
Note that this will be used only for reading, never for writing
§returns
A new (empty) ExecutionContext
instance
-
sourcepub(crate) fn get_snapshot(&self) -> ExecutionContextSnapshot
Returns a snapshot containing the clone of the current execution state.
+
sourcepub(crate) fn get_snapshot(&self) -> ExecutionContextSnapshot
Returns a snapshot containing the clone of the current execution state.
Note that the snapshot does not include slot-level information such as the slot number or block ID.
-sourcepub fn reset_to_snapshot(
+
sourcepub fn reset_to_snapshot(
&mut self,
snapshot: ExecutionContextSnapshot,
error: ExecutionError,
@@ -86,7 +88,7 @@ §Arguments
snapshot
: a saved snapshot to be restored
error
: an execution error to emit as an event conserved after snapshot reset.
-
sourcepub(crate) fn take_async_batch(
+
sourcepub(crate) fn take_async_batch_v0(
&mut self,
max_gas: u64,
async_msg_cst_gas_cost: u64,
-) -> Vec<(AsyncMessageId, AsyncMessage)>
This function takes a batch of asynchronous operations to execute, removing them from the speculative pool.
+) -> Vec<(Option<Bytecode>, AsyncMessage)>This function takes a batch of asynchronous operations to execute, removing them from the speculative pool.
§Arguments
max_gas
: maximal amount of asynchronous gas available
@@ -119,7 +121,11 @@ §Returns
Option<Bytecode>
is the bytecode to execute (or None
if not found)
AsyncMessage
is the asynchronous message to execute
-sourcepub(crate) fn active_slot(
+
sourcepub(crate) fn take_async_batch_v1(
+ &mut self,
+ max_gas: u64,
+ async_msg_cst_gas_cost: u64,
+) -> Vec<(AsyncMessageId, AsyncMessage)>
sourcepub fn get_current_address(&self) -> Result<Address, ExecutionError>
Gets the address at the top of the call stack, if any
-sourcepub fn get_current_owned_addresses(
+
sourcepub fn get_current_address(&self) -> Result<Address, ExecutionError>
Gets the address at the top of the call stack, if any
+sourcepub fn get_current_owned_addresses(
&self,
) -> Result<Vec<Address>, ExecutionError>
Gets the current list of owned addresses (top of the stack)
Ordering is conserved for determinism
-sourcepub fn get_current_call_coins(&self) -> Result<Amount, ExecutionError>
Gets the current call coins
-sourcepub fn get_call_stack(&self) -> Vec<Address>
Gets the addresses from the call stack (last = top of the stack)
-sourcepub fn has_write_rights_on(&self, addr: &Address) -> bool
Checks whether the context currently grants write access to a given address
-sourcepub fn create_new_sc_address(
+
sourcepub fn get_current_call_coins(&self) -> Result<Amount, ExecutionError>
Gets the current call coins
+sourcepub fn get_call_stack(&self) -> Vec<Address>
Gets the addresses from the call stack (last = top of the stack)
+sourcepub fn has_write_rights_on(&self, addr: &Address) -> bool
Checks whether the context currently grants write access to a given address
+sourcepub fn create_new_sc_address(
&mut self,
bytecode: Bytecode,
) -> Result<Address, ExecutionError>
Creates a new smart contract address with initial bytecode, and returns this address
-sourcepub fn get_bytecode(&self, address: &Address) -> Option<Bytecode>
gets the bytecode of an address if it exists in the speculative ledger, or returns None
-sourcepub fn get_bytecode(&self, address: &Address) -> Option<Bytecode>
gets the bytecode of an address if it exists in the speculative ledger, or returns None
+sourcepub fn get_keys(
&self,
address: &Address,
prefix: &[u8],
) -> Option<BTreeSet<Vec<u8>>>
gets the datastore keys of an address if it exists in the speculative ledger, or returns None
-sourcepub fn get_data_entry(&self, address: &Address, key: &[u8]) -> Option<Vec<u8>>
gets the data from a datastore entry of an address if it exists in the speculative ledger, or returns None
-sourcepub fn has_data_entry(&self, address: &Address, key: &[u8]) -> bool
checks if a datastore entry exists in the speculative ledger
-sourcepub fn get_balance(&self, address: &Address) -> Option<Amount>
gets the effective balance of an address
-sourcepub fn set_data_entry(
+
sourcepub fn get_data_entry(&self, address: &Address, key: &[u8]) -> Option<Vec<u8>>
gets the data from a datastore entry of an address if it exists in the speculative ledger, or returns None
+sourcepub fn has_data_entry(&self, address: &Address, key: &[u8]) -> bool
checks if a datastore entry exists in the speculative ledger
+sourcepub fn get_balance(&self, address: &Address) -> Option<Amount>
gets the effective balance of an address
+
sourcepub fn append_data_entry(
+
sourcepub fn delete_data_entry(
+
sourcepub fn delete_data_entry(
&mut self,
address: &Address,
key: &[u8],
@@ -197,7 +203,7 @@ §Arguments
address: the address of the ledger entry
key: the datastore key
-
sourcepub fn transfer_coins(
+
sourcepub fn push_new_message(&mut self, msg: AsyncMessage)
Add a new asynchronous message to speculative pool
+sourcepub fn push_new_message(&mut self, msg: AsyncMessage)
sourcepub fn cancel_async_message(
+
sourcepub fn cancel_async_message(
&mut self,
msg: &AsyncMessage,
) -> Option<(Address, Result<Amount, String>)>
Cancels an asynchronous message, reimbursing msg.coins
to the sender
@@ -226,14 +232,14 @@ §Arguments
msg
: the asynchronous message to cancel
-
sourcepub fn add_rolls(&mut self, buyer_addr: &Address, roll_count: u64)
Add roll_count
rolls to the buyer address.
+
sourcepub fn add_rolls(&mut self, buyer_addr: &Address, roll_count: u64)
Add roll_count
rolls to the buyer address.
Validity checks must be performed outside of this function.
§Arguments
buyer_addr
: address that will receive the rolls
roll_count
: number of rolls it will receive
-sourcepub fn try_sell_rolls(
+
sourcepub fn try_sell_rolls(
&mut self,
seller_addr: &Address,
roll_count: u64,
@@ -243,7 +249,7 @@ §Arguments
seller_addr
: address to sell the rolls from
roll_count
: number of rolls to sell
-
sourcepub fn try_slash_rolls(
+
sourcepub fn try_slash_rolls(
&mut self,
denounced_addr: &Address,
roll_count: u64,
@@ -254,7 +260,15 @@ §Arguments
denounced_addr
: address to sell the rolls from
roll_count
: number of rolls to slash
-
sourcepub fn update_production_stats(
+
sourcepub fn try_slash_rolls_v0(
+ &mut self,
+ denounced_addr: &Address,
+ roll_count: u64,
+) -> Result<Amount, ExecutionError>
sourcepub fn try_slash_rolls_v1(
+ &mut self,
+ denounced_addr: &Address,
+ roll_count: u64,
+) -> Result<Amount, ExecutionError>
sourcepub fn update_production_stats(
&mut self,
creator: &Address,
slot: Slot,
@@ -266,7 +280,7 @@ §Arguments
slot
: current slot
block_id
: id of the block (if some)
-
sourcepub fn execute_deferred_credits(
+
sourcepub fn execute_deferred_credits(
&mut self,
slot: &Slot,
) -> Vec<(Address, Result<Amount, String>)>
Execute the deferred credits of slot
.
@@ -274,7 +288,13 @@ §Arguments
slot
: associated slot of the deferred credits to be executed
-
sourcepub fn settle_slot(
+
sourcefn settle_slot_v0(
+ &mut self,
+ block_info: Option<ExecutedBlockInfo>,
+) -> ExecutionOutput
sourcefn settle_slot_with_fixed_ledger_change_handling(
+ &mut self,
+ block_info: Option<ExecutedBlockInfo>,
+) -> ExecutionOutput
sourcepub fn settle_slot(
&mut self,
block_info: Option<ExecutedBlockInfo>,
) -> ExecutionOutput
Finishes a slot and generates the execution output.
@@ -283,7 +303,7 @@
§Arguments
resetting some context fields in the process.
This is used to get the output of an execution before discarding the context.
Note that we are not taking self by value to consume it because the context is shared.
-sourcepub fn set_bytecode(
+
sourcepub fn set_bytecode(
&mut self,
address: &Address,
bytecode: Bytecode,
@@ -294,15 +314,15 @@ §Arguments
address: the address of the ledger entry
data: the bytecode to set
-
sourcepub fn event_create(&self, data: String, is_error: bool) -> SCOutputEvent
Creates a new event but does not emit it.
+
sourcepub fn event_create(&self, data: String, is_error: bool) -> SCOutputEvent
Creates a new event but does not emit it.
Note that this does not increment the context event counter.
§Arguments:
data: the string data that is the payload of the event
-sourcepub fn event_emit(&mut self, event: SCOutputEvent)
Emits a previously created event.
+
sourcepub fn event_emit(&mut self, event: SCOutputEvent)
Emits a previously created event.
Overrides the event’s index with the current event counter value, and increments the event counter.
-sourcepub fn is_op_executed(&self, op_id: &OperationId) -> bool
Check if an operation was previously executed (to prevent reuse)
-sourcepub fn is_denunciation_executed(&self, de_idx: &DenunciationIndex) -> bool
Check if a denunciation was previously executed (to prevent reuse)
-sourcepub fn insert_executed_op(
+
sourcepub fn is_op_executed(&self, op_id: &OperationId) -> bool
Check if an operation was previously executed (to prevent reuse)
+sourcepub fn is_denunciation_executed(&self, de_idx: &DenunciationIndex) -> bool
Check if a denunciation was previously executed (to prevent reuse)
+sourcepub fn insert_executed_op(
&mut self,
op_id: OperationId,
op_exec_status: bool,
@@ -315,63 +335,64 @@ §Arguments
op_exec_status
: the status of the execution of the operation (true: success, false: failed).
op_valid_until_slot
: slot until which the operation remains valid (included)
-
sourcepub fn insert_executed_denunciation(
+
sourcepub fn insert_executed_denunciation(
&mut self,
denunciation_idx: &DenunciationIndex,
)
Insert a executed denunciation.
-sourcepub fn get_address_cycle_infos(
+
sourcepub fn get_address_cycle_infos(
&self,
address: &Address,
periods_per_cycle: u64,
) -> Vec<ExecutionAddressCycleInfo>
gets the cycle information for an address
-
sourcepub fn get_address_future_deferred_credits(
&self,
address: &Address,
thread_count: u8,
max_slot: Bound<Slot>,
) -> BTreeMap<Slot, Amount>
Get future deferred credits of an address
With optionally a limit slot (excluded)
-sourcepub fn check_target_sc_address(
+
sourcepub fn check_target_sc_address(
&self,
target_sc_address: Address,
) -> Result<(), ExecutionError>
in case of
async_msg, call OP, call SC to SC, read only call
check if the given address is a smart contract address and if it exists
returns an error instead
-sourcepub fn deferred_calls_advance_slot(
+
sourcepub fn deferred_calls_advance_slot(
&mut self,
current_slot: Slot,
-) -> DeferredSlotCalls
sourcepub fn deferred_calls_compute_call_fee(
+) -> DeferredSlotCalls
sourcepub fn deferred_calls_compute_call_fee(
&self,
target_slot: Slot,
max_gas_request: u64,
current_slot: Slot,
params_size: u64,
) -> Result<Amount, ExecutionError>
Get the price it would cost to reserve “gas” with params at target slot “slot”.
-sourcepub fn deferred_call_register(
+
sourcepub fn deferred_call_register(
&mut self,
call: DeferredCall,
-) -> Result<DeferredCallId, ExecutionError>
sourcepub fn deferred_call_exists(&self, call_id: &DeferredCallId) -> bool
Check if a deferred call exists
+) -> Result<DeferredCallId, ExecutionError>sourcepub fn deferred_call_exists(&self, call_id: &DeferredCallId) -> bool
Check if a deferred call exists
If it exists, check if it has been cancelled
If it has been cancelled, return false
-sourcepub fn get_deferred_call(
+
sourcepub fn get_deferred_call(
&self,
call_id: &DeferredCallId,
) -> Option<DeferredCall>
Get a deferred call by its id
-sourcepub fn deferred_call_fail_exec(
+
sourcepub fn deferred_call_fail_exec(
&mut self,
id: &DeferredCallId,
call: &DeferredCall,
) -> Option<(Address, Result<Amount, String>)>
when a deferred call execution fails we need to refund the coins to the caller
-sourcepub fn deferred_call_cancel(
+
sourcepub fn deferred_call_cancel(
&mut self,
call_id: &DeferredCallId,
caller_address: Address,
) -> Result<(), ExecutionError>
when a deferred call is cancelled we need to refund the coins to the caller
-sourcepub fn get_deferred_calls_by_slot(
+
sourcepub fn get_deferred_calls_by_slot(
&self,
slot: Slot,
) -> BTreeMap<DeferredCallId, DeferredCall>
find the deferred calls for a given slot
+sourcepub fn get_condom_limits(&self) -> CondomLimits
Get the condom limits to pass to the VM depending on the current execution component version
Auto Trait Implementations§
§impl Freeze for ExecutionContext
§impl !RefUnwindSafe for ExecutionContext
§impl Send for ExecutionContext
§impl Sync for ExecutionContext
§impl Unpin for ExecutionContext
§impl !UnwindSafe for ExecutionContext
Blanket Implementations§
§impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
diff --git a/massa_execution_worker/context/struct.ExecutionContextSnapshot.html b/massa_execution_worker/context/struct.ExecutionContextSnapshot.html
index db5e690b1d..e01cb9dd4e 100644
--- a/massa_execution_worker/context/struct.ExecutionContextSnapshot.html
+++ b/massa_execution_worker/context/struct.ExecutionContextSnapshot.html
@@ -1,4 +1,4 @@
-ExecutionContextSnapshot in massa_execution_worker::context - Rust pub struct ExecutionContextSnapshot {Show 15 fields
+ExecutionContextSnapshot in massa_execution_worker::context - Rust pub struct ExecutionContextSnapshot {Show 15 fields
pub ledger_changes: LedgerChanges,
pub async_pool_changes: AsyncPoolChanges,
pub deferred_calls_changes: DeferredCallRegistryChanges,
diff --git a/massa_execution_worker/execution/index.html b/massa_execution_worker/execution/index.html
index 0d33faad8c..72196ec3f9 100644
--- a/massa_execution_worker/execution/index.html
+++ b/massa_execution_worker/execution/index.html
@@ -1,4 +1,4 @@
-massa_execution_worker::execution - Rust Module massa_execution_worker::execution
source · Expand description
This module deals with executing final and active slots, as well as read-only requests.
+
massa_execution_worker::execution - Rust Module massa_execution_worker::execution
source · Expand description
This module deals with executing final and active slots, as well as read-only requests.
It also keeps a history of executed slots, thus holding the speculative state of the ledger.
Execution usually happens in the following way:
diff --git a/massa_execution_worker/execution/struct.ExecutionState.html b/massa_execution_worker/execution/struct.ExecutionState.html
index 3174e8a505..5fd84fab29 100644
--- a/massa_execution_worker/execution/struct.ExecutionState.html
+++ b/massa_execution_worker/execution/struct.ExecutionState.html
@@ -17,7 +17,7 @@
}Expand description
Structure holding consistent speculative and final execution states,
and allowing access to them.
Fields§
§config: ExecutionConfig
§active_history: Arc<RwLock<ActiveHistory>>
§active_cursor: Slot
§final_cursor: Slot
§final_events_cache: Box<dyn EventCacheController>
§final_state: Arc<RwLock<dyn FinalStateController>>
§execution_context: Arc<Mutex<ExecutionContext>>
§execution_interface: Box<dyn Interface>
§stats_counter: ExecutionStatsCounter
§module_cache: Arc<RwLock<ModuleCache>>
§mip_store: MipStore
§wallet: Arc<RwLock<Wallet>>
§selector: Box<dyn SelectorController>
§channels: ExecutionChannels
§massa_metrics: MassaMetrics
prometheus metrics
-Implementations§
sourcefn prepare_operation_for_execution(
&self,
operation: &SecureShareOperation,
sender_addr: Address,
@@ -62,7 +62,7 @@ §Arguments
operation
: operation to be schedule
sender_addr
: sender address for the operation (for fee transfer)
-
sourcepub fn execute_operation(
+
sourcepub fn execute_operation(
&self,
operation: &SecureShareOperation,
block_slot: Slot,
@@ -77,7 +77,7 @@ §Arguments
remaining_block_gas
: mutable reference towards the remaining gas in the block
block_credits
: mutable reference towards the total block reward/fee credits
-
sourcefn execute_denunciation(
&self,
denunciation: &Denunciation,
block_slot: &Slot,
@@ -88,7 +88,7 @@ §Arguments
denunciation
: denunciation to process
block_credits
: mutable reference towards the total block reward/fee credits
-
sourcepub fn execute_roll_sell_op(
+
sourcepub fn execute_roll_sell_op(
&self,
operation: &OperationType,
seller_addr: Address,
@@ -99,7 +99,7 @@ §Arguments
operation
: the WrappedOperation
to process, must be an RollSell
sender_addr
: address of the sender
-
sourcepub fn execute_roll_buy_op(
+
sourcepub fn execute_roll_buy_op(
&self,
operation: &OperationType,
buyer_addr: Address,
@@ -110,7 +110,7 @@ §Arguments
operation
: the WrappedOperation
to process, must be an RollBuy
buyer_addr
: address of the buyer
-
sourcepub fn execute_transaction_op(
+
sourcepub fn execute_transaction_op(
&self,
operation: &OperationType,
sender_addr: Address,
@@ -122,7 +122,7 @@ §Arguments
operation_id
: ID of the operation
sender_addr
: address of the sender
-
sourcepub fn execute_executesc_op(
+