Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions servers/cu/src/effects/hb/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export const loadMessagesWith = ({ hashChain, fetch, logger: _logger, pageSize }
* Similar logic can be found below when checking for the expected nonce
*/

if (!isColdStart) from = from + 1
if (!isColdStart) from = parseInt(`${from}`) + 1
async function fetchPage ({ from }) {
const params = toParams({ processId, from, to, pageSize })

Expand All @@ -454,7 +454,6 @@ export const loadMessagesWith = ({ hashChain, fetch, logger: _logger, pageSize }
body.edges.length === (+to - +from + 1) &&
+body.edges[0]?.node?.assignment?.Tags?.find(t => t.name === 'Nonce' || t.name === 'Slot')?.value === +from
if (bodyIsValid) return body
if (!dryRun) throw new Error('Body is not valid: would attempt to fetch from scheduler in loadMessages')
return fetchPageDataloader.load({ suUrl, processId, from, to, pageSize })
},
{ maxRetries: 1, delay: 500, log: logger, name: `loadMessages(${JSON.stringify({ suUrl, processId, params: params.toString() })})` }
Expand Down