Load CordaServices before NotaryService (#6173)

On node start, load CordaServices before starting the NotaryService,
so that the NotaryService can check that the services it requires are
available when starting.

Resolves #6172.
This commit is contained in:
Matthijs van den Bos 2020-04-24 10:15:38 +02:00 committed by GitHub
parent 824c01daad
commit a298a94960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -527,8 +527,8 @@ abstract class AbstractNode<S>(val configuration: NodeConfiguration,
// the KMS is meant for derived temporary keys used in transactions, and we're not supposed to sign things with
// the identity key. But the infrastructure to make that easy isn't here yet.
keyManagementService.start(keyPairs)
notaryService = maybeStartNotaryService(myNotaryIdentity)
installCordaServices()
notaryService = maybeStartNotaryService(myNotaryIdentity)
contractUpgradeService.start()
vaultService.start()
ScheduledActivityObserver.install(vaultService, schedulerService, flowLogicRefFactory)