Skip to content
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

Support passing start block when QueryExistingRegisteredOperatorPubKeys #312

Open
renlulu opened this issue Jul 30, 2024 · 0 comments
Open

Comments

@renlulu
Copy link
Contributor

renlulu commented Jul 30, 2024

Is your feature request related to a problem? Please describe.
Currently when aggregator restart, it takes minutes to query all existing registered operators from history events when using avsRegistryReader (memory version), it will take even longer when time passing and block number increasing.
Describe the solution you'd like

Is it possible to give a startBlock here:

alreadyRegisteredOperatorAddrs, alreadyRegisteredOperatorPubkeys, pubkeysErr = ops.avsRegistryReader.QueryExistingRegisteredOperatorPubKeys(ctx, nil, nil, ops.logFilterQueryBlockRange)

and here: https://github.com/Layr-Labs/eigensdk-go/blob/b2e864db4c1c07f74ea4121a42527afcc1ad85d4/services/operatorsinfo/operatorsinfo_inmemory.go#L209C50-L209C88

The start block can be the avs creation block?

Describe alternatives you've considered

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant