From 03f442fd6648c23a0ba8e1c80859b5dfb7365c34 Mon Sep 17 00:00:00 2001 From: Eitan Seri-Levi Date: Tue, 5 Sep 2023 01:04:36 +0300 Subject: [PATCH] tests passing --- beacon_node/beacon_chain/src/execution_payload.rs | 1 - beacon_node/http_api/src/validator.rs | 2 -- beacon_node/http_api/tests/tests.rs | 13 ------------- common/eth2/src/lib.rs | 1 - 4 files changed, 17 deletions(-) diff --git a/beacon_node/beacon_chain/src/execution_payload.rs b/beacon_node/beacon_chain/src/execution_payload.rs index 65d1c90c183..d79cec7b749 100644 --- a/beacon_node/beacon_chain/src/execution_payload.rs +++ b/beacon_node/beacon_chain/src/execution_payload.rs @@ -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::( parent_hash, diff --git a/beacon_node/http_api/src/validator.rs b/beacon_node/http_api/src/validator.rs index 2c56a60cd2e..ccd8f03e44c 100644 --- a/beacon_node/http_api/src/validator.rs +++ b/beacon_node/http_api/src/validator.rs @@ -83,7 +83,6 @@ pub async fn produce_blinded_block_v2( 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() )) @@ -139,7 +138,6 @@ pub async fn produce_block_v2( .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() )) diff --git a/beacon_node/http_api/tests/tests.rs b/beacon_node/http_api/tests/tests.rs index 559370d0a27..1e19b8da528 100644 --- a/beacon_node/http_api/tests/tests.rs +++ b/beacon_node/http_api/tests/tests.rs @@ -3038,8 +3038,6 @@ impl ApiTester { .await .unwrap(); - println!("MADE IT FAR"); - for (val_index, (_, fee_recipient)) in self .chain .head_snapshot() @@ -3415,8 +3413,6 @@ impl ApiTester { .parse::() .unwrap(); - println!("test1"); - // Mutate prev randao. self.mock_builder .as_ref() @@ -3424,8 +3420,6 @@ impl ApiTester { .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 @@ -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 = self .client .get_validator_blinded_blocks::>(slot, &randao_reveal, None) @@ -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. @@ -4453,7 +4441,6 @@ impl ApiTester { assert_eq!(withdrawal_response.data, expected_withdrawals.to_vec()); } Err(e) => { - println!("{:?}", e); panic!("query failed incorrectly"); } } diff --git a/common/eth2/src/lib.rs b/common/eth2/src/lib.rs index b060bae4106..3a68ffa4d33 100644 --- a/common/eth2/src/lib.rs +++ b/common/eth2/src/lib.rs @@ -1702,7 +1702,6 @@ impl BeaconNodeHttpClient { randao_reveal: &SignatureBytes, graffiti: Option<&Graffiti>, ) -> Result>, Error> { - println!("GET VALIDATOR BLINDED BLOCKS"); self.get_validator_blinded_blocks_modular( slot, randao_reveal,