From 910a566248c6c7095496cf6769d7b486c470b22a Mon Sep 17 00:00:00 2001 From: garyschulte Date: Mon, 6 Jun 2022 10:29:33 -0700 Subject: [PATCH] remove superfluous world state commit (#3930) Signed-off-by: garyschulte --- .../besu/consensus/merge/blockcreation/MergeCoordinator.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/blockcreation/MergeCoordinator.java b/consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/blockcreation/MergeCoordinator.java index 4a3c60c39d..9be549a522 100644 --- a/consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/blockcreation/MergeCoordinator.java +++ b/consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/blockcreation/MergeCoordinator.java @@ -239,10 +239,7 @@ public class MergeCoordinator implements MergeMiningCoordinator { protocolContext, block, HeaderValidationMode.FULL, HeaderValidationMode.NONE); validationResult.blockProcessingOutputs.ifPresentOrElse( - result -> { - result.worldState.persist(block.getHeader()); - chain.appendBlock(block, result.receipts); - }, + result -> chain.appendBlock(block, result.receipts), () -> protocolSchedule .getByBlockNumber(chain.getChainHeadBlockNumber())