Skip to content

Optimize event-dependent query functions #62

@vmarkushin

Description

@vmarkushin

Seems like (requires confirmation), querying the events (eth_getLogs) for a long block range may take a lot of time. Currently, this is somehow mitigated by doing a query starting from the contract creation block contract_creation_block(). Try to find a more optimized way to do that. Functions that require refactoring:

  • query_client_update_time_and_height
  • query_received_packets
  • query_send_packets
  • query_client_state
  • query_client_consensus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions