Skip to content

Commit

Permalink
freeze emitted epoch data
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdukakis committed Feb 22, 2024
1 parent e8416d5 commit 52972e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,13 +613,13 @@ export const createClient = function (numberOfStoredTicks = MAX_NUMBER_OF_TICKS_

system.epoch = epoch.epoch;

that.emit('epoch', {
that.emit('epoch', Object.freeze({
epoch: epoch.epoch,
computorPublicKeys: epoch.computorPublicKeyStrings,
computorPublicKeys: Object.freeze(epoch.computorPublicKeyStrings),

digest: digestBytesToString(epoch.digest),
signature: bytes64ToString(epoch.signature),
});
}));
}

if (quorumTickRequestingInterval === undefined && currentTickInfoRequestingInterval === undefined) {
Expand Down

0 comments on commit 52972e5

Please sign in to comment.