mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 05:14:35 +00:00
Drop block data from BlockError and BlobError (#5735)
* Drop block data from BlockError and BlobError * Debug release tests * Fix release tests * Revert unnecessary changes to lighthouse_metrics
This commit is contained in:
@@ -1098,8 +1098,8 @@ async fn block_gossip_verification() {
|
||||
assert!(
|
||||
matches!(
|
||||
unwrap_err(harness.chain.verify_block_for_gossip(Arc::new(SignedBeaconBlock::from_block(block, signature))).await),
|
||||
BlockError::ParentUnknown(block)
|
||||
if block.parent_root() == parent_root
|
||||
BlockError::ParentUnknown {parent_root: p}
|
||||
if p == parent_root
|
||||
),
|
||||
"should not import a block for an unknown parent"
|
||||
);
|
||||
|
||||
@@ -212,7 +212,7 @@ impl InvalidPayloadRig {
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
async fn import_block_parametric<F: Fn(&BlockError<E>) -> bool>(
|
||||
async fn import_block_parametric<F: Fn(&BlockError) -> bool>(
|
||||
&mut self,
|
||||
new_payload_response: Payload,
|
||||
forkchoice_response: Payload,
|
||||
|
||||
Reference in New Issue
Block a user