Fix create block using wrong protocol schedule when parent is genesis (#4986)

Signed-off-by: Jason Frame <jason.frame@consensys.net>
pull/4997/head
Jason Frame 2 years ago committed by GitHub
parent 602147411e
commit ab4208018e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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());

Loading…
Cancel
Save