diff --git a/explorer/src/main/kotlin/com/r3corda/explorer/Main.kt b/explorer/src/main/kotlin/com/r3corda/explorer/Main.kt index 3777e09ce7..4a0dbde180 100644 --- a/explorer/src/main/kotlin/com/r3corda/explorer/Main.kt +++ b/explorer/src/main/kotlin/com/r3corda/explorer/Main.kt @@ -8,6 +8,7 @@ import com.r3corda.client.model.Models import com.r3corda.client.model.WalletMonitorModel import com.r3corda.client.model.observer import com.r3corda.core.contracts.ClientToServiceCommand +import com.r3corda.explorer.model.IdentityModel import com.r3corda.node.driver.PortAllocation import com.r3corda.node.driver.driver import com.r3corda.node.driver.startClient @@ -48,6 +49,7 @@ class Main : App() { val aliceClient = startClient(aliceNode).get() + Models.get(Main::class).myIdentity.set(aliceNode.identity) Models.get(Main::class).register(aliceClient, aliceNode) val bobInStream = PublishSubject.create() diff --git a/explorer/src/main/kotlin/com/r3corda/explorer/model/IdentityModel.kt b/explorer/src/main/kotlin/com/r3corda/explorer/model/IdentityModel.kt new file mode 100644 index 0000000000..c2813d849b --- /dev/null +++ b/explorer/src/main/kotlin/com/r3corda/explorer/model/IdentityModel.kt @@ -0,0 +1,9 @@ +package com.r3corda.explorer.model + +import com.r3corda.core.crypto.Party +import javafx.beans.property.SimpleObjectProperty + + +class IdentityModel { + val myIdentity = SimpleObjectProperty() +}