Skip to content

Commit 176a8bf

Browse files
Error in case of Full for test_blinded_block_production
1 parent 23934dc commit 176a8bf

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
@@ -3627,30 +3627,8 @@ impl ApiTester {
36273627

36283628
self.chain.slot_clock.set_slot(slot.as_u64() + 1);
36293629
}
3630-
ProduceBlockV3Response::Full(block_contents) => {
3631-
assert!(!metadata.execution_payload_blinded);
3632-
assert_eq!(
3633-
metadata.consensus_version,
3634-
block_contents
3635-
.block()
3636-
.to_ref()
3637-
.fork_name(&self.chain.spec)
3638-
.unwrap()
3639-
);
3640-
let signed_block_contents =
3641-
block_contents.sign(&sk, &fork, genesis_validators_root, &self.chain.spec);
3642-
3643-
self.client
3644-
.post_beacon_blocks(&signed_block_contents)
3645-
.await
3646-
.unwrap();
3647-
3648-
assert_eq!(
3649-
self.chain.head_beacon_block(),
3650-
*signed_block_contents.signed_block()
3651-
);
3652-
3653-
self.chain.slot_clock.set_slot(slot.as_u64() + 1);
3630+
ProduceBlockV3Response::Full(_) => {
3631+
panic!("Expecting a blinded block");
36543632
}
36553633
}
36563634
}
@@ -3750,8 +3728,8 @@ impl ApiTester {
37503728
ProduceBlockV3Response::Blinded(blinded_block) => {
37513729
assert_eq!(blinded_block.slot(), slot);
37523730
}
3753-
ProduceBlockV3Response::Full(full_block) => {
3754-
assert_eq!(full_block.block().slot(), slot);
3731+
ProduceBlockV3Response::Full(_) => {
3732+
panic!("Expecting a blinded block");
37553733
}
37563734
}
37573735

0 commit comments

Comments
 (0)