Skip to content

Commit

Permalink
Direct Tx pool switch (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
kosecki123 authored and e00dan committed Jan 25, 2019
1 parent 4dd2ff8 commit 6cc2e29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"homepage": "https://github.com/ethereum-alarm-clock/eac.js-cli#readme",
"dependencies": {
"@ethereum-alarm-clock/lib": "0.1.0",
"@ethereum-alarm-clock/timenode-core": "6.0.1",
"@ethereum-alarm-clock/timenode-core": "6.1.0",
"bignumber.js": "5.0.0",
"bluebird": "3.5.3",
"clear": "0.1.0",
Expand Down
2 changes: 2 additions & 0 deletions src/TimeNode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const timenode = async (options, program) => {
options.minBalance = config.minBalance || options.minBalance;
options.minProfitability = config.minProfitability || options.minProfitability;
options.maxGasSubsidy = config.maxGasSubsidy || options.maxGasSubsidy;
options.directTxPool = config.directTxPool || options.directTxPool;
providerUrls = config.providers || providerUrls
/* eslint-enable */
}
Expand Down Expand Up @@ -102,6 +103,7 @@ For more info on claiming, see: https://blog.chronologic.network/how-to-mitigate
statsDb,
walletStores: encKeystores,
economicStrategy,
directTxPool: options.directTxPool,
});

await config.statsDbLoaded;
Expand Down
1 change: 1 addition & 0 deletions src/program.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ program
.option('--usingSmartGasEstimation', 'Trying to match the gasPrice with remaining time for execution')
.option('--ms <number>', 'Sets the scanning frequency of the TimeNode', 4000)
.option('--scan <number>', 'Sets the scanning spread', 75)
.option('--directTxPool', '(experimental) Use direct transaction pool watcher instead of node pool watcher')
.action((options) => catchErrors(timenode(options, program)))


Expand Down

0 comments on commit 6cc2e29

Please sign in to comment.