From 72706d6601acb1d342e01e665ff9f80b8da35270 Mon Sep 17 00:00:00 2001 From: Joe C Date: Fri, 1 Sep 2023 08:18:53 -0600 Subject: [PATCH] test validator write stake account to JSON (#33014) --- test-validator/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test-validator/src/lib.rs b/test-validator/src/lib.rs index 5737f71a6..e807f80c9 100644 --- a/test-validator/src/lib.rs +++ b/test-validator/src/lib.rs @@ -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));