From cce60d5fcad490b60042609baaf808745508f494 Mon Sep 17 00:00:00 2001 From: Jin Qiao Date: Wed, 29 Apr 2020 10:31:47 +0800 Subject: [PATCH] Add TODO comment to warn future delete case --- src/neo/Ledger/Blockchain.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/neo/Ledger/Blockchain.cs b/src/neo/Ledger/Blockchain.cs index 941f3e7e69..28f149dc20 100644 --- a/src/neo/Ledger/Blockchain.cs +++ b/src/neo/Ledger/Blockchain.cs @@ -489,6 +489,7 @@ private void Persist(Block block) } snapshot.Blocks.Add(block.Hash, block.Trim()); StoreView clonedSnapshot = snapshot.Clone(); + // TODO: Handle occassions where Datacache.Delete() is called by variable snapshot foreach (Transaction tx in block.Transactions) { var state = new TransactionState