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

Config validation requires ws url when http polling disabled #14929

Conversation

huangzhen1997
Copy link
Contributor

@huangzhen1997 huangzhen1997 commented Oct 23, 2024

Description

We made WS URL to be optional after we supported HTTP polling. However the http polling requires newHeadPollingInterval flag to be > 0, otherwise ws subscription will be used and ws url can’t be missing.

Add the check in validation function to cover this case

Reference:

https://smartcontract-it.atlassian.net/browse/BCFR-1067

@huangzhen1997 huangzhen1997 changed the title new head polling interval check when ws url missing config validation when WS URL is not provided, check the newHeadPollingInterval cannot be zero Oct 23, 2024
@huangzhen1997 huangzhen1997 changed the title config validation when WS URL is not provided, check the newHeadPollingInterval cannot be zero Config validation requires ws url when http polling disabled Oct 23, 2024
@huangzhen1997 huangzhen1997 marked this pull request as ready for review October 23, 2024 22:33
@huangzhen1997 huangzhen1997 requested review from a team as code owners October 23, 2024 22:33
@huangzhen1997 huangzhen1997 requested a review from a team as a code owner October 23, 2024 22:36
@patrick-dowell patrick-dowell added this pull request to the merge queue Oct 24, 2024
Merged via the queue into develop with commit da5910e Oct 24, 2024
132 checks passed
@patrick-dowell patrick-dowell deleted the BCFR-1067/newHeadPollingInterval-check-when-ws-url-missing branch October 24, 2024 20:10
matYang pushed a commit to smartcontractkit/ccip that referenced this pull request Nov 14, 2024
Optional WS URL for RPCs to unblock new chain integration.
Charry-picks from:
smartcontractkit/chainlink#14354
smartcontractkit/chainlink#14373
smartcontractkit/chainlink#14534
smartcontractkit/chainlink#14364
smartcontractkit/chainlink#14929

---------

Co-authored-by: Joe Huang <joe.huang@smartcontract.com>
matYang added a commit to smartcontractkit/ccip that referenced this pull request Nov 18, 2024
Optional WS URL for RPCs to unblock new chain integration.
Charry-picks from:
smartcontractkit/chainlink#14534
smartcontractkit/chainlink#14364
smartcontractkit/chainlink#14929

---------

Co-authored-by: Joe Huang <joe.huang@smartcontract.com>
Co-authored-by: Adam Hamrick <adam.hamrick@smartcontract.com>
Co-authored-by: Chunkai Yang <matYang@users.noreply.github.com>
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.

4 participants