mirror of
https://github.com/corda/corda.git
synced 2024-12-20 21:43:14 +00:00
Improved error message on net parameters mismatch during node startup (#3003)
This commit is contained in:
parent
486441c383
commit
e09fc60294
@ -128,9 +128,10 @@ class NetworkMapUpdater(private val networkMapCache: NetworkMapCacheInternal,
|
|||||||
0
|
0
|
||||||
} else {
|
} else {
|
||||||
// TODO This needs special handling (node omitted update process or didn't accept new parameters)
|
// TODO This needs special handling (node omitted update process or didn't accept new parameters)
|
||||||
logger.error("Node is using parameters with hash: $currentParametersHash but network map is " +
|
logger.error(
|
||||||
"advertising: ${networkMap.networkParameterHash}.\n" +
|
"""Node is using network parameters with hash $currentParametersHash but the network map is advertising ${networkMap.networkParameterHash}.
|
||||||
"Node will shutdown now. Please update node to use correct network parameters file.")
|
To resolve this mismatch, and move to the current parameters, delete the $NETWORK_PARAMS_FILE_NAME file from the node's directory and restart.
|
||||||
|
The node will shutdown now.""")
|
||||||
1
|
1
|
||||||
}
|
}
|
||||||
exitProcess(exitCode)
|
exitProcess(exitCode)
|
||||||
|
Loading…
Reference in New Issue
Block a user