-
Notifications
You must be signed in to change notification settings - Fork 5
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
Remove default filter #109
Conversation
2eae4ee
to
c895582
Compare
src/services/NodeMonitor.ts
Outdated
if (node.version === 0) { | ||
const nodeInfo = await ApiNodeService.getNodeInfo(node.host, 3000, 'http:'); | ||
|
||
if (nodeInfo) { | ||
nodeWithInfo.version = nodeInfo.version; | ||
} | ||
} |
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.
Why do we need to call node/info with HTTP(3000) here, looked redundant to me?
Instead of using this block, can we use the result of the following await ApiNodeService.getStatus(node.host)
in line 176? Because we already make a node/info
call inside ApiNodeService.getStatus
, no?
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.
c895582
to
dced42d
Compare
Not sure if we should introduce a breaking change. I'd go for alternative ways probably. Because we'll need to release a new version of bootstrap, explorer and the wallets. Any ideas @fboucquez and @OlegMakarenko? |
sure, It make sense, maybe not for now. |
This reverts commit d8bd094.
2bd5dbc
to
dcacc05
Compare
Breaking changemoved propertiesapiStatus.nodePublicKey
->nodePublicKey
Fix
version
search criteria, so we can get exactly the full nodes in/nodes
endpointversion
search criteria in thessl
and?filter=preferred | ?filter=suggested
, because we want users to always get the latest version of the node.ApiNodeService
, first check on thechain/info
endpoint, if it's not working, we can skip all.node/info
for every node.Add
buildHostUrl
method, it build URL base on SSL status (https/http)