Skip to content

Conversation

capt4ce
Copy link
Contributor

@capt4ce capt4ce commented Nov 6, 2019

Description

Refactoring Node Scrambling mechanism so that the data can be used across services. Also exposing ScrambledNodes of the host to the API call GetHostInfo.

when requested with testing framework. The ScrambledNodes also included in the response:
Screen Shot 2019-11-06 at 17 51 59

Breakdown

  • Moving BuildScrambledNodes to NodeRegistrationService
  • Add GetScrambledNodes in NodeRegistrationService
  • Refactor PriorityStrategy to use functions related to Scrambled nodes from NodeRegistrationService
  • Initiate ScrambledNodes on starting the node
  • Expose ScrambledNodes and ScrambledNodesHeight of the host to the API call GetHostInfo.
  • Add necessary unit tests

requires zoobc/zoobc-schema#73

Reference Issue

Close #398 #387

Step to Test (optional)

  • go test ./...

@capt4ce capt4ce added the ENHANCE label Nov 6, 2019
@capt4ce capt4ce added this to the Milestone 9 milestone Nov 6, 2019
@capt4ce capt4ce changed the title 398 387 expose node scrambling and priority peers 398 387 refactor and expose node scrambling and priority peers Nov 7, 2019
@andy-shi88 andy-shi88 merged commit e875c5f into develop Nov 8, 2019
@andy-shi88 andy-shi88 deleted the 398-387-expose-node-scrambling-and-priority-peers branch November 8, 2019 03:23
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.

Enhance: Move node scrambling function
3 participants