sysvar trait (#6667)

* sysvar trait

* get the new guy in on it
This commit is contained in:
Rob Walker
2019-11-04 12:31:24 -08:00
committed by GitHub
parent b9b535c30f
commit efe260f12e
18 changed files with 183 additions and 303 deletions

View File

@ -39,7 +39,8 @@ use solana_sdk::{
pubkey::Pubkey,
signature::{Keypair, Signature},
slot_hashes::SlotHashes,
system_transaction, sysvar,
system_transaction,
sysvar::{self, Sysvar},
timing::duration_as_ns,
transaction::{Result, Transaction, TransactionError},
};
@ -447,7 +448,7 @@ impl Bank {
fn update_clock(&self) {
self.store_account(
&sysvar::clock::id(),
&sysvar::clock::new_account(
&sysvar::clock::create_account(
1,
self.slot,
get_segment_from_slot(self.slot, self.slots_per_segment),