Skip to content

Commit

Permalink
feat(fetchlogs) - ensure to use cli parameters to determine blocks pe…
Browse files Browse the repository at this point in the history
…r batch and end block
  • Loading branch information
ctrlc03 committed Nov 1, 2023
1 parent 86ab0aa commit b566bc0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cli/ts/genProofs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ const configureSubparser = (subparsers: any) => {
help: 'The last block to fetch logs from',
}
)

parser.addArgument(
['-bb', '--blocks-per-batch'],
{
type: 'int',
help: 'How many blocks to fetch logs per batch',
}
)
}

const genProofs = async (args: any) => {
Expand Down Expand Up @@ -358,6 +366,8 @@ const genProofs = async (args: any) => {
coordinatorKeypair,
pollId,
fromBlock,
args.blocks_per_batch,
args.end_block
)

const poll = maciState.polls[pollId]
Expand Down

0 comments on commit b566bc0

Please sign in to comment.