mirror of
https://github.com/corda/corda.git
synced 2025-01-31 00:24:59 +00:00
CORDA-1477 backport Ent test fixes (#3292)
This commit is contained in:
parent
141d45c39d
commit
18a6e2fa2a
@ -663,7 +663,15 @@ abstract class AbstractNode(val configuration: NodeConfiguration,
|
|||||||
networkParameters: NetworkParameters): MutableList<Any> {
|
networkParameters: NetworkParameters): MutableList<Any> {
|
||||||
checkpointStorage = DBCheckpointStorage()
|
checkpointStorage = DBCheckpointStorage()
|
||||||
|
|
||||||
|
try {
|
||||||
verifyCheckpointsCompatible(checkpointStorage, cordappProvider.cordapps, versionInfo.platformVersion)
|
verifyCheckpointsCompatible(checkpointStorage, cordappProvider.cordapps, versionInfo.platformVersion)
|
||||||
|
} catch (e: CheckpointIncompatibleException) {
|
||||||
|
if (configuration.devMode) {
|
||||||
|
Node.printWarning(e.message)
|
||||||
|
} else {
|
||||||
|
throw e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val keyManagementService = makeKeyManagementService(identityService, keyPairs, database)
|
val keyManagementService = makeKeyManagementService(identityService, keyPairs, database)
|
||||||
_services = ServiceHubInternalImpl(
|
_services = ServiceHubInternalImpl(
|
||||||
|
@ -129,12 +129,8 @@ open class NodeStartup(val args: Array<String>) {
|
|||||||
cmdlineOptions.baseDirectory.createDirectories()
|
cmdlineOptions.baseDirectory.createDirectories()
|
||||||
startNode(conf, versionInfo, startTime, cmdlineOptions)
|
startNode(conf, versionInfo, startTime, cmdlineOptions)
|
||||||
} catch (e: CheckpointIncompatibleException) {
|
} catch (e: CheckpointIncompatibleException) {
|
||||||
if (conf.devMode) {
|
|
||||||
Node.printWarning(e.message)
|
|
||||||
} else {
|
|
||||||
logger.error(e.message)
|
logger.error(e.message)
|
||||||
return false
|
return false
|
||||||
}
|
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
if (e is Errors.NativeIoException && e.message?.contains("Address already in use") == true) {
|
if (e is Errors.NativeIoException && e.message?.contains("Address already in use") == true) {
|
||||||
logger.error("One of the ports required by the Corda node is already in use.")
|
logger.error("One of the ports required by the Corda node is already in use.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user