Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename schedule operation function #3752

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions massa-execution-worker/src/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl ExecutionState {
/// * `operation`: operation to be schedule
/// * `sender_addr`: sender address for the operation (for fee transfer)

fn schedule_operation_for_execution(
fn prepare_operation_for_execution(
&self,
operation: &SecureShareOperation,
sender_addr: Address,
Expand Down Expand Up @@ -325,7 +325,7 @@ impl ExecutionState {
// Add fee from operation.
let new_block_credits = block_credits.saturating_add(operation.content.fee);

let context_snapshot = self.schedule_operation_for_execution(operation, sender_addr)?;
let context_snapshot = self.prepare_operation_for_execution(operation, sender_addr)?;

// update block gas
*remaining_block_gas = new_remaining_block_gas;
Expand Down