Revert "Refactor: move compute budget runtime logic into solana-program-runtime (#22533)" (#22542)

This reverts commit b27976626a.
This commit is contained in:
Justin Starry
2022-01-17 17:43:17 +08:00
committed by GitHub
parent 901b2881fb
commit 2c38a9213f
7 changed files with 283 additions and 301 deletions

View File

@@ -2,7 +2,6 @@ use {
serde::{Deserialize, Serialize},
solana_measure::measure::Measure,
solana_program_runtime::{
compute_budget::ComputeBudget,
instruction_recorder::InstructionRecorder,
invoke_context::{BuiltinProgram, Executors, InvokeContext},
log_collector::LogCollector,
@@ -11,6 +10,7 @@ use {
},
solana_sdk::{
account::WritableAccount,
compute_budget::ComputeBudget,
feature_set::{prevent_calling_precompiles_as_programs, FeatureSet},
hash::Hash,
message::SanitizedMessage,