mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-12 02:14:10 +00:00
merge with upstream add context bytes to error log
This commit is contained in:
@@ -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),
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user