2019-05-07 22:22:43 -07:00
|
|
|
pub use solana_runtime::genesis_utils::{
|
2019-05-22 20:39:00 -07:00
|
|
|
create_genesis_block_with_leader, GenesisBlockInfo, BOOTSTRAP_LEADER_LAMPORTS,
|
2019-05-07 22:22:43 -07:00
|
|
|
};
|
2019-05-07 11:16:22 -07:00
|
|
|
use solana_sdk::pubkey::Pubkey;
|
|
|
|
|
2019-05-07 22:22:43 -07:00
|
|
|
// same as genesis_block::create_genesis_block, but with bootstrap_leader staking logic
|
|
|
|
// for the core crate tests
|
2019-05-22 20:39:00 -07:00
|
|
|
pub fn create_genesis_block(mint_lamports: u64) -> GenesisBlockInfo {
|
|
|
|
create_genesis_block_with_leader(
|
2019-05-07 11:16:22 -07:00
|
|
|
mint_lamports,
|
|
|
|
&Pubkey::new_rand(),
|
|
|
|
BOOTSTRAP_LEADER_LAMPORTS,
|
2019-05-22 20:39:00 -07:00
|
|
|
)
|
2019-05-07 11:16:22 -07:00
|
|
|
}
|