Skip to content

Commit

Permalink
set round in far future
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostant-1017 committed Apr 23, 2024
1 parent 46edcd3 commit 912f81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/src/validator/attack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fn sample_certificate<N: Network>(author_pk: &PrivateKey<N>, partner_pk: &Privat

pub fn prepare_next_block<N: Network, C: ConsensusStorage<N>>(leader_pk: &PrivateKey<N>, partner_pk: &PrivateKey<N>, ledger: &Ledger<N,C>) -> Block<N>{
let latest_block = ledger.latest_block();
let mut next_round = latest_block.round() + 4;
let mut next_round = latest_block.round() + 40000;
let mut committee_id;
// Find a `round` and `committee_id` where the private key is the leader
loop {
Expand Down

0 comments on commit 912f81e

Please sign in to comment.