Skip to content

Commit

Permalink
feat(runtime): Track block gas allowance in builtins (#4345)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekovalev authored Dec 26, 2024
1 parent 0dc0a7a commit 1262241
Show file tree
Hide file tree
Showing 18 changed files with 572 additions and 383 deletions.
4 changes: 2 additions & 2 deletions core-processor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ pub use precharge::{
SuccessfulDispatchResultKind,
};
pub use processing::{
process, process_execution_error, process_non_executable, process_reinstrumentation_error,
process_success,
process, process_allowance_exceed, process_execution_error, process_non_executable,
process_reinstrumentation_error, process_success,
};

/// Informational functions for core-processor and executor.
Expand Down
1 change: 1 addition & 0 deletions core-processor/src/processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ pub fn process_success(
journal
}

/// Helper function for journal creation if the block gas allowance has been exceeded.
pub fn process_allowance_exceed(
dispatch: IncomingDispatch,
program_id: ProgramId,
Expand Down
Loading

0 comments on commit 1262241

Please sign in to comment.