From 3b83197466cee00a7fec1e58e9b7c59367e456cf Mon Sep 17 00:00:00 2001 From: parazyd Date: Sun, 5 Mar 2023 01:38:03 +0100 Subject: [PATCH] blockchain/contract_store: Add informational comment --- src/blockchain/contract_store.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blockchain/contract_store.rs b/src/blockchain/contract_store.rs index 9d01db43f..da4c5007a 100644 --- a/src/blockchain/contract_store.rs +++ b/src/blockchain/contract_store.rs @@ -198,6 +198,7 @@ impl ContractStateStore { let tree = db.open_tree(ptr)?; tree.clear()?; + // Remove the deleted tree from the state pointer set. state_pointers.retain(|x| *x != ptr); self.0.insert(contract_id_bytes, serialize(&state_pointers))?;