mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-06 19:12:20 +00:00
Update beacon_node/http_api/src/publish_blocks.rs
Co-authored-by: Divma <26765164+divagant-martian@users.noreply.github.com>
This commit is contained in:
parent
eddfb50c58
commit
3ab0f46077
@ -32,7 +32,7 @@ pub async fn publish_block<T: BeaconChainTypes>(
|
|||||||
let block_root = block_root.unwrap_or_else(|| block.canonical_root());
|
let block_root = block_root.unwrap_or_else(|| block.canonical_root());
|
||||||
|
|
||||||
// Send the block, regardless of whether or not it is valid. The API
|
// 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(_)) {
|
let wrapped_block = if matches!(block.as_ref(), &SignedBeaconBlock::Eip4844(_)) {
|
||||||
if let Some(sidecar) = chain.blob_cache.pop(&block_root) {
|
if let Some(sidecar) = chain.blob_cache.pop(&block_root) {
|
||||||
let block_and_blobs = SignedBeaconBlockAndBlobsSidecar {
|
let block_and_blobs = SignedBeaconBlockAndBlobsSidecar {
|
||||||
|
Loading…
Reference in New Issue
Block a user