Skip to content

Commit 72c585e

Browse files
committed
nit
1 parent c590df1 commit 72c585e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/validation/ExecutionPayloadBidGossipValidator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
package tech.pegasys.teku.statetransition.validation;
1515

1616
import static tech.pegasys.teku.infrastructure.async.SafeFuture.completedFuture;
17+
import static tech.pegasys.teku.infrastructure.unsigned.UInt64.ZERO;
1718
import static tech.pegasys.teku.spec.config.Constants.HIGHEST_BID_SET_SIZE;
1819
import static tech.pegasys.teku.spec.config.Constants.SEEN_EXECUTION_PAYLOAD_BID_SET_SIZE;
1920
import static tech.pegasys.teku.statetransition.validation.InternalValidationResult.ACCEPT;
@@ -85,7 +86,7 @@ public SafeFuture<InternalValidationResult> validate(
8586
*/
8687

8788
if (highestBids.containsKey(bid.getParentBlockHash())) {
88-
final UInt64 existingBidValue = highestBids.get(bid.getParentBlockHash());
89+
final UInt64 existingBidValue = highestBids.getOrDefault(bid.getParentBlockHash(), ZERO);
8990
if (bid.getValue().isLessThan(existingBidValue)) {
9091
LOG.trace(
9192
"Already received a bid with a higher value {} for block with parent hash {}. Current bid's value is {}",

0 commit comments

Comments
 (0)