-
Notifications
You must be signed in to change notification settings - Fork 25
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
Set network coordinates from BeaconChain #927
Conversation
1ac19d8
to
3cfac2c
Compare
6efbe25
to
2caa99c
Compare
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.
Complex to understand as there is a lot of math and sorted list with index ...
But I can see something that may goes wrong, when the subset enter in handle_summary
function, it request the network stats of other nodes. Then when stats are retrieved the pop_slots
function is called on SummaryCache
which empty the ets table and remove the backup.
But when a node request network stats, the result is streamed from the ets table of SummaryCache
but if the requested node quickly requested network patches and pop the slots, it will not be able to respond to the GetNetworkStats
message
It might be true, we might schedule the removal of the cache a bit later, maybe after the self-repair scheduling time. |
2caa99c
to
b881c8c
Compare
b881c8c
to
da77d0e
Compare
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.
It looks like the problem of the pathc with only 2 digits is still there
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.
Working well now, I'm just thinking we should create an issue or maybe do it in this one, to add the network patch in the beaconChainSummary graphql API. (in the transform function)
e69f6b2
to
ecc8ae7
Compare
b8ce216
to
27d59af
Compare
27d59af
to
7532120
Compare
Description
This PR implement the full integration of the network patch in the beacon by building the latency matrix from all the subsets to determine the global network patch.
Fixes #72
Type of change
How Has This Been Tested?
After running two nodes, the default network patch (being the geo patch) should change based on the latency between the nodes and be persisted into the memory table for the P2P view.
Checklist: