Add config option for number of events queried at once when clearing pending packets #3743
Closed
7 tasks
Labels
A: easy
Admin: tasks that are easy to implement
A: good-first-issue
Admin: good for newcomers
I: CLI
Internal: related to the relayer's CLI
I: configuration
Internal: related to Hermes configuration
O: reliability
Objective: cause to improve trustworthiness and consistent performing
Milestone
Summary
Add a config option for the number of events queried at once when clearing pending packets.
Problem Definition
Right now, this value is hardcoded at
50
:hermes/crates/relayer/src/link/packet_events.rs
Line 18 in b98ca86
This is sometimes too high, eg. when some packets are huge, as experienced by the Informal Staking team where the node would error out with a
400 Bad Request
when pulling the packet data during a packet clearing:Proposal
query_packets_chunk_size
setting toconfig.toml
with a default value of50
and use that instead ofCHUNK_LENGTH
.--query-packets-chunk-size=N
CLI flag toclear packets
which overrides thequery_packets_chunk_size
if present.Acceptance Criteria
As per above.
For Admin Use
The text was updated successfully, but these errors were encountered: