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

Use observed home chain reader in CCIP #15628

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

mateusz-sekara
Copy link
Collaborator

Requires

Supports

t *testing.T,
cr types.ContractReader,
ccAddress common.Address,
chainID string,
Copy link
Contributor

Choose a reason for hiding this comment

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

what is chainID? (evm) Maybe we want to (also) use chainSelector?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It could be anything that is an identifier (for evm it's going to be integer). ChainSelectors doesn't make sense for monitoring, because they are randomized and very hard to analyze dashboards with chainSelectors instead of chainID

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We already have common.Address here, so no need to make it agnostic at this stage. This is also used only in test code

hcr := ccipreader.NewObservedHomeChainReader(
cr,
logger.TestLogger(t),
50*time.Millisecond,
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: You can define 50ms in a const. While going through the PR I have to go the actual method to understand what this is.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've only fixed formatting here :P

Copy link
Contributor

@makramkd makramkd left a comment

Choose a reason for hiding this comment

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

🚢

@mateusz-sekara mateusz-sekara added this pull request to the merge queue Dec 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2024
@mateusz-sekara mateusz-sekara added this pull request to the merge queue Dec 11, 2024
Merged via the queue into develop with commit 6101be7 Dec 11, 2024
188 checks passed
@mateusz-sekara mateusz-sekara deleted the use-proper-home-chain-reader branch December 11, 2024 11:30
george-dorin pushed a commit that referenced this pull request Jan 13, 2025
* Switching to the observed version

* Switching to the observed version
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.

None yet

5 participants