From 6cc2e295bf4f7f8c61973ebdad7cce7e6f52f869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kosi=C5=84ski?= Date: Fri, 25 Jan 2019 16:15:36 +0100 Subject: [PATCH] Direct Tx pool switch (#181) --- package.json | 2 +- src/TimeNode/index.js | 2 ++ src/program.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index db63e66..4aea0e3 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/TimeNode/index.js b/src/TimeNode/index.js index 3040dff..43199e3 100644 --- a/src/TimeNode/index.js +++ b/src/TimeNode/index.js @@ -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 */ } @@ -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; diff --git a/src/program.js b/src/program.js index 4c053f4..fe9077f 100644 --- a/src/program.js +++ b/src/program.js @@ -105,6 +105,7 @@ program .option('--usingSmartGasEstimation', 'Trying to match the gasPrice with remaining time for execution') .option('--ms ', 'Sets the scanning frequency of the TimeNode', 4000) .option('--scan ', 'Sets the scanning spread', 75) + .option('--directTxPool', '(experimental) Use direct transaction pool watcher instead of node pool watcher') .action((options) => catchErrors(timenode(options, program)))