-
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
Enable https #64
Enable https #64
Conversation
Release 0.2.0
Release 0.3.0
Release v1.0.0
Release 1.0.1
src/services/ApiNodeService.ts
Outdated
return { | ||
isAvailable: false, | ||
lastStatusCheck: Date.now(), | ||
}; | ||
} | ||
}; | ||
|
||
static getNodeInfo = async (host: string, port: number): Promise<NodeInfo | null> => { | ||
static getNodeInfo = async (host: string, port: number, protocol = 'http'): Promise<NodeInfo | null> => { |
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.
I wouldn't use the default "http" value, make it required. You want to be sure you are always sending what you want. For example, you can miss that the port is 3001 but using the the default http value.
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.
In that case, we may miss that node still in `HTTP right?
Good work @AnthonyLaw ! Looks good to be merged (after Fer's comments are resolved). p.s. Initially was concerned about the potential overlapping timers issue but when I checked the implementation saw that it's waiting for |
* Enable https (#64) * refactor: add clearTimeout in get request * style: remove one line code * feat: add https checker * fix: split nodos before init promise. * fix: add protocol support when request node info status * feat: add node health * feat: add finalization * style: fix lint, and disable unuse build script * fix: change params to required Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com> * refactor: removed node reward related code (#68) Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com> * Nodes filter (#70) * feat: add PREFERRED_NODES in config * fix: data type * feat: add filter on nodes endpoint * fix: filter preferred return api node (#72) * Add limit and client version filter (#73) * feat: add limit on node list search * feat: added client version filter * style: fix lint * fix: change request * docs: release note (#77) Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com>
* Dev -> Main (#78) * Enable https (#64) * refactor: add clearTimeout in get request * style: remove one line code * feat: add https checker * fix: split nodos before init promise. * fix: add protocol support when request node info status * feat: add node health * feat: add finalization * style: fix lint, and disable unuse build script * fix: change params to required Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com> * refactor: removed node reward related code (#68) Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com> * Nodes filter (#70) * feat: add PREFERRED_NODES in config * fix: data type * feat: add filter on nodes endpoint * fix: filter preferred return api node (#72) * Add limit and client version filter (#73) * feat: add limit on node list search * feat: added client version filter * style: fix lint * fix: change request * docs: release note (#77) Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com> * Creating new version 1.1.1 * feat: added restGatewayUrl field * feat: add ssl node query * fix: extra ":" string cause the query issue Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com> Co-authored-by: Travis CI User <travis@example.org>
* refactor: add clearTimeout in get request * style: remove one line code * feat: add https checker * fix: split nodos before init promise. * fix: add protocol support when request node info status * feat: add node health * feat: add finalization * style: fix lint, and disable unuse build script * fix: change params to required Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com>
* Dev -> Main (#78) * Enable https (#64) * refactor: add clearTimeout in get request * style: remove one line code * feat: add https checker * fix: split nodos before init promise. * fix: add protocol support when request node info status * feat: add node health * feat: add finalization * style: fix lint, and disable unuse build script * fix: change params to required Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com> * refactor: removed node reward related code (#68) Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com> * Nodes filter (#70) * feat: add PREFERRED_NODES in config * fix: data type * feat: add filter on nodes endpoint * fix: filter preferred return api node (#72) * Add limit and client version filter (#73) * feat: add limit on node list search * feat: added client version filter * style: fix lint * fix: change request * docs: release note (#77) Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com> * Creating new version 1.1.1 * feat: added restGatewayUrl field * feat: add ssl node query * fix: extra ":" string cause the query issue Co-authored-by: OlegMakarenko <33131259+OlegMakarenko@users.noreply.github.com> Co-authored-by: Travis CI User <travis@example.org>
Added
fix