Skip to content

Commit

Permalink
Fix errors after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Feb 7, 2022
1 parent e32d95e commit 9aad031
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions beacon_node/beacon_chain/tests/payload_invalidation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl InvalidPayloadRig {
} else {
mock_execution_layer.server.full_payload_verification();
}
self.harness.process_block(slot, block.clone()).unwrap();
self.harness.process_block(slot, block).unwrap();
self.valid_blocks.insert(block_root);
// TODO: check syncing blocks are optimistic.
}
Expand All @@ -101,7 +101,7 @@ impl InvalidPayloadRig {
.server
.all_payloads_invalid(latest_valid_hash);

match self.harness.process_block(slot, block.clone()) {
match self.harness.process_block(slot, block) {
Err(BlockError::ExecutionPayloadError(
ExecutionPayloadError::RejectedByExecutionEngine,
)) => (),
Expand Down
4 changes: 2 additions & 2 deletions beacon_node/execution_layer/src/test_utils/handle_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub async fn handle_rpc<T: EthSpec>(
}
FixedPayloadResponse::Invalid { latest_valid_hash } => ExecutePayloadResponse {
status: ExecutePayloadResponseStatus::Invalid { latest_valid_hash },
message: None,
validation_error: None,
},
FixedPayloadResponse::Syncing => {
// Try to import the block, ignore the response.
Expand All @@ -84,7 +84,7 @@ pub async fn handle_rpc<T: EthSpec>(
.execute_payload(request.into());
ExecutePayloadResponse {
status: ExecutePayloadResponseStatus::Syncing,
message: None,
validation_error: None,
}
}
};
Expand Down

0 comments on commit 9aad031

Please sign in to comment.