Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Remove debug assertion (#9283)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkpar authored Jul 6, 2021
1 parent 8c868a2 commit 5af7052
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/state-db/src/noncanonical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,8 @@ impl<BlockHash: Hash, Key: Hash> NonCanonicalOverlay<BlockHash, Key> {
/// Pin state values in memory
pub fn pin(&mut self, hash: &BlockHash) {
if self.pending_insertions.contains(hash) {
debug_assert!(false, "Trying to pin pending state");
// Pinning pending state is not implemented. Pending states
// won't be pruned for quite some time anyway, so it's not a big deal.
return;
}
let refs = self.pinned.entry(hash.clone()).or_default();
Expand Down

0 comments on commit 5af7052

Please sign in to comment.