update cache

This commit is contained in:
NikVolf 2016-12-09 14:23:12 +01:00
parent f4690712d0
commit 8d9a65a85d
1 changed files with 2 additions and 1 deletions

View File

@ -246,8 +246,9 @@ impl Storage {
let tx = self.transaction(tx_hash)
.expect("Transaction in the saved block should exist as a separate entity indefinitely");
// remove meta
// remove meta & meta cache
context.db_transaction.delete(Some(COL_TRANSACTIONS_META), &**tx_hash);
self.meta_cache.write().remove(&tx_hash);
// coinbase transaction does not have inputs
if tx_hash_num == 0 {