-
Notifications
You must be signed in to change notification settings - Fork 900
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
refactor: replace HttpClient with WebSocketClient in EthStatsService #8327
base: main
Are you sure you want to change the base?
Conversation
fb9138b
to
a82fccf
Compare
when I run
Do the tests still make sense without this? |
Signed-off-by: Yash Kumar <[email protected]>
Signed-off-by: Yash Kumar <[email protected]>
874df2b
to
f9850d8
Compare
I seem to have missed that. I've removed |
private static HttpClientOptions buildHttpClientOptions( | ||
final EthStatsConnectOptions ethStatsConnectOptions) { | ||
final HttpClientOptions options = new HttpClientOptions(); | ||
|
||
if (ethStatsConnectOptions.getCaCert() != null) { | ||
options.setPemTrustOptions( | ||
new PemTrustOptions().addCertPath(ethStatsConnectOptions.getCaCert().toString())); | ||
} | ||
return options; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part seems not to have a replacement in the new code, are we loosing the feature to set this option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. It's not needed given the transition to WebSocketClient
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please elaborate, because I do not see how it will be possible to specify a custom CA certificate with websockets. (https://besu.hyperledger.org/development/public-networks/reference/cli/options#ethstats-cacert-file)
Fixes #8313