Unhelpful fee-related error messages #1400
Labels
I: configuration
Internal: related to Hermes configuration
I: dependencies
Internal: related to dependencies
O: usability
Objective: cause to improve the user experience (UX) and ease using the product
Milestone
Summary
From a Hermes user:
We had this in logs:
Increasing
max_gas
[i.e., permitting more gas to be used, with unchanged gas price] to absurd values just increases the required gas:In the end, changing the
price
from 0.01 to 0.025 solved the issueProblem Definition
The error messages
and
seems to suggest that the user should increase the amount of gas that they allocate to their transaction. But that doesn't really fix it. In case of non-experts who do not know the
fee = gas * price
equation, this error message is not helpful.We can also recreate a similar problem, using
gm
:gm.toml
gm start
,gm hermes config
gm hermes keys
a
in the .hermes/config.tomlgas_price = { price = 0.00, denom = 'stake' }
(notice the zeroes) andmax_gas = 5000
hermes create client a b
Again, the error message is not really helpful. The problem is that the gas price is zero, so even if we increase
max_gas
, we'll encounter the same problem over and over, until we change theprice = 0.00
toprice = 0.001
or something non-zero.Proposal
At the relayer level, improving this error message is possible because we know the error codes.
The relayer also knows how to compute the fees and whether it is using zero gas
price
.Acceptance criteria
insufficient fee
andout of gas
errors. the underlying cause, i.e.,price
vs. amount ofgas
should be clear from logscode=Err(11)
from crate tendermint-rs so that Hermes can reliably detect the error message and infer that the problem is with a misconfiguration on the feesprice
is zero, Hermes should signal that in the error logFor Admin Use
The text was updated successfully, but these errors were encountered: