merge with upstream add context bytes to error log

This commit is contained in:
realbigsean
2022-12-22 14:06:28 -05:00
4 changed files with 7 additions and 4 deletions

View File

@@ -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),
)
})
}