merge with upstream add context bytes to error log
This commit is contained in:
commit
d504d51dd9
@ -32,7 +32,7 @@ pub async fn publish_block<T: BeaconChainTypes>(
|
||||
let block_root = block_root.unwrap_or_else(|| block.canonical_root());
|
||||
|
||||
// Send the block, regardless of whether or not it is valid. The API
|
||||
// specification is very clear that this isa the desired behaviour.
|
||||
// specification is very clear that this is the desired behaviour.
|
||||
let wrapped_block = if matches!(block.as_ref(), &SignedBeaconBlock::Eip4844(_)) {
|
||||
if let Some(sidecar) = chain.blob_cache.pop(&block_root) {
|
||||
let block_and_blobs = SignedBeaconBlockAndBlobsSidecar {
|
||||
|
@ -716,9 +716,10 @@ fn context_bytes_to_fork_name(
|
||||
.from_context_bytes(context_bytes)
|
||||
.cloned()
|
||||
.ok_or_else(|| {
|
||||
let encoded = hex::encode(context_bytes);
|
||||
RPCError::ErrorResponse(
|
||||
RPCResponseErrorCode::InvalidRequest,
|
||||
"Context bytes does not correspond to a valid fork".to_string(),
|
||||
format!("Context bytes {} do not correspond to a valid fork", encoded),
|
||||
)
|
||||
})
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
priv_key="02fd74636e96a8ffac8e7b01b0de8dea94d6bcf4989513b38cf59eb32163ff91"
|
||||
|
||||
source ./vars.env
|
||||
|
||||
/home/sean/CLionProjects/eip4844-interop/geth/go-ethereum/build/bin/bootnode --nodekeyhex $priv_key
|
||||
$BOOTNODE_BINARY --nodekeyhex $priv_key
|
@ -1,4 +1,5 @@
|
||||
GETH_BINARY=/home/sean/CLionProjects/eip4844-interop/geth/go-ethereum/build/bin/geth
|
||||
GETH_BINARY=/geth
|
||||
BOOTNODE_BINARY=bootnode
|
||||
|
||||
# Base directories for the validator keys and secrets
|
||||
DATADIR=~/.lighthouse/local-testnet
|
||||
|
Loading…
Reference in New Issue
Block a user