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

Feature/optional ws url #1527

Merged
merged 16 commits into from
Nov 14, 2024
Merged

Conversation

dhaidashenko
Copy link
Collaborator

@dhaidashenko dhaidashenko commented Nov 9, 2024

* adding feature flag for LogBroadcaster, true by default

* fix test part 1

* fix test

* fix more test

* fix test

* fix test

* one more

* edit changeset

* update changeset

(cherry picked from commit bf6618d)
* add functions for newHead polling

* add new flag, NewHeadsPollInterval

* fix test

* fix test

* step for adding polling new head impelmentation and sync+outOfSync loop handling logic. To add unit test

* fix lint

* add unit test

* update changeset

* update comments

* simplify step 1, need to fix test

* remove tests, no longer needed

* fix lint

* fix mock

* fix simulated client

* update interface

* rm more

* temp update for testing log level

* temp update

* revert modification to polygon toml

* enable heap monitoring

* enable for testing

* revert

* Dmytro's comments

* make func private

* fix test

* add polling support for SubscribeNewHeaddocke

* update log level

(cherry picked from commit 5acca37)
@cl-sonarqube-production
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
43.3% Coverage on New Code (required ≥ 75%)

See analysis details on SonarQube

huangzhen1997 and others added 4 commits November 9, 2024 13:22
…ion in rpc client (#14534)

* polling subscription to be registered

* adding changeset

* fix Subscribe new head

* add test

* update changeset

* fix lint

* fix deadlock and add unit test for http polling sub

* update changeset

* adding sub closed check and remove import

* add unit test coverage for http polling subscribeToHeads

* update test

* address comments part 1

* clean

* part 2

* fix lint

* fix lint

(cherry picked from commit de268e98b8d68a284e1260297925b91c5d2411bc)
* WS URL can be optional

* add changeset

* change

* make WSURL optional

* fix test, and enforce SubscribeFilterLogs to fail when ws url not provided

* add comments

* update changeset

* update dial logic and make ws optional not required

* fix test

* fix

* fix lint

* address comments

* update comments

* fix test

* add check when both ws and http missing

* add test and add restrictions

* add comment

* revert outdated change

* remove extra line

* fix test

* revert changes from rpc client

* unintended change

* remove unused

* update verification logic

* add test fix

* modify unit test to cover logbroadcaster enabled false

* update doc

* udpate changeset

* address PR comments

* address pr comments

* update invalid toml config

* fix test

* ws required for primary nodes when logbroadcaster enabled

* minor

* Dmytro's comments

* fix nil ptr, more fix to come

* fix make

* refactor function sig

* fix test

* fix

* make ws pointer

* fix

* fix make

* address comments

* fix lint

* fix make

* fix make

* fix make

* fix rpc disconnect with optional ws url

---------

Co-authored-by: Dmytro Haidashenko <[email protected]>
(cherry picked from commit 5d96be59a27f68f2f491a7d9f8cb0b2af4e0e835)
* add test

* add more test

* add changeset

(cherry picked from commit da5910eda98882f8a1b9ccc52b99afa223fb3997)
This reverts commit 7c91b65.
@matYang matYang merged commit 96b7ec5 into release/2.14.0-ccip1.5 Nov 14, 2024
106 of 109 checks passed
@matYang matYang deleted the feature/optional-ws-url branch November 14, 2024 14:28
matYang added a commit that referenced this pull request Nov 15, 2024
matYang added a commit that referenced this pull request Nov 15, 2024
Reverts #1527

wss changes will ship with core 2.17 release
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.

5 participants