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

Add component for selecting rpc node #3887

Merged
merged 6 commits into from
May 18, 2023

Conversation

HappyBerrysBoy
Copy link
Contributor

  • Add Component in the setting page
  • Add RPC Node List in the default.json
  • Change api endpoint for loading posting/comments

Copy link

@only-dev-time only-dev-time left a comment

Choose a reason for hiding this comment

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

More explanation in my steemit comment. Further code suggestions should add as a commit.

src/app/Main.js Outdated

const steemSelectedRpc = localStorage.getItem('steemSelectedRpc');

if (steemSelectedRpc) {

Choose a reason for hiding this comment

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

Overwrites steemSelectedRpc with the config value even if a valid value was just loaded.

Suggested change
if (steemSelectedRpc) {
if (!steemSelectedRpc) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked your comment.

I fixed bug and updated your comments.
Thanks for your kindly review.

- Main.js Bug Fix(steemSelectedRpc => !steemSelectedRpc)
- Set state(rpcNode, rpcError)
- Show rpcError under component when invalid rpc url format
@steemit steemit deleted a comment from melodyzxd May 18, 2023
@ety001 ety001 merged commit e75ccdb into steemit:master May 18, 2023
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.

None yet

3 participants