Skip to content

Commit

Permalink
fix test_oc_bad_signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
carllin committed Nov 3, 2024
1 parent 59bf0f0 commit 1e38dec
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit 1e38dec

Please sign in to comment.