removed unused variable in PersistentNetworkMapCache (#1813)

val publicKey in unused in PersistentNetworkMapCache, removed.
This commit is contained in:
Alberto Arri 2017-10-06 10:45:17 +01:00 committed by GitHub
parent 66d78fcf65
commit fde30d0181

View File

@ -19,7 +19,6 @@ import net.corda.core.serialization.deserialize
import net.corda.core.serialization.serialize
import net.corda.core.utilities.NetworkHostAndPort
import net.corda.core.utilities.loggerFor
import net.corda.core.utilities.parsePublicKeyBase58
import net.corda.core.utilities.toBase58String
import net.corda.node.services.api.NetworkCacheException
import net.corda.node.services.api.NetworkMapCacheInternal
@ -274,7 +273,6 @@ open class PersistentNetworkMapCache(private val serviceHub: ServiceHubInternal)
for (nodeInfo in result) {
try {
logger.info("Loaded node info: $nodeInfo")
val publicKey = parsePublicKeyBase58(nodeInfo.legalIdentitiesAndCerts.single { it.isMain }.owningKey)
val node = nodeInfo.toNodeInfo()
addNode(node)
_loadDBSuccess = true // This is used in AbstractNode to indicate that node is ready.