From 1ffe185adcae74fb512a63bc3d60880409ba7496 Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Mon, 16 Sep 2024 14:54:54 +0300 Subject: [PATCH] fix comment --- .../validator/coordinator/ExecutionPayloadHeaderFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon/validator/src/main/java/tech/pegasys/teku/validator/coordinator/ExecutionPayloadHeaderFactory.java b/beacon/validator/src/main/java/tech/pegasys/teku/validator/coordinator/ExecutionPayloadHeaderFactory.java index 2a9a4df04f2..6ba00aae373 100644 --- a/beacon/validator/src/main/java/tech/pegasys/teku/validator/coordinator/ExecutionPayloadHeaderFactory.java +++ b/beacon/validator/src/main/java/tech/pegasys/teku/validator/coordinator/ExecutionPayloadHeaderFactory.java @@ -112,7 +112,6 @@ private ExecutionPayloadHeader createLocalBid( schemaDefinitions .getBlobKzgCommitmentsSchema() .createFromBlobsBundle(getPayloadResponse.getBlobsBundle().orElseThrow()); - // convert Wei to Gwei return schemaDefinitions .getExecutionPayloadHeaderSchema() .createExecutionPayloadHeader( @@ -124,6 +123,7 @@ private ExecutionPayloadHeader createLocalBid( .gasLimit(getPayloadResponse.getExecutionPayload().getGasLimit()) .builderIndex(() -> builderIndex) .slot(() -> slot) + // Engine API returns the block value in wei, so conversion to gwei is required .value(() -> weiToGwei(getPayloadResponse.getExecutionPayloadValue())) .blobKzgCommitmentsRoot(blobKzgCommitments::hashTreeRoot)); }