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

Fix Swarm<T>.PreloadAsync() missing genesis states #512

Merged
merged 2 commits into from
Sep 17, 2019

Conversation

dahlia
Copy link
Contributor

@dahlia dahlia commented Sep 11, 2019

This patch fixes a bug, made by 6e7249f, that Swarm<T>.PreloadAsync() silently misses the states resulted from actins in a genesis block (both tx actions and block actions) when it downloads states from trusted peers.

As the change made this bug hasn't been released yet, I skipped the changelog.

@dahlia dahlia added the bug Something isn't working label Sep 11, 2019
@dahlia dahlia added this to the 0.6.0 milestone Sep 11, 2019
@dahlia dahlia requested a review from a team September 11, 2019 10:11
@dahlia dahlia self-assigned this Sep 11, 2019
longfin
longfin previously approved these changes Sep 12, 2019
limebell
limebell previously approved these changes Sep 12, 2019
moreal
moreal previously approved these changes Sep 12, 2019
CHANGES.md Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 13, 2019

Codecov Report

Merging #512 into master will increase coverage by 0.05%.
The diff coverage is 98.73%.

@@            Coverage Diff             @@
##           master     #512      +/-   ##
==========================================
+ Coverage   90.07%   90.12%   +0.05%     
==========================================
  Files         201      201              
  Lines       14718    14791      +73     
==========================================
+ Hits        13257    13331      +74     
+ Misses       1177     1176       -1     
  Partials      284      284
Impacted Files Coverage Δ
Libplanet/Action/PolymorphicAction.cs 95.83% <0%> (-2.04%) ⬇️
Libplanet.Tests/Blockchain/BlockChainTest.cs 98.53% <100%> (+0.03%) ⬆️
Libplanet/Blockchain/BlockChain.cs 94.18% <100%> (+0.01%) ⬆️
Libplanet/Net/Swarm.cs 81.79% <100%> (+0.26%) ⬆️
Libplanet.Tests/Net/SwarmTest.cs 97.89% <100%> (+0.03%) ⬆️
Libplanet/Net/Protocols/KademliaProtocol.cs 61.44% <0%> (+0.57%) ⬆️

earlbread
earlbread previously approved these changes Sep 16, 2019
CHANGES.md Outdated Show resolved Hide resolved
@dahlia dahlia dismissed stale reviews from earlbread, moreal, limebell, and longfin via 083024e September 17, 2019 05:37
@dahlia dahlia force-pushed the fix-preload-missing-genesis-states branch from b4820e2 to 083024e Compare September 17, 2019 05:37
@dahlia
Copy link
Contributor Author

dahlia commented Sep 17, 2019

@planetarium/libplanet Adjusted the changelog. Please approve this again.

@dahlia dahlia merged commit 445b230 into planetarium:master Sep 17, 2019
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.

5 participants