ProtocolLogicFactory now initiated before it is used.

This commit is contained in:
Clinton Alexander 2016-10-21 11:29:42 +01:00
parent f92f7d8d56
commit c18ed4b402

View File

@ -209,9 +209,9 @@ abstract class AbstractNode(open val configuration: NodeConfiguration, val netwo
// the identity key. But the infrastructure to make that easy isn't here yet.
keyManagement = makeKeyManagementService()
api = APIServerImpl(this@AbstractNode)
protocolLogicFactory = initialiseProtocolLogicFactory()
scheduler = NodeSchedulerService(database, services, protocolLogicFactory)
protocolLogicFactory = initialiseProtocolLogicFactory()
val tokenizableServices = mutableListOf(storage, net, vault, keyManagement, identity, platformClock, scheduler)