Skip to content

Commit 6490e90

Browse files
authored
feat: batch RAV collection (#1176)
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
1 parent a923d78 commit 6490e90

4 files changed

Lines changed: 295 additions & 51 deletions

File tree

packages/indexer-agent/src/commands/start.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@ export const start = {
280280
default: 100,
281281
group: 'Query Fees',
282282
})
283+
.option('rav-collection-max-batch-size', {
284+
description:
285+
'Maximum number of RAVs to collect in a single multicall transaction',
286+
type: 'number',
287+
default: 50,
288+
group: 'Query Fees',
289+
})
283290
.option('horizon-address-book', {
284291
description: 'Graph Horizon contracts address book file path',
285292
type: 'string',
@@ -412,6 +419,7 @@ export async function createNetworkSpecification(
412419
voucherRedemptionThreshold: argv.voucherRedemptionThreshold,
413420
voucherRedemptionBatchThreshold: argv.voucherRedemptionBatchThreshold,
414421
voucherRedemptionMaxBatchSize: argv.voucherRedemptionMaxBatchSize,
422+
ravCollectionMaxBatchSize: argv.ravCollectionMaxBatchSize,
415423
allocationManagementMode: argv.allocationManagement,
416424
autoAllocationMinBatchSize: argv.autoAllocationMinBatchSize,
417425
autoAllocationMaxBatchSize: argv.autoAllocationMaxBatchSize,

0 commit comments

Comments
 (0)