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

Enrich routing table #772

Merged
merged 8 commits into from
Jan 30, 2020
Merged

Conversation

limebell
Copy link
Member

Routing table now stores peers with its last updated time, last checked (ping/pong) time and its latency.

@limebell limebell added the network Related to networking (Libplanet.Net) label Jan 22, 2020
@limebell limebell requested review from dahlia, longfin and moreal January 22, 2020 06:37
@limebell limebell self-assigned this Jan 22, 2020
@limebell limebell requested a review from longfin January 23, 2020 02:11
longfin
longfin previously approved these changes Jan 23, 2020
Copy link
Member

@longfin longfin left a comment

Choose a reason for hiding this comment

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

It seems to need to rebase.

Copy link
Contributor

@dahlia dahlia left a comment

Choose a reason for hiding this comment

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

Could we avoid these downcastings to (KademliaProtocol)?

@limebell limebell requested review from dahlia and earlbread January 29, 2020 09:26
earlbread
earlbread previously approved these changes Jan 29, 2020
@limebell
Copy link
Member Author

limebell commented Jan 29, 2020

Could we avoid these downcastings to (KademliaProtocol)?

@dahlia It will be great to be in another PR, since some features are KademliaProtocol specific so need a discussion to be added in IProtocol or not.

earlbread
earlbread previously approved these changes Jan 29, 2020
@codecov
Copy link

codecov bot commented Jan 29, 2020

Codecov Report

Merging #772 into master will decrease coverage by 0.16%.
The diff coverage is 54.36%.

@@            Coverage Diff             @@
##           master     #772      +/-   ##
==========================================
- Coverage   86.62%   86.45%   -0.17%     
==========================================
  Files         225      226       +1     
  Lines       19380    19427      +47     
==========================================
+ Hits        16787    16795       +8     
- Misses       1393     1425      +32     
- Partials     1200     1207       +7
Impacted Files Coverage Δ
Libplanet.Tests/Net/Protocols/ProtocolTest.cs 100% <ø> (ø) ⬆️
Libplanet/Net/Swarm.cs 84.13% <0%> (-0.41%) ⬇️
Libplanet/Net/PeerState.cs 100% <100%> (ø)
Libplanet.Tests/Net/Protocols/RoutingTableTest.cs 96.89% <100%> (ø) ⬆️
Libplanet/Net/Protocols/KademliaProtocol.cs 64.09% <17.39%> (-2.85%) ⬇️
Libplanet/Net/NetMQTransport.cs 76.39% <33.33%> (-0.44%) ⬇️
Libplanet/Net/Protocols/RoutingTable.cs 84.25% <40%> (-4.09%) ⬇️
Libplanet/Net/Protocols/KBucket.cs 85.59% <71.42%> (-6.85%) ⬇️
... and 1 more

@limebell limebell force-pushed the feature/peer-info branch 2 times, most recently from 2ae8f34 to 7efec13 Compare January 30, 2020 07:40
@limebell limebell requested a review from dahlia January 30, 2020 07:40
dahlia
dahlia previously approved these changes Jan 30, 2020
earlbread
earlbread previously approved these changes Jan 30, 2020
longfin
longfin previously approved these changes Jan 30, 2020
moreal
moreal previously approved these changes Jan 30, 2020
@limebell limebell dismissed stale reviews from moreal, longfin, earlbread, and dahlia via 2477b3d January 30, 2020 08:30
@limebell limebell requested review from moreal, dahlia, earlbread and longfin and removed request for moreal January 30, 2020 08:31
@limebell limebell merged commit 23dd63f into planetarium:master Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
network Related to networking (Libplanet.Net)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants