committed by
GitHub
parent
1da1667920
commit
58ef02f02b
@ -354,7 +354,7 @@ fn test_offline_stake_delegation_and_deactivation() {
|
||||
config_validator.command = CliCommand::CreateStakeAccount {
|
||||
stake_account: 1,
|
||||
seed: None,
|
||||
staker: Some(config_offline.signers[0].pubkey().into()),
|
||||
staker: Some(config_offline.signers[0].pubkey()),
|
||||
withdrawer: None,
|
||||
lockup: Lockup::default(),
|
||||
amount: SpendAmount::Some(50_000),
|
||||
@ -1033,7 +1033,7 @@ fn test_stake_split() {
|
||||
check_balance(0, &rpc_client, &split_account.pubkey());
|
||||
config_offline.signers.push(&split_account);
|
||||
config_offline.command = CliCommand::SplitStake {
|
||||
stake_account_pubkey: stake_account_pubkey,
|
||||
stake_account_pubkey,
|
||||
stake_authority: 0,
|
||||
sign_only: true,
|
||||
blockhash_query: BlockhashQuery::None(nonce_hash),
|
||||
@ -1051,7 +1051,7 @@ fn test_stake_split() {
|
||||
let offline_presigner = sign_only.presigner_of(&offline_pubkey).unwrap();
|
||||
config.signers = vec![&offline_presigner, &split_account];
|
||||
config.command = CliCommand::SplitStake {
|
||||
stake_account_pubkey: stake_account_pubkey,
|
||||
stake_account_pubkey,
|
||||
stake_authority: 0,
|
||||
sign_only: false,
|
||||
blockhash_query: BlockhashQuery::FeeCalculator(
|
||||
@ -1165,7 +1165,7 @@ fn test_stake_set_lockup() {
|
||||
|
||||
// Online set lockup
|
||||
let lockup = LockupArgs {
|
||||
unix_timestamp: Some(1581534570),
|
||||
unix_timestamp: Some(1_581_534_570),
|
||||
epoch: Some(200),
|
||||
custodian: None,
|
||||
};
|
||||
@ -1199,7 +1199,7 @@ fn test_stake_set_lockup() {
|
||||
let online_custodian_pubkey = online_custodian.pubkey();
|
||||
|
||||
let lockup = LockupArgs {
|
||||
unix_timestamp: Some(1581534571),
|
||||
unix_timestamp: Some(1_581_534_571),
|
||||
epoch: Some(201),
|
||||
custodian: Some(online_custodian_pubkey),
|
||||
};
|
||||
@ -1216,7 +1216,7 @@ fn test_stake_set_lockup() {
|
||||
process_command(&config).unwrap();
|
||||
|
||||
let lockup = LockupArgs {
|
||||
unix_timestamp: Some(1581534572),
|
||||
unix_timestamp: Some(1_581_534_572),
|
||||
epoch: Some(202),
|
||||
custodian: None,
|
||||
};
|
||||
@ -1247,7 +1247,7 @@ fn test_stake_set_lockup() {
|
||||
|
||||
// Set custodian to offline pubkey
|
||||
let lockup = LockupArgs {
|
||||
unix_timestamp: Some(1581534573),
|
||||
unix_timestamp: Some(1_581_534_573),
|
||||
epoch: Some(203),
|
||||
custodian: Some(offline_pubkey),
|
||||
};
|
||||
@ -1287,7 +1287,7 @@ fn test_stake_set_lockup() {
|
||||
|
||||
// Nonced offline set lockup
|
||||
let lockup = LockupArgs {
|
||||
unix_timestamp: Some(1581534576),
|
||||
unix_timestamp: Some(1_581_534_576),
|
||||
epoch: Some(222),
|
||||
custodian: None,
|
||||
};
|
||||
@ -1524,8 +1524,8 @@ fn test_offline_nonced_create_stake_account_and_withdraw() {
|
||||
config.command = CliCommand::CreateStakeAccount {
|
||||
stake_account: 1,
|
||||
seed: Some(seed.to_string()),
|
||||
staker: Some(offline_pubkey.into()),
|
||||
withdrawer: Some(offline_pubkey.into()),
|
||||
staker: Some(offline_pubkey),
|
||||
withdrawer: Some(offline_pubkey),
|
||||
lockup: Lockup::default(),
|
||||
amount: SpendAmount::Some(50_000),
|
||||
sign_only: false,
|
||||
|
Reference in New Issue
Block a user