temporary fix of panic in blockchain garbage collection

This commit is contained in:
debris 2016-04-18 15:18:14 +02:00
parent 5aa54e0c1a
commit 524a495ffd
1 changed files with 2 additions and 1 deletions

View File

@ -830,7 +830,8 @@ impl BlockChain {
CacheID::Extras(ExtrasIndex::BlockLogBlooms, h) => { block_logs.remove(&h); },
CacheID::Extras(ExtrasIndex::BlocksBlooms, h) => { blocks_blooms.remove(&h); },
CacheID::Extras(ExtrasIndex::BlockReceipts, h) => { block_receipts.remove(&h); },
_ => panic!(),
// TODO: debris, temporary fix
CacheID::Extras(ExtrasIndex::BlockHash, _) => { },
}
}
cache_man.cache_usage.push_front(HashSet::new());