[Merge] Optimistic EL verification (#2683)

* Ignore payload errors

* Only return payload handle on valid response

* Push some engine logs down to debug

* Push ee fork choice log to debug

* Push engine call failure to debug

* Push some more errors to debug

* Fix panic at startup
This commit is contained in:
Paul Hauner
2021-10-07 00:34:17 +11:00
parent 35350dff75
commit 67a6f91df6
6 changed files with 80 additions and 62 deletions

View File

@@ -2,7 +2,7 @@
use crate::engine_api::{EngineApi, Error as EngineApiError};
use futures::future::join_all;
use slog::{crit, debug, error, info, warn, Logger};
use slog::{crit, debug, info, warn, Logger};
use std::future::Future;
use tokio::sync::RwLock;
use types::Hash256;
@@ -89,7 +89,7 @@ impl<T: EngineApi> Engines<T> {
.forkchoice_updated(head.head_block_hash, head.finalized_block_hash)
.await
{
error!(
debug!(
self.log,
"Failed to issue latest head to engine";
"error" => ?e,
@@ -225,7 +225,7 @@ impl<T: EngineApi> Engines<T> {
match func(engine).await {
Ok(result) => return Ok(result),
Err(error) => {
error!(
debug!(
self.log,
"Execution engine call failed";
"error" => ?error,
@@ -291,7 +291,7 @@ impl<T: EngineApi> Engines<T> {
let is_offline = *engine.state.read().await == EngineState::Offline;
if !is_offline {
func(engine).await.map_err(|error| {
error!(
debug!(
self.log,
"Execution engine call failed";
"error" => ?error,