From a2aa5c8134b82ca8d913893b240d26891774f0d2 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Thu, 2 May 2024 20:18:59 -0500 Subject: [PATCH] log before submitBatch --- backend/src/event-handlers/rollup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/event-handlers/rollup.js b/backend/src/event-handlers/rollup.js index 35e108d..37df5b3 100644 --- a/backend/src/event-handlers/rollup.js +++ b/backend/src/event-handlers/rollup.js @@ -86,11 +86,11 @@ const submitRollup = async () => { // Stake our availability to be the next rollup worker await stakeRollupAvailability(); // Call Rollup.submitBatch + console.log('Submitting batch', { batchPostId, batchItems, authors }); const poolDuration = 60; await callWithRetry(() => rollup.submitBatch(batchPostId, batchItems.length, poolDuration)); // Send matrix event await sendMatrixEvent('io.dgov.rollup.submit', { batchPostId, batchItems, authors }); - console.log('Submitted batch', { batchPostId, batchItems, authors }); // Clear the batch in preparation for next batch batchItems = []; await applicationData.put('batchItems', batchItems);