Skip to content

Commit

Permalink
Don't remove source knows block after verification (#2168)
Browse files Browse the repository at this point in the history
* Don't remove source knows block after verification

* Changelog
  • Loading branch information
tomaka authored Mar 23, 2022
1 parent df9aa6e commit 970ad39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions bin/wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixed

- Fix regression introduced in version 0.6.5 where we erroneously removed entries in the mapping of which peer knows which blocks, leading to failures to request data. ([#2168](https://github.com/paritytech/smoldot/pull/2168))

## 0.6.7 - 2022-03-22

### Changed
Expand Down
4 changes: 0 additions & 4 deletions src/sync/all_forks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1584,10 +1584,6 @@ impl<TBl, TRq, TSrc> HeaderVerify<TBl, TRq, TSrc> {
// Block is valid!

// Remove the block from `pending_blocks`.
self.parent.inner.blocks.remove_sources_known_block(
self.block_to_verify.block_number,
&self.block_to_verify.block_hash,
);
let pending_block = self.parent.inner.blocks.remove_unverified_block(
self.block_to_verify.block_number,
&self.block_to_verify.block_hash,
Expand Down

0 comments on commit 970ad39

Please sign in to comment.