Skip to content

Commit 6f70e93

Browse files
Error in case of Full for test_blinded_block_production
1 parent c2a6162 commit 6f70e93

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

beacon_node/http_api/tests/tests.rs

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3533,30 +3533,8 @@ impl ApiTester {
35333533

35343534
self.chain.slot_clock.set_slot(slot.as_u64() + 1);
35353535
}
3536-
ProduceBlockV3Response::Full(block_contents) => {
3537-
assert!(!metadata.execution_payload_blinded);
3538-
assert_eq!(
3539-
metadata.consensus_version,
3540-
block_contents
3541-
.block()
3542-
.to_ref()
3543-
.fork_name(&self.chain.spec)
3544-
.unwrap()
3545-
);
3546-
let signed_block_contents =
3547-
block_contents.sign(&sk, &fork, genesis_validators_root, &self.chain.spec);
3548-
3549-
self.client
3550-
.post_beacon_blocks(&signed_block_contents)
3551-
.await
3552-
.unwrap();
3553-
3554-
assert_eq!(
3555-
self.chain.head_beacon_block(),
3556-
*signed_block_contents.signed_block()
3557-
);
3558-
3559-
self.chain.slot_clock.set_slot(slot.as_u64() + 1);
3536+
ProduceBlockV3Response::Full(_) => {
3537+
panic!("Expecting a blinded block");
35603538
}
35613539
}
35623540
}
@@ -3656,8 +3634,8 @@ impl ApiTester {
36563634
ProduceBlockV3Response::Blinded(blinded_block) => {
36573635
assert_eq!(blinded_block.slot(), slot);
36583636
}
3659-
ProduceBlockV3Response::Full(full_block) => {
3660-
assert_eq!(full_block.block().slot(), slot);
3637+
ProduceBlockV3Response::Full(_) => {
3638+
panic!("Expecting a blinded block");
36613639
}
36623640
}
36633641

0 commit comments

Comments
 (0)