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

Select Best Node #26

Merged
merged 6 commits into from
Jan 22, 2018
Merged

Select Best Node #26

merged 6 commits into from
Jan 22, 2018

Conversation

revett
Copy link

@revett revett commented Jan 22, 2018

Problem

Currently you manually set a node that you wish to use for RPC calls. This is good but that node may fall behind other nodes.

Solution

Instead the package should semi-intelligently work out which nodes is the best to use out of a group from their respective block heights.

Using neo.NewClientUsingMultipleNodes() allows for this.

It will call each node and select the one with highest block height. At any point, client. SelectBestNode() can be called to repeat this process.

This has been added to the tests to make them more reliable.

Remember

  • Bump VERSION
  • Update CHANGELOG.md
  • Update README.md
  • Write tests

@revett revett added the Feature label Jan 22, 2018
@revett revett self-assigned this Jan 22, 2018
@revett revett changed the title Select best node available Select Best Node Jan 22, 2018
@revett revett merged commit 411fb63 into master Jan 22, 2018
@revett revett deleted the feat/multi-node-select branch January 22, 2018 22:22
@revett revett mentioned this pull request Jan 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant