Give the bootstrap leader one million tokens as a #2355 workaround

This commit is contained in:
Michael Vines 2019-01-09 09:20:23 -07:00
parent 73eca72f14
commit 4b5acc065a
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@ use std::path::Path;
* - one token for the transaction fee
* - one second token to keep the node identity public key valid
*/
pub const BOOTSTRAP_LEADER_TOKENS: u64 = 3;
//pub const BOOTSTRAP_LEADER_TOKENS: u64 = 3;
// TODO: Until https://github.com/solana-labs/solana/issues/2355 is resolved the bootstrap leader
// needs N tokens as its vote account gets re-created on every node restart, costing it tokens
pub const BOOTSTRAP_LEADER_TOKENS: u64 = 1_000_000;
fn main() -> Result<(), Box<dyn error::Error>> {
let matches = App::new("solana-genesis")