System program is now registered like all other native programs (#5526)

This commit is contained in:
Michael Vines
2019-08-15 21:07:00 -07:00
committed by GitHub
parent e73cbdda61
commit 8258532791
5 changed files with 10 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ use crate::poh_config::PohConfig;
use crate::pubkey::Pubkey;
use crate::rent::Rent;
use crate::signature::{Keypair, KeypairUtil};
use crate::system_program;
use crate::system_program::{self, solana_system_program};
use crate::timing::{DEFAULT_SLOTS_PER_EPOCH, DEFAULT_SLOTS_PER_SEGMENT, DEFAULT_TICKS_PER_SLOT};
use bincode::{deserialize, serialize};
use memmap::Mmap;
@@ -41,7 +41,7 @@ pub fn create_genesis_block(lamports: u64) -> (GenesisBlock, Keypair) {
mint_keypair.pubkey(),
Account::new(lamports, 0, &system_program::id()),
)],
&[],
&[solana_system_program()],
),
mint_keypair,
)