-
Notifications
You must be signed in to change notification settings - Fork 426
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
fix Bifrost mainnet and testnet gas limit Issue #2710
Conversation
any example for failed transaction? |
@vvvvvv1vvvvvv In MetaMask, the gas limit provided by the dApp is used directly, without applying any multiplier, which allows the transaction to succeed. In contrast, Rabby applies a 1.5x multiplier to the estimated gas limit. On the Bifrost network, where the maximum gas limits are capped (52 million on testnet and 43.3 million on mainnet), this multiplier can result in a gas limit exceeding the allowed threshold for a single transaction. As a result, the transaction is rejected by the RPC node and doesn't even reach the transaction pool. I cannot provide an example of a failed transaction since it fails at the validation stage before inclusion in the transaction pool. However, I am attaching screenshots from MetaMask and Rabby for clarity: Image 1: MetaMask uses the exact gas limit value provided by the dApp. |
@vvvvvv1vvvvvv Is there any update regarding this issue? |
1.2x does not solve the problem, it just happens that your transaction will not exceed @heisenberg-2077 can you check this? |
@vvvvvv1vvvvvv @heisenberg-2077 For substrate based chains, such as polkadot or our own chain, the default setup that a single transaction can consume is 86% of the maximum block gas limit. For instance, if the gas limit is set to
Is there an option that it can be specifically set to 86% for our chain? |
@dnjscksdn98 |
Rabby's gas estimation logic currently applies a buffer of 1.5x on all networks, except for Moonbeam and Moonriver, where it uses a 2x buffer as the SAFE_GAS_LIMIT_RATIO.
However, on the Bifrost network, certain transactions are failing due to excessively high gas limits. These transactions are being rejected by the RPC node because the gas limit exceeds the allowed threshold for a single transaction.
To address this issue, it would be safer to use a 1.2x buffer on the Bifrost network instead.
Notably, this issue has not been observed in MetaMask, nor was it encountered when using Rabby on the Bifrost network under typical conditions.
Please let me know if you have any questions or need further clarification!