Separate bootstrap leader's stake lamports from its identity lamports (#4510)

* Revert "Prevent run.sh from running beyond the first epoch under normal use (#4498)"

This reverts commit d343c409e6.

* Separate bootstrap leader's stake lamports from its identity lamports
This commit is contained in:
Michael Vines
2019-05-31 19:58:52 -07:00
committed by GitHub
parent bc1368ba3e
commit ec5cca41bc
5 changed files with 20 additions and 14 deletions

View File

@ -20,6 +20,7 @@ pub fn create_genesis_block_with_leader(
bootstrap_leader_pubkey: &Pubkey,
bootstrap_leader_stake_lamports: u64,
) -> GenesisBlockInfo {
let bootstrap_leader_lamports = 42; // TODO: pass this in as an argument?
let mint_keypair = Keypair::new();
let voting_keypair = Keypair::new();
let staking_keypair = Keypair::new();
@ -45,7 +46,7 @@ pub fn create_genesis_block_with_leader(
// airdrops at some point to cover fees...
(
*bootstrap_leader_pubkey,
Account::new(42, 0, &system_program::id()),
Account::new(bootstrap_leader_lamports, 0, &system_program::id()),
),
// where votes go to
(voting_keypair.pubkey(), vote_account),