Add solana-program-runtime crate (#19438)

This commit is contained in:
Justin Starry
2021-08-26 17:30:36 -07:00
committed by GitHub
parent 02b050e0f5
commit 2d7f036afd
22 changed files with 1361 additions and 1213 deletions

View File

@@ -14,6 +14,7 @@ use crate::{
};
use log::{log_enabled, trace, Level::Trace};
use solana_measure::measure::Measure;
use solana_program_runtime::InstructionProcessor;
use solana_rbpf::{
aligned_memory::AlignedMemory,
ebpf::HOST_ALIGN,
@@ -22,7 +23,6 @@ use solana_rbpf::{
verifier::{self, VerifierError},
vm::{Config, EbpfVm, Executable, InstructionMeter},
};
use solana_runtime::message_processor::MessageProcessor;
use solana_sdk::{
account::{ReadableAccount, WritableAccount},
account_utils::State,
@@ -400,7 +400,7 @@ fn process_loader_upgradeable_instruction(
.iter()
.map(|seeds| Pubkey::create_program_address(*seeds, caller_program_id))
.collect::<Result<Vec<Pubkey>, solana_sdk::pubkey::PubkeyError>>()?;
MessageProcessor::native_invoke(
InstructionProcessor::native_invoke(
invoke_context,
instruction,
&[0, 1, 6],