unblock method
- CID cid
Removes a CID from the in-memory denylist.
Also drops path rules and computed double-hash entries anchored at the CID's multihash, so the CID is fully unblocked.
Implementation
void unblock(CID cid) {
final snapshot = _copySnapshot();
snapshot.cidStrings.remove(cid.encode());
final multihashHex = _multihashHex(cid.multihash);
snapshot.multihashHexes.remove(multihashHex);
snapshot.ipfsPathRules.remove(multihashHex);
_removeHashedCidEntries(
cid,
snapshot.hashedMultihashes,
snapshot.legacyHashHexes,
);
_snapshot = snapshot;
}