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

Optimize the quorum bitmap lookup when there is just one operator #501

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

jianoaix
Copy link
Contributor

@jianoaix jianoaix commented Apr 19, 2024

Why are these changes needed?

We are going to add operator registration metric at Node. When operator is querying their own metrics from the chain, we'd want to reduce the number of RPC calls needed.

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@jianoaix jianoaix requested review from ian-shim and 0x0aa0 April 19, 2024 17:47
core/eth/tx.go Outdated
Context: ctx,
}, t.Bindings.RegCoordinatorAddr, [][32]byte{byteId}, blockNumber)
if err != nil {
if err.Error() == "RegistryCoordinator.getQuorumBitmapIndexAtBlockNumber: no bitmap update found for operatorId at block number" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this equality match the err properly? have we checked this is the exact string that gets returned for this error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @0x0aa0 is helping check the details, but haven't tested yet

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'm sure it's "execution reverted: RegistryCoordinator.getQuorumBitmapIndexAtBlockNumber: no bitmap update found for operatorId at block number"

@jianoaix jianoaix merged commit a05def3 into Layr-Labs:master Apr 19, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

3 participants