Skip to content

Commit

Permalink
rm stake account for rpc node
Browse files Browse the repository at this point in the history
  • Loading branch information
gregcusack committed Apr 4, 2024
1 parent febf952 commit ae54104
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions src/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ impl Genesis {

info!("generating {number_of_accounts} {validator_type} accounts...");

let mut account_types = vec!["identity", "stake-account", "vote-account"];
match validator_type {
ValidatorType::Bootstrap | ValidatorType::Standard => (),
let account_types = match validator_type {
ValidatorType::Bootstrap | ValidatorType::Standard => {
vec!["identity", "stake-account", "vote-account"]
}
ValidatorType::RPC => {
account_types.pop(); // no vote-account for RPC
vec!["identity"] // no vote or stake account for RPC
}
ValidatorType::Client => panic!("Client type not supported"),
};
Expand Down

0 comments on commit ae54104

Please sign in to comment.