Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_oc_bad_signatures #3447

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions local-cluster/tests/local_cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2657,7 +2657,7 @@ fn test_oc_bad_signatures() {
solana_logger::setup_with_default(RUST_LOG_FILTER);

let total_stake = 100 * DEFAULT_NODE_STAKE;
let leader_stake = (total_stake as f64 * VOTE_THRESHOLD_SIZE) as u64;
let leader_stake = (total_stake as f64 * VOTE_THRESHOLD_SIZE) as u64 + 1;
let our_node_stake = total_stake - leader_stake;
let node_stakes = vec![leader_stake, our_node_stake];
let mut validator_config = ValidatorConfig {
Expand Down Expand Up @@ -2697,7 +2697,6 @@ fn test_oc_bad_signatures() {

// 3) Start up a spy to listen for and push votes to leader TPU
let client = cluster.build_tpu_quic_client().unwrap();
let cluster_funding_keypair = cluster.funding_keypair.insecure_clone();
let voter_thread_sleep_ms: usize = 100;
let num_votes_simulated = Arc::new(AtomicUsize::new(0));
let gossip_voter = cluster_tests::start_gossip_voter(
Expand Down Expand Up @@ -2743,7 +2742,7 @@ fn test_oc_bad_signatures() {
);
LocalCluster::send_transaction_with_retries(
&client,
&[&cluster_funding_keypair],
&[&node_keypair, &bad_authorized_signer_keypair],
&mut vote_tx,
5,
0,
Expand Down
Loading