Skip to content

Commit

Permalink
fix(LW-11296): temporary fix for protocol parameter entropy reset
Browse files Browse the repository at this point in the history
  • Loading branch information
will-break-it committed Aug 27, 2024
1 parent f73fecb commit a1b59c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/Serialization/Update/ProtocolParamUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ export class ProtocolParamUpdate {
case 13n: {
// entropy is encoded as an array of two elements, where the second elements is the entropy value
const size = reader.readStartArray();
reader.readEncodedValue();

if (size === 1) {
reader.readEncodedValue();
reader.readEndArray();
} else {
reader.readEncodedValue();
params.#extraEntropy = HexBlob.fromBytes(reader.readByteString());
reader.readEndArray();
}
Expand Down

0 comments on commit a1b59c3

Please sign in to comment.