pub struct MessageProcessor {}
Implementations§
source§impl MessageProcessor
impl MessageProcessor
sourcepub fn process_message(
builtin_programs: &[BuiltinProgram],
message: &SanitizedMessage,
program_indices: &[Vec<usize>],
transaction_context: &mut TransactionContext,
rent: Rent,
log_collector: Option<Rc<RefCell<LogCollector>>>,
executors: Rc<RefCell<Executors>>,
feature_set: Arc<FeatureSet>,
compute_budget: ComputeBudget,
timings: &mut ExecuteTimings,
sysvar_cache: &SysvarCache,
blockhash: Hash,
lamports_per_signature: u64,
current_accounts_data_len: u64,
accumulated_consumed_units: &mut u64
) -> Result<ProcessedMessageInfo, TransactionError>
pub fn process_message( builtin_programs: &[BuiltinProgram], message: &SanitizedMessage, program_indices: &[Vec<usize>], transaction_context: &mut TransactionContext, rent: Rent, log_collector: Option<Rc<RefCell<LogCollector>>>, executors: Rc<RefCell<Executors>>, feature_set: Arc<FeatureSet>, compute_budget: ComputeBudget, timings: &mut ExecuteTimings, sysvar_cache: &SysvarCache, blockhash: Hash, lamports_per_signature: u64, current_accounts_data_len: u64, accumulated_consumed_units: &mut u64 ) -> Result<ProcessedMessageInfo, TransactionError>
Process a message. This method calls each instruction in the message over the set of loaded accounts. For each instruction it calls the program entrypoint method and verifies that the result of the call does not violate the bank’s accounting rules. The accounts are committed back to the bank only if every instruction succeeds.
Trait Implementations§
source§impl AbiExample for MessageProcessor
impl AbiExample for MessageProcessor
source§impl Clone for MessageProcessor
impl Clone for MessageProcessor
source§fn clone(&self) -> MessageProcessor
fn clone(&self) -> MessageProcessor
Returns a copy 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 MessageProcessor
impl Debug for MessageProcessor
source§impl Default for MessageProcessor
impl Default for MessageProcessor
source§fn default() -> MessageProcessor
fn default() -> MessageProcessor
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MessageProcessor
impl<'de> Deserialize<'de> for MessageProcessor
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