mirror of
https://github.com/corda/corda.git
synced 2024-12-21 05:53:23 +00:00
ENT-5140: Tighten network parameters checks (#6390)
* ENT-5140: Tighten network parameters checks
This commit is contained in:
parent
3721b7c701
commit
d4444e520a
@ -86,6 +86,7 @@ class NetworkParametersReader(private val trustRoot: X509Certificate,
|
||||
logger.info("No network-parameters file found. Expecting network parameters to be available from the network map.")
|
||||
networkMapClient ?: throw Error.NetworkMapNotConfigured()
|
||||
val signedParams = networkMapClient.getNetworkParameters(parametersHash)
|
||||
signedParams.verifiedNetworkParametersCert(trustRoot)
|
||||
signedParams.serialize().open().copyTo(baseDirectory / NETWORK_PARAMS_FILE_NAME)
|
||||
return signedParams
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user