mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 12:56:12 +00:00
Merge branch 'unstable' of https://github.com/sigp/lighthouse into gloas-block-and-bid-production
This commit is contained in:
@@ -18,6 +18,7 @@ use ssz_types::VariableList;
|
||||
use std::cmp::max;
|
||||
use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
use tracing::warn;
|
||||
use tree_hash::TreeHash;
|
||||
use tree_hash_derive::TreeHash;
|
||||
use types::{
|
||||
@@ -537,6 +538,21 @@ impl<E: EthSpec> ExecutionBlockGenerator<E> {
|
||||
.contains_key(&forkchoice_state.finalized_block_hash);
|
||||
|
||||
if unknown_head_block_hash || unknown_safe_block_hash || unknown_finalized_block_hash {
|
||||
if unknown_head_block_hash {
|
||||
warn!(?head_block_hash, "Received unknown head block hash");
|
||||
}
|
||||
if unknown_safe_block_hash {
|
||||
warn!(
|
||||
safe_block_hash = ?forkchoice_state.safe_block_hash,
|
||||
"Received unknown safe block hash"
|
||||
);
|
||||
}
|
||||
if unknown_finalized_block_hash {
|
||||
warn!(
|
||||
finalized_block_hash = ?forkchoice_state.finalized_block_hash,
|
||||
"Received unknown finalized block hash"
|
||||
)
|
||||
}
|
||||
return Ok(JsonForkchoiceUpdatedV1Response {
|
||||
payload_status: JsonPayloadStatusV1 {
|
||||
status: JsonPayloadStatusV1Status::Syncing,
|
||||
|
||||
@@ -5,6 +5,7 @@ use crate::test_utils::{DEFAULT_CLIENT_VERSION, DEFAULT_MOCK_EL_PAYLOAD_VALUE_WE
|
||||
use serde::{Deserialize, de::DeserializeOwned};
|
||||
use serde_json::Value as JsonValue;
|
||||
use std::sync::Arc;
|
||||
use tracing::debug;
|
||||
|
||||
pub const GENERIC_ERROR_CODE: i64 = -1234;
|
||||
pub const BAD_PARAMS_ERROR_CODE: i64 = -32602;
|
||||
@@ -28,6 +29,8 @@ pub async fn handle_rpc<E: EthSpec>(
|
||||
.ok_or_else(|| "missing/invalid params field".to_string())
|
||||
.map_err(|s| (s, GENERIC_ERROR_CODE))?;
|
||||
|
||||
debug!(method, "Mock execution engine");
|
||||
|
||||
match method {
|
||||
ETH_SYNCING => ctx
|
||||
.syncing_response
|
||||
@@ -517,6 +520,12 @@ pub async fn handle_rpc<E: EthSpec>(
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
debug!(
|
||||
?payload_attributes,
|
||||
?forkchoice_state,
|
||||
"ENGINE_FORKCHOICE_UPDATED"
|
||||
);
|
||||
|
||||
// validate method called correctly according to fork time
|
||||
if let Some(pa) = payload_attributes.as_ref() {
|
||||
match ctx
|
||||
|
||||
Reference in New Issue
Block a user