diff --git a/client/state-db/src/noncanonical.rs b/client/state-db/src/noncanonical.rs index 1a680b16ffbe..de6d1bfcf8bb 100644 --- a/client/state-db/src/noncanonical.rs +++ b/client/state-db/src/noncanonical.rs @@ -524,7 +524,8 @@ impl NonCanonicalOverlay { /// 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();