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

I87 early epoch end improvements #129

Merged
Merged
Show file tree
Hide file tree
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
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 @@
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 Expand Up @@ -1175,7 +1175,7 @@
Err(e) => {
error!(target: "consensus", "Error initializing synckeygen: {:?}", e);
}
Err(_) => {

Check warning on line 1178 in crates/ethcore/src/engines/hbbft/hbbft_engine.rs

View workflow job for this annotation

GitHub Actions / Test and Build (ubuntu-latest, 1.72)

unreachable pattern

Check warning on line 1178 in crates/ethcore/src/engines/hbbft/hbbft_engine.rs

View workflow job for this annotation

GitHub Actions / Test and Build (ubuntu-latest, 1.72)

unreachable pattern

Check warning on line 1178 in crates/ethcore/src/engines/hbbft/hbbft_engine.rs

View workflow job for this annotation

GitHub Actions / Check

unreachable pattern

Check warning on line 1178 in crates/ethcore/src/engines/hbbft/hbbft_engine.rs

View workflow job for this annotation

GitHub Actions / Check

unreachable pattern

Check warning on line 1178 in crates/ethcore/src/engines/hbbft/hbbft_engine.rs

View workflow job for this annotation

GitHub Actions / Check

unreachable pattern
error!(target: "consensus", "Error initializing synckeygen: unknown Error");
}
}
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
Loading