-
Notifications
You must be signed in to change notification settings - Fork 329
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
Hermes incorrectly reports low max gas when gas price is too low #3530
Comments
Apparently, this could also be an issue when estimating the gas needed. Need to investigate further. |
This may relate to tx simulation: {
"timestamp": "2023-10-23T06:42:45.859699Z",
"level": "WARN",
"fields": {
"message": "failed to simulate tx, falling back on default gas because the error is potentially recoverable: gRPC call `send_tx_simulate` failed with status: status: Unknown, message: \"account sequence mismatch, expected 2572, got 2573: incorrect account sequence [cosmos/cosmos-sdk@v0.47.4/x/auth/ante/sigverify.go:269] With gas wanted: '100000000' and gas used: '81119' \", details: [], metadata: MetadataMap { headers: {\"content-type\": \"application/grpc\", \"x-cosmos-block-height\": \"4534035\"} }"
},
"span": { "name": "estimate_gas" },
"spans": [
{ "chain": "uni-6", "tracking_id": "ConnectionOpenTry", "name": "send_messages_and_wait_commit" },
{ "account.sequence": "2573", "chain": "uni-6", "name": "send_tx_with_account_sequence_retry" },
{ "name": "estimate_gas" }
],
"threadId": "ThreadId(37)"
}
{
"timestamp": "2023-10-23T06:42:45.982135Z",
"level": "ERROR",
"fields": {
"message": "failed to broadcast tx with unrecoverable error",
"response": "Response { code: Err(11), data: b\"\", log: \"out of gas in location: txSize; gasWanted: 6750, gasUsed: 57053: out of gas\", hash: Hash::Sha256(96DF490E0A6A127CAD3601556047158328BB63AA305F64E3395A237D965C5409) }",
"diagnostic": "the gas requirement is higher than the configured maximum gas! please check the Hermes config.toml"
},
"span": { "account.sequence": "2573", "chain": "uni-6", "name": "send_tx_with_account_sequence_retry" },
"spans": [
{ "chain": "uni-6", "tracking_id": "ConnectionOpenTry", "name": "send_messages_and_wait_commit" },
{ "account.sequence": "2573", "chain": "uni-6", "name": "send_tx_with_account_sequence_retry" }
],
"threadId": "ThreadId(37)"
} This error happens quite often. Rn only thing I can do is wait and give it another try - quite tedious :(. Please note the |
still happening on 1.8 |
Summary of Bug
When the gas price is too low, during relaying, when Hermes encounters the following error
it incorrectly reports that
even when the gas requirement is lower than the configured
max_gas
.See the log below for an example:
Interestingly, in that case the health check for the min gas price succeeded, so there might a discrepancy between the min gas price reported by the node and the one enforced.
Version
master
Steps to Reproduce
TBD
Acceptance Criteria
For Admin Use
The text was updated successfully, but these errors were encountered: