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

Calculate state if received state height is shorter than Tip #736

Merged
merged 1 commit into from
Dec 18, 2019

Conversation

earlbread
Copy link
Contributor

This fixes a bug where the states were empty between the tip of the peer to receive the states and the tip of the downloaded block.

@earlbread earlbread added the bug Something isn't working label Dec 18, 2019
@earlbread earlbread self-assigned this Dec 18, 2019
dahlia
dahlia previously approved these changes Dec 18, 2019
@codecov
Copy link

codecov bot commented Dec 18, 2019

Codecov Report

Merging #736 into master will increase coverage by 0.02%.
The diff coverage is 94.31%.

@@            Coverage Diff             @@
##           master     #736      +/-   ##
==========================================
+ Coverage   86.71%   86.73%   +0.02%     
==========================================
  Files         222      222              
  Lines       18824    18884      +60     
==========================================
+ Hits        16323    16379      +56     
- Misses       1345     1349       +4     
  Partials     1156     1156
Impacted Files Coverage Δ
Libplanet.Tests/Net/SwarmTest.cs 95.96% <100%> (+0.1%) ⬆️
Libplanet/Net/Swarm.cs 83.13% <87.8%> (+0.06%) ⬆️
Libplanet/Net/Protocols/KBucket.cs 90.99% <0%> (-2.71%) ⬇️

limebell
limebell previously approved these changes Dec 18, 2019
longfin
longfin previously approved these changes Dec 18, 2019
dahlia
dahlia previously approved these changes Dec 18, 2019
@earlbread earlbread dismissed stale reviews from dahlia, longfin, and limebell via c9954e3 December 18, 2019 07:53
@earlbread earlbread force-pushed the fix-receive-recent-state branch from 32d410d to c9954e3 Compare December 18, 2019 07:53
@earlbread earlbread merged commit 59fd941 into planetarium:master Dec 18, 2019
@earlbread earlbread deleted the fix-receive-recent-state branch December 18, 2019 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants