Misc token to lamport renaming

This commit is contained in:
Michael Vines
2019-03-05 17:18:25 -08:00
parent 3794048c91
commit 545feab6db
5 changed files with 40 additions and 40 deletions

View File

@ -29,18 +29,18 @@ fn create_and_fund_vote_account(
if node_balance < 1 {
return Err(Error::new(
ErrorKind::Other,
"insufficient tokens, one token required",
"insufficient lamports, one lamport required",
));
}
// Create the vote account if necessary
if client.poll_get_balance(&vote_account).unwrap_or(0) == 0 {
// Need at least two tokens as one token will be spent on a vote_account_new() transaction
// Need at least two lamports as one lamport will be spent on a vote_account_new() transaction
if node_balance < 2 {
error!("insufficient tokens, two tokens required");
error!("insufficient lamports, two lamports required");
return Err(Error::new(
ErrorKind::Other,
"insufficient tokens, two tokens required",
"insufficient lamports, two lamports required",
));
}
loop {