Fix getting not enrich blocks (#165)
This commit is contained in:
@@ -35,13 +35,12 @@ open class BlocksMemCache(
|
||||
}
|
||||
|
||||
open fun get(key: BlockId): BlockContainer? {
|
||||
return mapping.getIfPresent(key)
|
||||
return mapping.getIfPresent(key)?.let {
|
||||
return@let if (it.enriched) it else null
|
||||
}
|
||||
}
|
||||
|
||||
open fun add(block: BlockContainer) {
|
||||
// if (!block.enriched) {
|
||||
// return
|
||||
// }
|
||||
mapping.put(block.hash, block)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user