rework genesis (passive staking groundwork) (#4187)
* rework genesis * fixup
This commit is contained in:
@ -478,8 +478,8 @@ impl RpcSol for RpcSolImpl {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::contact_info::ContactInfo;
|
||||
use crate::genesis_utils::create_genesis_block;
|
||||
use jsonrpc_core::{MetaIoHandler, Response};
|
||||
use solana_sdk::genesis_block::GenesisBlock;
|
||||
use solana_sdk::hash::{hash, Hash};
|
||||
use solana_sdk::instruction::InstructionError;
|
||||
use solana_sdk::signature::{Keypair, KeypairUtil};
|
||||
@ -832,7 +832,7 @@ mod tests {
|
||||
}
|
||||
|
||||
fn new_bank_forks() -> (Arc<RwLock<BankForks>>, Keypair) {
|
||||
let (genesis_block, alice) = GenesisBlock::new(10_000);
|
||||
let (genesis_block, alice) = create_genesis_block(10_000);
|
||||
let bank = Bank::new(&genesis_block);
|
||||
(
|
||||
Arc::new(RwLock::new(BankForks::new(bank.slot(), bank))),
|
||||
|
Reference in New Issue
Block a user