Skip to content

Commit

Permalink
tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Sep 4, 2023
1 parent 682eb61 commit 03f442f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion beacon_node/beacon_chain/src/execution_payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,6 @@ where
// Note: the suggested_fee_recipient is stored in the `execution_layer`, it will add this parameter.
//
// This future is not executed here, it's up to the caller to await it.
println!("ATTEMPT TO FETCH PAYLOAD");
let block_contents = execution_layer
.get_payload::<Payload>(
parent_hash,
Expand Down
2 changes: 0 additions & 2 deletions beacon_node/http_api/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ pub async fn produce_blinded_block_v2<T: BeaconChainTypes>(

match block_response {
BeaconBlockAndStateResponse::Full((_, _)) => {
println!("We shouldnt ever make it in here");
Err(warp_utils::reject::custom_server_error(
"Returned a blinded block. It should be impossible to return a blinded block via the Full Payload V2 block fetching flow.".to_string()
))
Expand Down Expand Up @@ -139,7 +138,6 @@ pub async fn produce_block_v2<T: BeaconChainTypes>(
.map(|res| add_consensus_version_header(res, fork_name))
}
BeaconBlockAndStateResponse::Blinded((_, _)) => {
println!("We shouldnt ever make it in here");
Err(warp_utils::reject::custom_server_error(
"Returned a blinded block. It should be impossible to return a blinded block via the Full Payload V2 block fetching flow.".to_string()
))
Expand Down
13 changes: 0 additions & 13 deletions beacon_node/http_api/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3038,8 +3038,6 @@ impl ApiTester {
.await
.unwrap();

println!("MADE IT FAR");

for (val_index, (_, fee_recipient)) in self
.chain
.head_snapshot()
Expand Down Expand Up @@ -3415,17 +3413,13 @@ impl ApiTester {
.parse::<Hash256>()
.unwrap();

println!("test1");

// Mutate prev randao.
self.mock_builder
.as_ref()
.unwrap()
.builder
.add_operation(Operation::PrevRandao(invalid_prev_randao));

println!("test2");

let slot = self.chain.slot().unwrap();
let epoch = self.chain.epoch().unwrap();
let expected_prev_randao = self
Expand All @@ -3434,12 +3428,8 @@ impl ApiTester {
.cached_head()
.head_random()
.unwrap();
println!("test3");
let (_, randao_reveal) = self.get_test_randao(slot, epoch).await;


println!("test4");

let payload: BlindedPayload<E> = self
.client
.get_validator_blinded_blocks::<E, BlindedPayload<E>>(slot, &randao_reveal, None)
Expand All @@ -3451,8 +3441,6 @@ impl ApiTester {
.unwrap()
.into();

println!("{:?}", payload);

assert_eq!(payload.prev_randao(), expected_prev_randao);

// If this cache is populated, it indicates fallback to the local EE was correctly used.
Expand Down Expand Up @@ -4453,7 +4441,6 @@ impl ApiTester {
assert_eq!(withdrawal_response.data, expected_withdrawals.to_vec());
}
Err(e) => {
println!("{:?}", e);
panic!("query failed incorrectly");
}
}
Expand Down
1 change: 0 additions & 1 deletion common/eth2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,6 @@ impl BeaconNodeHttpClient {
randao_reveal: &SignatureBytes,
graffiti: Option<&Graffiti>,
) -> Result<ForkVersionedResponse<BeaconBlock<T, Payload>>, Error> {
println!("GET VALIDATOR BLINDED BLOCKS");
self.get_validator_blinded_blocks_modular(
slot,
randao_reveal,
Expand Down

0 comments on commit 03f442f

Please sign in to comment.