Rename PublicKey type to Pubkey

Recognize pubkey as a noun meaning the public key of a keypair.
This commit is contained in:
Greg Fitzgerald
2018-08-09 09:13:57 -06:00
parent d7e4e57548
commit ad331e6d56
18 changed files with 156 additions and 156 deletions

View File

@ -15,7 +15,7 @@ use solana::mint::Mint;
use solana::ncp::Ncp;
use solana::result;
use solana::service::Service;
use solana::signature::{Keypair, KeypairUtil, PublicKey};
use solana::signature::{Keypair, KeypairUtil, Pubkey};
use solana::streamer::{default_window, WINDOW_SIZE};
use solana::thin_client::ThinClient;
use solana::timing::duration_as_s;
@ -751,7 +751,7 @@ fn mk_client(leader: &NodeInfo) -> ThinClient {
fn retry_get_balance(
client: &mut ThinClient,
bob_pubkey: &PublicKey,
bob_pubkey: &Pubkey,
expected: Option<i64>,
) -> Option<i64> {
const LAST: usize = 30;
@ -773,7 +773,7 @@ fn retry_get_balance(
fn send_tx_and_retry_get_balance(
leader: &NodeInfo,
alice: &Mint,
bob_pubkey: &PublicKey,
bob_pubkey: &Pubkey,
expected: Option<i64>,
) -> Option<i64> {
let mut client = mk_client(leader);
@ -789,7 +789,7 @@ fn send_tx_and_retry_get_balance(
fn retry_send_tx_and_retry_get_balance(
leader: &NodeInfo,
alice: &Mint,
bob_pubkey: &PublicKey,
bob_pubkey: &Pubkey,
expected: Option<i64>,
) -> Option<i64> {
let mut client = mk_client(leader);