Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 72706d6

Browse files
authored
test validator write stake account to JSON (#33014)
1 parent 16ea141 commit 72706d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test-validator/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,14 @@ impl TestValidator {
838838
ledger_path.join("validator-keypair.json").to_str().unwrap(),
839839
)?;
840840

841+
write_keypair_file(
842+
&validator_stake_account,
843+
ledger_path
844+
.join("stake-account-keypair.json")
845+
.to_str()
846+
.unwrap(),
847+
)?;
848+
841849
// `ledger_exists` should fail until the vote account keypair is written
842850
assert!(!TestValidatorGenesis::ledger_exists(&ledger_path));
843851

0 commit comments

Comments
 (0)