Skip to content

Commit

Permalink
chore: added gas price flag to kysor (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler authored Mar 4, 2025
1 parent 3f0c9bd commit 6ea00eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/kysor/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ start
"Specify the number of bundles that should be tested before the node properly exits. If zero the node will run indefinitely [default = 0]",
"0"
)
.option(
"--gas-price <number>",
"The gas price the node should use to calculate transaction fees, this value will be loaded by default based on the chain id"
)
.action(async (options) => {
await run(options);
});
Expand Down
5 changes: 5 additions & 0 deletions tools/kysor/src/kysor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,11 @@ export const run = async (options: any) => {
args.push(`${valaccount.debugMaxSize}`);
}

if (options.gasPrice) {
args.push("--gas-price");
args.push(`${options.gasPrice}`);
}

logger.info("Starting process ...");

console.log("\n");
Expand Down

0 comments on commit 6ea00eb

Please sign in to comment.