aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-07-05 22:06:05 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-07-05 22:06:05 +0800
commit5e38f7a664aa5401117f1e1705ec97476b19411e (patch)
tree816c746189410b150636f99271f9c41d7cd903c3 /cmd/utils
parent4c1d0b164b61f0ab17c899061c04b7b48a9d20a8 (diff)
downloaddexon-5e38f7a664aa5401117f1e1705ec97476b19411e.tar
dexon-5e38f7a664aa5401117f1e1705ec97476b19411e.tar.gz
dexon-5e38f7a664aa5401117f1e1705ec97476b19411e.tar.bz2
dexon-5e38f7a664aa5401117f1e1705ec97476b19411e.tar.lz
dexon-5e38f7a664aa5401117f1e1705ec97476b19411e.tar.xz
dexon-5e38f7a664aa5401117f1e1705ec97476b19411e.tar.zst
dexon-5e38f7a664aa5401117f1e1705ec97476b19411e.zip
cmd, core: add --txpool.nolocals to disable local price exemptions
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index b5a593ab6..0159364af 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -209,6 +209,10 @@ var (
Value: eth.DefaultConfig.EthashDatasetsOnDisk,
}
// Transaction pool settings
+ TxPoolNoLocalsFlag = cli.BoolFlag{
+ Name: "txpool.nolocals",
+ Usage: "Disables price exemptions for locally submitted transactions",
+ }
TxPoolPriceLimitFlag = cli.Uint64Flag{
Name: "txpool.pricelimit",
Usage: "Minimum gas price limit to enforce for acceptance into the pool",
@@ -831,6 +835,9 @@ func setGPO(ctx *cli.Context, cfg *gasprice.Config) {
}
func setTxPool(ctx *cli.Context, cfg *core.TxPoolConfig) {
+ if ctx.GlobalIsSet(TxPoolNoLocalsFlag.Name) {
+ cfg.NoLocals = ctx.GlobalBool(TxPoolNoLocalsFlag.Name)
+ }
if ctx.GlobalIsSet(TxPoolPriceLimitFlag.Name) {
cfg.PriceLimit = ctx.GlobalUint64(TxPoolPriceLimitFlag.Name)
}