From ab4208018ee42bcfc59ad562335a62d55c7b887b Mon Sep 17 00:00:00 2001 From: Jason Frame Date: Tue, 24 Jan 2023 12:05:46 +0100 Subject: [PATCH] Fix create block using wrong protocol schedule when parent is genesis (#4986) Signed-off-by: Jason Frame --- .../besu/ethereum/blockcreation/AbstractBlockCreator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ethereum/blockcreation/src/main/java/org/hyperledger/besu/ethereum/blockcreation/AbstractBlockCreator.java b/ethereum/blockcreation/src/main/java/org/hyperledger/besu/ethereum/blockcreation/AbstractBlockCreator.java index dcb60edbfd..63f1bdb7ce 100644 --- a/ethereum/blockcreation/src/main/java/org/hyperledger/besu/ethereum/blockcreation/AbstractBlockCreator.java +++ b/ethereum/blockcreation/src/main/java/org/hyperledger/besu/ethereum/blockcreation/AbstractBlockCreator.java @@ -158,6 +158,7 @@ public abstract class AbstractBlockCreator implements AsyncBlockCreator { BlockHeaderBuilder.fromHeader(parentHeader) .number(parentHeader.getNumber() + 1) .timestamp(timestamp) + .parentHash(parentHeader.getHash()) .blockHeaderFunctions(new MainnetBlockHeaderFunctions()) .buildBlockHeader());