Revert to more consistent naming (#3114)
This commit is contained in:
@ -377,7 +377,7 @@ pub fn make_active_set_entries(
|
||||
let voting_keypair = VotingKeypair::new_local(active_keypair);
|
||||
let vote_account_id = voting_keypair.pubkey();
|
||||
|
||||
let new_vote_account_tx = VoteTransaction::fund_staking_account(
|
||||
let new_vote_account_tx = VoteTransaction::new_account(
|
||||
active_keypair,
|
||||
vote_account_id,
|
||||
*blockhash,
|
||||
|
@ -155,7 +155,7 @@ impl LocalCluster {
|
||||
) -> Result<()> {
|
||||
// Create the vote account if necessary
|
||||
if client.poll_get_balance(&vote_account).unwrap_or(0) == 0 {
|
||||
let mut transaction = VoteTransaction::fund_staking_account(
|
||||
let mut transaction = VoteTransaction::new_account(
|
||||
from_account,
|
||||
vote_account,
|
||||
client.get_recent_blockhash(),
|
||||
|
@ -606,13 +606,8 @@ mod tests {
|
||||
let vote_account_id = validator_vote_account_keypair.pubkey();
|
||||
let blockhash = client.get_recent_blockhash();
|
||||
|
||||
let transaction = VoteTransaction::fund_staking_account(
|
||||
&validator_keypair,
|
||||
vote_account_id,
|
||||
blockhash,
|
||||
1,
|
||||
1,
|
||||
);
|
||||
let transaction =
|
||||
VoteTransaction::new_account(&validator_keypair, vote_account_id, blockhash, 1, 1);
|
||||
let signature = client.transfer_signed(&transaction).unwrap();
|
||||
client.poll_for_signature(&signature).unwrap();
|
||||
|
||||
|
@ -110,13 +110,8 @@ pub mod tests {
|
||||
num_tokens: u64,
|
||||
) {
|
||||
let blockhash = bank.last_blockhash();
|
||||
let tx = VoteTransaction::fund_staking_account(
|
||||
from_keypair,
|
||||
*voting_pubkey,
|
||||
blockhash,
|
||||
num_tokens,
|
||||
0,
|
||||
);
|
||||
let tx =
|
||||
VoteTransaction::new_account(from_keypair, *voting_pubkey, blockhash, num_tokens, 0);
|
||||
bank.process_transaction(&tx).unwrap();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user