Improved error message on net parameters mismatch during node startup (#3003)

This commit is contained in:
Shams Asari 2018-04-25 14:33:07 +01:00 committed by GitHub
parent 486441c383
commit e09fc60294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)