Skip to content

Commit

Permalink
fix: Added missing opcerts for pre-Babbage era
Browse files Browse the repository at this point in the history
  • Loading branch information
satran004 committed Sep 5, 2023
1 parent 1070248 commit aef81ae
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ private BlockHeader preBabbageHeader(Array headerArray) {
headerBodyBuilder.blockBodySize(CborSerializationUtil.toBigInteger(headerBodyArr.get(7)).longValue());
headerBodyBuilder.blockBodyHash(CborSerializationUtil.toHex(headerBodyArr.get(8)));

// headerBody.setOpCertificate() 4 items
//Operational Certificate 4 items
headerBodyBuilder.operationalCert(OperationalCert.builder()
.hotVKey(CborSerializationUtil.toHex(headerBodyArr.get(9)))
.sequenceNumber(CborSerializationUtil.toBigInteger(headerBodyArr.get(10)).intValue())
.kesPeriod(CborSerializationUtil.toBigInteger(headerBodyArr.get(11)).intValue())
.sigma(CborSerializationUtil.toHex(headerBodyArr.get(12)))
.build());

ProtocolVersion protocolVersion = new ProtocolVersion(CborSerializationUtil.toBigInteger(headerBodyArr.get(13)).longValue(),
CborSerializationUtil.toBigInteger(headerBodyArr.get(14)).longValue());
headerBodyBuilder.protocolVersion(protocolVersion);
Expand Down

0 comments on commit aef81ae

Please sign in to comment.