mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
Some fixes and logs
This commit is contained in:
@@ -130,7 +130,7 @@ impl<E: EthSpec> TryFrom<BuilderBid<E>> for ProvenancedPayload<BlockProposalCont
|
||||
kzg_commitments: builder_bid.blob_kzg_commitments,
|
||||
blobs_and_proofs: None,
|
||||
// TODO(fulu): update this with builder api returning the requests
|
||||
requests: None,
|
||||
requests: Some(builder_bid.execution_requests),
|
||||
},
|
||||
};
|
||||
Ok(ProvenancedPayload::Builder(
|
||||
|
||||
@@ -468,11 +468,16 @@ impl<E: EthSpec> MockBuilder<E> {
|
||||
.ok_or_else(|| "missing payload for tx root".to_string())?;
|
||||
|
||||
let (payload, blobs) = payload.deconstruct();
|
||||
debug!(
|
||||
payload_type=%payload.fork_name(),
|
||||
"Fork name for received payload"
|
||||
);
|
||||
let full_block = block
|
||||
.try_into_full_block(Some(payload.clone()))
|
||||
.ok_or("Internal error, just provided a payload")?;
|
||||
debug!(
|
||||
txs_count = payload.transactions().len(),
|
||||
fork = %full_block.fork_name_unchecked(),
|
||||
blob_count = blobs.as_ref().map(|b| b.commitments.len()),
|
||||
"Got full payload, sending to local beacon node for propagation"
|
||||
);
|
||||
|
||||
@@ -99,7 +99,7 @@ pub async fn publish_block<T: BeaconChainTypes, B: IntoGossipVerifiedBlock<T>>(
|
||||
};
|
||||
let block = unverified_block.inner_block();
|
||||
|
||||
debug!(slot = %block.slot(), "Signed block received in HTTP API");
|
||||
debug!(slot = %block.slot(), fork=%block.fork_name_unchecked(), provenance, "Signed block received in HTTP API");
|
||||
|
||||
/* actually publish a block */
|
||||
let publish_block_p2p = move |block: Arc<SignedBeaconBlock<T::EthSpec>>,
|
||||
|
||||
Reference in New Issue
Block a user