Reduce bootstrap leader stake (#3218)

This commit is contained in:
Sagar Dhawan
2019-03-11 13:29:44 -07:00
committed by GitHub
parent 86e2f35ac4
commit 78bb96ee51
4 changed files with 11 additions and 15 deletions

View File

@ -8,14 +8,10 @@ use std::error;
/**
* Bootstrap leader gets two lamports:
* - one lamport to create an instance of the vote_program with
* - one lamport for the transaction fee
* - one second lamport to keep the node identity public key valid
* - one lamport to use as stake
* - one lamport to keep the node identity public key valid
*/
//pub const BOOTSTRAP_LEADER_LAMPORTS: u64 = 3;
// TODO: Until https://github.com/solana-labs/solana/issues/2355 is resolved the bootstrap leader
// needs N lamports as its vote account gets re-created on every node restart, costing it lamports
pub const BOOTSTRAP_LEADER_LAMPORTS: u64 = 1_000_000;
pub const BOOTSTRAP_LEADER_LAMPORTS: u64 = 2;
fn main() -> Result<(), Box<dyn error::Error>> {
let matches = App::new("solana-genesis")