Skip to content

Commit

Permalink
test validator write stake account to JSON (#33014)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec authored Sep 1, 2023
1 parent 16ea141 commit 72706d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test-validator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 72706d6

Please sign in to comment.