Skip to content

Commit

Permalink
Fix create block using wrong protocol schedule when parent is genesis (
Browse files Browse the repository at this point in the history
…hyperledger#4986)

Signed-off-by: Jason Frame <jason.frame@consensys.net>
  • Loading branch information
jframe authored Jan 24, 2023
1 parent 6021474 commit ab42080
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ protected BlockCreationResult createBlock(
BlockHeaderBuilder.fromHeader(parentHeader)
.number(parentHeader.getNumber() + 1)
.timestamp(timestamp)
.parentHash(parentHeader.getHash())
.blockHeaderFunctions(new MainnetBlockHeaderFunctions())
.buildBlockHeader());

Expand Down

0 comments on commit ab42080

Please sign in to comment.