Skip to content

Commit

Permalink
fix empty cycleInfo
Browse files Browse the repository at this point in the history
fix receipt verification
  • Loading branch information
S0naliThakur committed Oct 25, 2024
1 parent 6d566ec commit 5e1c1d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ export function registerRoutes(server: FastifyInstance<Server, IncomingMessage,
publicKey,
}

Data.initSocketClient(firstNode)

// Add first node to NodeList
NodeList.addNodes(NodeList.NodeStatus.SYNCING, [firstNode])
// Setting current time for realUpdatedTimes to refresh the nodelist and full-nodelist cache
Expand Down
2 changes: 1 addition & 1 deletion src/Data/Collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export const validateArchiverReceipt = (receipt: Receipt.ArchiverReceipt): boole
}
for (const voteOffset of signedReceipt.voteOffsets) {
const isValid = typeof voteOffset === 'number' || !isNaN(voteOffset)
if (isValid) {
if (!isValid) {
Logger.mainLogger.error('Invalid receipt signedReceipt voteOffsets data', voteOffset)
return false
}
Expand Down

0 comments on commit 5e1c1d7

Please sign in to comment.