Missed some protocol mentions

This commit is contained in:
rick.parker 2016-11-23 08:55:21 +00:00
parent 29c38ea82a
commit bf88dc4826

View File

@ -75,12 +75,12 @@ class CordaRPCClientTest {
client.start(rpcUser.username, rpcUser.password) client.start(rpcUser.username, rpcUser.password)
println("Creating proxy") println("Creating proxy")
val proxy = client.proxy() val proxy = client.proxy()
println("Starting protocol") println("Starting flow")
val protocolHandle = proxy.startFlow(::CashFlow, CashCommand.IssueCash(20.DOLLARS, OpaqueBytes.of(0), driverInfo.nodeInfo.legalIdentity, driverInfo.nodeInfo.legalIdentity)) val flowHandle = proxy.startFlow(::CashFlow, CashCommand.IssueCash(20.DOLLARS, OpaqueBytes.of(0), driverInfo.nodeInfo.legalIdentity, driverInfo.nodeInfo.legalIdentity))
println("Started protocol, waiting on result") println("Started flow, waiting on result")
protocolHandle.progress.subscribe { flowHandle.progress.subscribe {
println("PROGRESS $it") println("PROGRESS $it")
} }
println("Result: ${protocolHandle.returnValue.toBlocking().first()}") println("Result: ${flowHandle.returnValue.toBlocking().first()}")
} }
} }