-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eth: max gas price #1727
eth: max gas price #1727
Conversation
1e2cc1c
to
776a65a
Compare
28df87e
to
217d4a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're following the deprecation procedure described in
Should have addressed remaining comments, added max gas price to node stats in CLI, improved error logging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1bc1b8b
to
d05dd4d
Compare
Rebased and tested on rinkeby, pending green CI |
d05dd4d
to
e4f504b
Compare
Finally got CI to pass , kept running into issues with unrelated tests in the server repo (SubmitSegment). |
What does this pull request do? Explain your changes. (required)
Changes
-gasPrice
flag to-maxGasPrice
and allows users to set a max gas price to pay for transactions.Specific updates (required)
Changes
-gasPrice
flag to be-maxGasPrice
instead. Removes-gasLimit
flag (seems superflious).Implements
SuggestGasPrice
that checks for the max gas price when set ,MaxGasPrice
andSetMaxGasPrice
onBackend
.Changes CLI server API endpoings
/gasPrice
and/setGasPrice
to/maxGasPrice
and/setMaxGasPrice
Since the gasLimit flag is removed and the
gasPrice
flag repurposedLivepeerEthClient.GasInfo
andLivepeerEthClient.SetGasInfo
are no longer needed and removed.Moved unlocking the Eth account into the
LivepeerEthClient
constructor and removedLivepeerEthClient.Setup
as it now only unlocks the account after removingLivepeerEthClient.SetGasInfo
Updates the CLI to allow for setting a max gas price
How did you test each of these updates (required)
Does this pull request close any open issues?
Fixes #1671
Checklist:
./test.sh
pass