mirror of
https://github.com/corda/corda.git
synced 2025-01-18 10:46:38 +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> {
|
||||
checkpointStorage = DBCheckpointStorage()
|
||||
|
||||
try {
|
||||
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)
|
||||
_services = ServiceHubInternalImpl(
|
||||
|
@ -129,12 +129,8 @@ open class NodeStartup(val args: Array<String>) {
|
||||
cmdlineOptions.baseDirectory.createDirectories()
|
||||
startNode(conf, versionInfo, startTime, cmdlineOptions)
|
||||
} catch (e: CheckpointIncompatibleException) {
|
||||
if (conf.devMode) {
|
||||
Node.printWarning(e.message)
|
||||
} else {
|
||||
logger.error(e.message)
|
||||
return false
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
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.")
|
||||
|
Loading…
Reference in New Issue
Block a user