remove superfluous world state commit (#3930)

Signed-off-by: garyschulte <garyschulte@gmail.com>
pull/3950/head
garyschulte 3 years ago committed by GitHub
parent 0fa5e62bc1
commit 910a566248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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); protocolContext, block, HeaderValidationMode.FULL, HeaderValidationMode.NONE);
validationResult.blockProcessingOutputs.ifPresentOrElse( validationResult.blockProcessingOutputs.ifPresentOrElse(
result -> { result -> chain.appendBlock(block, result.receipts),
result.worldState.persist(block.getHeader());
chain.appendBlock(block, result.receipts);
},
() -> () ->
protocolSchedule protocolSchedule
.getByBlockNumber(chain.getChainHeadBlockNumber()) .getByBlockNumber(chain.getChainHeadBlockNumber())

Loading…
Cancel
Save