Remove vestigial vote account configuration from fullnode-config
This commit is contained in:
@@ -17,9 +17,6 @@ pub struct Config {
|
||||
|
||||
/// Fullnode identity
|
||||
pub identity_pkcs8: Vec<u8>,
|
||||
|
||||
/// Fullnode vote account
|
||||
pub vote_account_pkcs8: Vec<u8>,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
@@ -41,8 +38,4 @@ impl Config {
|
||||
Keypair::from_pkcs8(Input::from(&self.identity_pkcs8))
|
||||
.expect("from_pkcs8 in fullnode::Config keypair")
|
||||
}
|
||||
pub fn vote_account_keypair(&self) -> Keypair {
|
||||
Keypair::from_pkcs8(Input::from(&self.vote_account_pkcs8))
|
||||
.expect("from_pkcs8 in fullnode::Config vote_account_keypair")
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
use solana_sdk::signature::{gen_pkcs8, read_pkcs8};
|
||||
use solana_sdk::signature::read_pkcs8;
|
||||
use std::io;
|
||||
|
||||
fn main() {
|
||||
@@ -49,7 +49,6 @@ fn main() {
|
||||
use_local_address: matches.is_present("local"),
|
||||
use_public_address: matches.is_present("public"),
|
||||
identity_pkcs8: read_pkcs8(id_path).expect("invalid keypair"),
|
||||
vote_account_pkcs8: gen_pkcs8().unwrap(),
|
||||
};
|
||||
|
||||
let stdout = io::stdout();
|
||||
|
Reference in New Issue
Block a user