Add sysvar support (#5838)

This commit is contained in:
Jack May
2019-09-09 10:55:35 -07:00
committed by GitHub
parent ee0c570d54
commit a317e9513f
17 changed files with 156 additions and 110 deletions

View File

@ -41,7 +41,7 @@ use solana_sdk::{
signature::{Keypair, Signature},
system_transaction,
sysvar::{
clock, fees, rewards,
clock, clock_account, fees, rewards,
slot_hashes::{self, SlotHashes},
stake_history,
},
@ -400,7 +400,7 @@ impl Bank {
fn update_clock(&self) {
self.store_account(
&clock::id(),
&clock::create_account(
&clock_account::new(
1,
self.slot,
get_segment_from_slot(self.slot, self.slots_per_segment),