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

Find blocks in store instead of in chain #1324

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ To be released.

### Bug fixes

- `Swarm<T>.PreloadAsync()` now checks the existence of blocks in the storage
(was in the blockchain). [[#1324]]

### CLI tools

[#1324]: https://github.com/planetarium/libplanet/pull/1324


Version 0.12.0
--------------

Expand Down
2 changes: 1 addition & 1 deletion Libplanet/Net/Swarm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ public async Task PreloadAsync(
FillBlocksAsyncStarted.Set();

var blockCompletion = new BlockCompletion<BoundPeer, T>(
completionPredicate: workspace.ContainsBlock,
completionPredicate: wStore.ContainsBlock,
window: InitialBlockDownloadWindow
);

Expand Down