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

Removed static node #943

Merged
merged 7 commits into from
Oct 29, 2021
Merged

Removed static node #943

merged 7 commits into from
Oct 29, 2021

Conversation

AnthonyLaw
Copy link
Member

Node

  • Request the node from the statistic service.

@AnthonyLaw AnthonyLaw linked an issue Oct 12, 2021 that may be closed by this pull request
@OlegMakarenko OlegMakarenko requested review from OlegMakarenko and bassemmagdy and removed request for bassemmagdy October 13, 2021 13:48
let nodePeers = await this.getNodePeers();

// Get the chain height and finalized height from HeightStats
const suggestedChainHeight = nodeHeightStats[0].data.sort((a, b) => b.y - a.y)[0].x;
Copy link
Contributor

@OlegMakarenko OlegMakarenko Oct 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think statistics service (REST) should return this. It can be also used in other apps

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we can add a new endpoint for that.

symbol/statistics-service#67

@OlegMakarenko
Copy link
Contributor

What if statistics service is down? Should we keep a node list in the config for that case?

@AnthonyLaw
Copy link
Member Author

What if statistics service is down? Should we keep a node list in the config for that case?

In the discord discussion, we should not have any hardcoded node lists.

src/store/api.js Outdated
/**
* get Nodes list for node selector
*/
async nodeSelector({ commit, getters }) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe 'loadNodeList`?

@sonarcloud
Copy link

sonarcloud bot commented Oct 29, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@AnthonyLaw AnthonyLaw merged commit 1ff60cd into symbol:dev Oct 29, 2021
@AnthonyLaw AnthonyLaw deleted the removed-static-node branch October 29, 2021 20:43
AnthonyLaw added a commit that referenced this pull request Oct 31, 2021
* Update ru.json

* Update ru.json

* Update src/config/i18n/ru.json

Co-authored-by: OlegMakarenko <[email protected]>

* Update src/config/i18n/ru.json

Co-authored-by: OlegMakarenko <[email protected]>

* Update ru.json

* fix: display reward program on csv column.

* fix: mosaic preview popover

* fix: add server response Cache-Control header

* fix: Added missing network types

* Update ru.json

Added changes to the Russian version

* Update ru.json

* Update ru.json

Updated Symbol Explorer (ru)

* Update ru.json

Updated Symbol Explorer (ru)

* Add files via upload

* Delete ru.json

* Bump path-parse from 1.0.6 to 1.0.7 (#926)

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump url-parse from 1.5.1 to 1.5.2 (#938)

Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](unshiftio/url-parse@1.5.1...1.5.2)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: add app version on footer. (#931)

* Minor fix (#940)

* fix: only display relative supply on mosaic detail

* fix: missing translation label.

* fix: upgraded symbol-sdk to alpha that accepts new rest address format (#944)

* fix: enable ru language (#949)

* Remove node reward related (#947)

* refactor: remove node reward related item

* refactor: remove node reward widgets

Co-authored-by: OlegMakarenko <[email protected]>

* fix: update translation (#950)

* fix: update translation

* Update src/config/i18n/ua.json

Co-authored-by: OlegMakarenko <[email protected]>

* Enable https (#932)

fix: change ws to wss
fix: add logic check isHttpsEnabled for the domain

* feat: update latest SDK (#953)

* feat: update latest SDK

* fix: package dependecy issue

* fix: use npm v7

* fix: specify engines version

* fix: update footer config (#952)

* fix: use address resolution get expire namespace (#930)

Co-authored-by: OlegMakarenko <[email protected]>

* Removed static node (#943)

* feat: add new getAPINodeList method.

* fix: removed statis node list

* style: fix lint

* refactor: request node list used preferred filter

* fix: pick the node random base on the list

* fix: added limit to node list

* fix: rename

* Minor update (#954)

* refactor: remove unused method

* fix: get ssl ready node from service

* fix: update default config

* style: fix lint and sonar feedback

* docs: release note 1.1.1 (#955)

* docs: release note 1.1.1

* docs: fix typo

Co-authored-by: Klim Geran <[email protected]>
Co-authored-by: OlegMakarenko <[email protected]>
Co-authored-by: AnthonyLaw <[email protected]>
Co-authored-by: Oleg Makarenko <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@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.

Removed hardcored node list
2 participants