Skip to content

Commit

Permalink
Merge pull request #129 from SurfingNerd/i87-early-epoch-end-improvem…
Browse files Browse the repository at this point in the history
…ents

I87 early epoch end improvements
  • Loading branch information
SurfingNerd authored Oct 22, 2024
2 parents 5733fda + 14877c9 commit 3149a3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ pub fn report_reconnect(
.gas(U256::from(200_000))
.nonce(nonce);

info!(target:"consensus", "early-epoch-end: sending report_missing_connectivity for with nonce: {nonce}, missing: {:?} ", reconnected_validator);
info!(target:"engine", "early-epoch-end: sending report_reconnect for with nonce: {nonce}, missing: {:?} ", reconnected_validator);
if let Err(e) = full_client.transact_silently(transaction) {
warn!(target:"consensus", "early-epoch-end: could not report_missing_connectivity {e:?}");
warn!(target:"engine", "early-epoch-end: could not report_missing_connectivity {e:?}");
return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion crates/ethcore/src/engines/hbbft/hbbft_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ impl HoneyBadgerBFT {
mining_address: &Address,
) {
// todo: acquire allowed devp2p warmup time from contracts ?!
let allowed_devp2p_warmup_time = Duration::from_secs(120);
let allowed_devp2p_warmup_time = Duration::from_secs(1200);

debug!(target: "engine", "early-epoch-end: handle_early_epoch_end.");

Expand Down
2 changes: 1 addition & 1 deletion crates/ethcore/src/engines/hbbft/hbbft_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl HbbftState {
warn!(target: "engine", "could not acquire to connect to current validators on switching to new validator set for staking epoch {}.", self.current_posdao_epoch);
}

let allowed_devp2p_warmup_time = Duration::from_secs(120);
let allowed_devp2p_warmup_time = Duration::from_secs(1200);

if let Some(full_client) = client.as_full_client() {
let signing_address = if let Some(s) = signer.read().as_ref() {
Expand Down

0 comments on commit 3149a3b

Please sign in to comment.