test validator write stake account to JSON (#33014)

This commit is contained in:
Joe C 2023-09-01 08:18:53 -06:00 committed by GitHub
parent 16ea141402
commit 72706d6601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -838,6 +838,14 @@ impl TestValidator {
ledger_path.join("validator-keypair.json").to_str().unwrap(),
)?;
write_keypair_file(
&validator_stake_account,
ledger_path
.join("stake-account-keypair.json")
.to_str()
.unwrap(),
)?;
// `ledger_exists` should fail until the vote account keypair is written
assert!(!TestValidatorGenesis::ledger_exists(&ledger_path));