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
Questions about SEP102: Adjustment of Used Gas #42
Comments
I can not fully understand your pseudo code. Can you elaborate on it? |
https://www.smartscan.cash/block/2989379 I think this is more typical. |
We had to add the following code to ensure that gas was sufficient.
|
I think smartBCH is not able to correctly estimate the gas of this function.
|
Some txs sent to your email, it is sent by protonmail. Maybe in the trash mail. |
Got the mail. We'll study it. |
https://www.smartscan.cash/block/3183469 Is this block normal? |
This low-level bug, made me execute 61 reverted transactions today, until I manually raised the gaslimit. What a bad day! |
Please make your question more specific. Why is this block abnormal? |
Is it normal for too many transactions to fail because of insufficient gas? Now, let's say the gas estimate is 100, if you set it to 100, it may fail due to out of gas, if you set it to 120, it will execute successfully, and only consume 80. |
Well, if normal DApp's users have such a problem, we'd better figure out a way to optimize it. If only arbitrage transactions suffer from this, then it is not the first priority to optimize it. For arbitrage, fairness is more important than gas efficiency. If you have such a problem, other arbitragers have it too. So it is fair. |
I see, the goal of SmartBCH is that the normal dApp user can execute one or two simple transactions without problems. If some complex transactions go wrong, it doesn't really matter. Because all other complex contracts are also not executed correctly. SmartBCH does not promise that complex contracts will be executed correctly, please write some simple contracts. If everyone has a problem, it's not a problem, it's fair. That's a good point. Stay hungry, stay foolish, and everyone will feel fair. There really shouldn't be any quality requirements for personal projects. Anyway, good job! |
Now complex contracts are executing correctly on smartBCH. They work just as the specifications, including SEP102. Sorry, we cannot take your words as the specification. |
Thanks, classifying one transaction as a normal dApp transaction or an arbitrage transaction to determine if there is a bug is the most interesting thing I learned about EVM. |
Thank you for this information. I was having the same problem. |
This penalty can be bypassed with a small piece of code, which doesn't really make much sense. And hope to improve the accuracy of the estimated gas.
The text was updated successfully, but these errors were encountered: