Rename tokens to lamports in core/

This commit is contained in:
Michael Vines
2019-03-05 16:58:52 -08:00
parent 53f09c44f3
commit f1d1852691
7 changed files with 18 additions and 19 deletions

View File

@@ -152,9 +152,9 @@ mod tests {
#[test]
fn test_bank_staked_nodes_at_epoch() {
let pubkey = Keypair::new().pubkey();
let bootstrap_tokens = 3;
let bootstrap_lamports = 3;
let (genesis_block, _) =
GenesisBlock::new_with_leader(bootstrap_tokens, pubkey, bootstrap_tokens);
GenesisBlock::new_with_leader(bootstrap_lamports, pubkey, bootstrap_lamports);
let bank = Bank::new(&genesis_block);
// Epoch doesn't exist
@@ -181,7 +181,7 @@ mod tests {
let bank_voter = Keypair::new();
// Give the validator some stake but don't setup a staking account
// Validator has no tokens staked, so they get filtered out. Only the bootstrap leader
// Validator has no lamports staked, so they get filtered out. Only the bootstrap leader
// created by the genesis block will get included
bank.transfer(1, &mint_keypair, validator.pubkey(), genesis_block.hash())
.unwrap();