Skip to content

Commit

Permalink
Add gossipCount to CLI opts
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Dec 11, 2024
1 parent ccfedfb commit 8530837
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/cli/src/cliArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,9 @@ export const args: ClientOpts = yargs(hideBin(process.argv))
string: true,
optional: true,
})
.option('gossipCount', {
describe: 'number of nodes to gossip to',
number: true,
optional: true,
})
.strict().argv as ClientOpts
1 change: 1 addition & 0 deletions packages/cli/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ export interface ClientOpts {
networks: string
storage: string
trustedBlockRoot?: string
gossipCount?: number
}

export interface DevnetOpts {
Expand Down
2 changes: 2 additions & 0 deletions packages/portalnetwork/src/util/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface PortalClientOpts {
networks: string
storage: string
trustedBlockRoot?: string
gossipCount?: number
}

export const NetworkStrings: Record<string, NetworkId> = {
Expand Down Expand Up @@ -115,6 +116,7 @@ export const cliConfig = async (args: PortalClientOpts) => {
dataDir: args.dataDir,
trustedBlockRoot: args.trustedBlockRoot,
bootnodes,
gossipCount: args.gossipCount,
}
return clientConfig
}

0 comments on commit 8530837

Please sign in to comment.