Merge native programs parts into one unit (#7047)
This commit is contained in:
@ -28,7 +28,7 @@ solana-metrics = { path = "../metrics", version = "0.21.0" }
|
||||
solana-net-utils = { path = "../net-utils", version = "0.21.0" }
|
||||
solana-runtime = { path = "../runtime", version = "0.21.0" }
|
||||
solana-sdk = { path = "../sdk", version = "0.21.0" }
|
||||
solana-vote-api = { path = "../programs/vote_api", version = "0.21.0" }
|
||||
solana-vote-program = { path = "../programs/vote", version = "0.21.0" }
|
||||
solana-vote-signer = { path = "../vote-signer", version = "0.21.0" }
|
||||
tempfile = "3.1.0"
|
||||
tar = "0.4.26"
|
||||
|
@ -244,7 +244,7 @@ fn check_vote_account(
|
||||
.get_account(vote_pubkey)
|
||||
.map_err(|err| format!("Failed to get vote account: {}", err.to_string()))?;
|
||||
|
||||
if found_vote_account.owner != solana_vote_api::id() {
|
||||
if found_vote_account.owner != solana_vote_program::id() {
|
||||
return Err(format!(
|
||||
"not a vote account (owned by {}): {}",
|
||||
found_vote_account.owner, vote_pubkey
|
||||
@ -255,7 +255,7 @@ fn check_vote_account(
|
||||
.get_account(node_pubkey)
|
||||
.map_err(|err| format!("Failed to get identity account: {}", err.to_string()))?;
|
||||
|
||||
let found_vote_account = solana_vote_api::vote_state::VoteState::from(&found_vote_account);
|
||||
let found_vote_account = solana_vote_program::vote_state::VoteState::from(&found_vote_account);
|
||||
if let Some(found_vote_account) = found_vote_account {
|
||||
if found_vote_account.authorized_voter != *voting_pubkey {
|
||||
return Err(format!(
|
||||
|
Reference in New Issue
Block a user