Rename tokens to lamports in sdk/
This commit is contained in:
@ -12,10 +12,10 @@ use std::error;
|
||||
* - 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_LAMPORTS: 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;
|
||||
pub const BOOTSTRAP_LEADER_LAMPORTS: u64 = 1_000_000;
|
||||
|
||||
fn main() -> Result<(), Box<dyn error::Error>> {
|
||||
let matches = App::new("solana-genesis")
|
||||
@ -70,7 +70,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
|
||||
let (mut genesis_block, _mint_keypair) = GenesisBlock::new_with_leader(
|
||||
num_tokens,
|
||||
bootstrap_leader_keypair.pubkey(),
|
||||
BOOTSTRAP_LEADER_TOKENS,
|
||||
BOOTSTRAP_LEADER_LAMPORTS,
|
||||
);
|
||||
genesis_block.mint_id = mint_keypair.pubkey();
|
||||
genesis_block.bootstrap_leader_vote_account_id = bootstrap_leader_vote_account_keypair.pubkey();
|
||||
|
Reference in New Issue
Block a user