From d05dd4de812266845438303e877b40faa03075dd Mon Sep 17 00:00:00 2001 From: Nico Vergauwen Date: Thu, 7 Jan 2021 02:19:08 +0100 Subject: [PATCH] cmd: adjust livepeer CLI for max gas price --- cmd/livepeer_cli/livepeer_cli.go | 2 +- cmd/livepeer_cli/wizard_eth.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/livepeer_cli/livepeer_cli.go b/cmd/livepeer_cli/livepeer_cli.go index a4db3c999c..f4a6f5d4f8 100644 --- a/cmd/livepeer_cli/livepeer_cli.go +++ b/cmd/livepeer_cli/livepeer_cli.go @@ -100,7 +100,7 @@ func (w *wizard) initializeOptions() []wizardOpt { {desc: "Invoke \"cancel unlock of broadcasting funds\"", invoke: w.cancelUnlock, notOrchestrator: true}, {desc: "Invoke \"withdraw broadcasting funds\"", invoke: w.withdraw, notOrchestrator: true}, {desc: "Set broadcast config", invoke: w.setBroadcastConfig, notOrchestrator: true}, - {desc: "Set Eth gas price", invoke: w.setGasPrice}, + {desc: "Set maximum Ethereum gas price", invoke: w.setMaxGasPrice}, {desc: "Get test LPT", invoke: w.requestTokens, testnet: true}, {desc: "Get test ETH", invoke: func() { fmt.Print("For Rinkeby Eth, go to the Rinkeby faucet (https://faucet.rinkeby.io/).") diff --git a/cmd/livepeer_cli/wizard_eth.go b/cmd/livepeer_cli/wizard_eth.go index 7a4594c169..fdd5dac481 100644 --- a/cmd/livepeer_cli/wizard_eth.go +++ b/cmd/livepeer_cli/wizard_eth.go @@ -14,7 +14,7 @@ func (w *wizard) setMaxGasPrice() { "amount": {fmt.Sprintf("%v", amount.String())}, } - httpPostWithParams(fmt.Sprintf("http://%v:%v/setGasPrice", w.host, w.httpPort), val) + httpPostWithParams(fmt.Sprintf("http://%v:%v/setMaxGasPrice", w.host, w.httpPort), val) } func (w *wizard) signMessage() {