You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Panic in Relayer when Configuring Feegrant with Multiple Grant Results
Description
Encountering a panic in the Cosmos Relayer when attempting to configure feegrant using an existing allowance. This issue occurs when there is more than one page of results for the "query grants by granter" AllowancesByGranter RPC query.
Steps to Reproduce
Set up a feegrant allowance for a grantee from a granter.
Use the following command to configure the relayer:
Good error report. This happens because there is bad logic in the paginator chains/cosmos/query.go:256 that's only triggered if there are multiple pages of grants for the granter. So for most users, this is never triggered.
The fix will involve removing the nil pointer dereference and writing an interchaintest case to prove the paginator works properly. Then @danbryan can test it again using the same exact command he used initially.
In the meantime, there is an easy workaround, which is to set block_last_verified: 0 to any block height greater than 0 in the config.
Here are the changes i would suggest to make this tool more operator friendly.
1.) Don't require operators to set block_last_verified > 0
2.) allow the address to be used in the grantees
3.) update the stdout log to reflect the true fee payer
4.) have some documentation on how to update the config to use an external feegrant.
Reecepbcups
added
the
T: Bug 🪲
TYPE: Inconsistencies or issues which will cause an issue or problem for users or implementors.
label
Jun 15, 2024
GitHub Issue for Cosmos Relayer
Title
Panic in Relayer when Configuring Feegrant with Multiple Grant Results
Description
Encountering a panic in the Cosmos Relayer when attempting to configure feegrant using an existing allowance. This issue occurs when there is more than one page of results for the "query grants by granter" AllowancesByGranter RPC query.
Steps to Reproduce
Configuration
Additional Context
Links
Documentation for Feegrant Configuration
Steps Taken
Successfully ran the update client with the configured feegrant:
Transaction details:
kujira1x9fxqdkg4rumkzrck8t3qnhm30jgfsx9ntcpas
However, the relayer panics and might be preventing additional necessary configurations.
The text was updated successfully, but these errors were encountered: