-
Notifications
You must be signed in to change notification settings - Fork 177
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
Set -maxGasPrice flag equal to max fee per gas, current implementation makes spending unpredictable #2084
Comments
I called reward and paid gas fee of 136 gwei with Using livepeer_cli Using etherscan |
Yeah the suggestion makes sense. Working on it. |
Thank you! So for me the ideal implementation would look like this:
Another thing: It might be worth considering to set the minimum priority fee to 2 gwei. Based on experience, this allows the tx to confirm considerably faster than when set to 1 or 0.5 gwei - while making almost no difference in the total tx cost. |
I'm not sure if this should be a separate issue, but I feel like this is kind of on topic since it only concerns those who set the |
Let me summarize what we currently have and we can think how to approach it. Current implementationwhen -maxGasPrice is not set
To me it looks reasonable, we try to gradually increase when -maxGasPrice is set
IssuesThere are a few issue with the current approach, (already thanks to @0xVires):
Proposed solutionI think that we should do the following:
Concerning the replacement logic, I think we should leave it as it is. That will mean that it won't activate until a user explicitly changes |
So as soon as the new round starts, the reward call would be submitted with the set Also how is the ticket redemption handled? Will it also be changed to "always send the tx with the set |
Thanks for the comment @0xVires . I also had a similar discussion with @yondonfu. As you noted, if we change the logic to always send the transaction, it's a big shift for the user, because then users would need to do manual interactions. So, we decided that it may not be such a good idea and maybe it's better to not send transactions that are highly probably to end up pending until some user interaction. In that case, we could follow your idea and keep track of unsent transactions and try to resend them later (when the base fee changes or if users manually change
|
Reopening, because we had to revert the related PR #2111 in the revert PR #2163. This was caused by the bug #2152. The problem was that the initial implementation was based on modifying the transaction in transactionManager:SendTranscation(), this in result caused a deadlock, because client.CheckTx() checked the hash of origin tx instead of the modified tx. Another approach that we plan to implement instead is to use |
I really would suggest to implement the
-maxGasPrice
as setting the max fee per gas. The current implementation makes it really unpredictable how much gas you'll end up spending. As an example: I just had a ticket redeemed at 155 gwei despite having set the maxGasPrice to 110: https://etherscan.io/tx/0x3b07dbf395c69fb028a63d69596c50d1b4c268aa5f4f417850089b9f69c5baeaHere's what happened:
With the current implementation, you could easily end up paying twice as much as your
-maxGasPrice
setting, which seems very counterintuitive to me.The text was updated successfully, but these errors were encountered: