Merge pull request #970 from ethcore/blockchain_panic_fix

temporary fix of panic in blockchain garbage collection
This commit is contained in:
Arkadiy Paronyan 2016-04-18 15:30:04 +02:00
commit 55051951f8

View File

@ -830,7 +830,8 @@ impl BlockChain {
CacheID::Extras(ExtrasIndex::BlockLogBlooms, h) => { block_logs.remove(&h); }, CacheID::Extras(ExtrasIndex::BlockLogBlooms, h) => { block_logs.remove(&h); },
CacheID::Extras(ExtrasIndex::BlocksBlooms, h) => { blocks_blooms.remove(&h); }, CacheID::Extras(ExtrasIndex::BlocksBlooms, h) => { blocks_blooms.remove(&h); },
CacheID::Extras(ExtrasIndex::BlockReceipts, h) => { block_receipts.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()); cache_man.cache_usage.push_front(HashSet::new());