Permit fee-payer/split-stake accounts to be the same when using --seed
This commit is contained in:
parent
f655372b08
commit
775ce3a03f
|
@ -1041,6 +1041,8 @@ pub fn process_split_stake(
|
|||
) -> ProcessResult {
|
||||
let split_stake_account = config.signers[split_stake_account];
|
||||
let fee_payer = config.signers[fee_payer];
|
||||
|
||||
if split_stake_account_seed.is_none() {
|
||||
check_unique_pubkeys(
|
||||
(&fee_payer.pubkey(), "fee-payer keypair".to_string()),
|
||||
(
|
||||
|
@ -1048,6 +1050,7 @@ pub fn process_split_stake(
|
|||
"split_stake_account".to_string(),
|
||||
),
|
||||
)?;
|
||||
}
|
||||
check_unique_pubkeys(
|
||||
(&fee_payer.pubkey(), "fee-payer keypair".to_string()),
|
||||
(&stake_account_pubkey, "stake_account".to_string()),
|
||||
|
|
Loading…
Reference in New Issue