mirror of
https://github.com/corda/corda.git
synced 2025-04-07 11:27:01 +00:00
Remove safe cast at initial registration attempt (#4427)
This commit is contained in:
parent
3b8504289a
commit
fe3182d22f
@ -83,7 +83,7 @@ class InitialRegistration(val baseDirectory: Path, private val networkRootTrustS
|
||||
|
||||
private fun initialRegistration(config: NodeConfiguration) {
|
||||
// Null checks for [compatibilityZoneURL], [rootTruststorePath] and [rootTruststorePassword] has been done in [CmdLineOptions.loadConfig]
|
||||
attempt { registerWithNetwork(config) }.doOnException(this::handleRegistrationError) as? Try.Success
|
||||
attempt { registerWithNetwork(config) }.doOnException(this::handleRegistrationError) as Try.Success
|
||||
// At this point the node registration was successful. We can delete the marker file.
|
||||
deleteNodeRegistrationMarker(baseDirectory)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user