瀏覽代碼

blockchain/contract_store: Add informational comment

parazyd 3 年之前
父節點
當前提交
3b83197466
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/blockchain/contract_store.rs

+ 1 - 0
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))?;