mirror of
https://github.com/corda/corda.git
synced 2024-12-21 22:07:55 +00:00
Missed some protocol mentions
This commit is contained in:
parent
29c38ea82a
commit
bf88dc4826
@ -75,12 +75,12 @@ class CordaRPCClientTest {
|
||||
client.start(rpcUser.username, rpcUser.password)
|
||||
println("Creating proxy")
|
||||
val proxy = client.proxy()
|
||||
println("Starting protocol")
|
||||
val protocolHandle = proxy.startFlow(::CashFlow, CashCommand.IssueCash(20.DOLLARS, OpaqueBytes.of(0), driverInfo.nodeInfo.legalIdentity, driverInfo.nodeInfo.legalIdentity))
|
||||
println("Started protocol, waiting on result")
|
||||
protocolHandle.progress.subscribe {
|
||||
println("Starting flow")
|
||||
val flowHandle = proxy.startFlow(::CashFlow, CashCommand.IssueCash(20.DOLLARS, OpaqueBytes.of(0), driverInfo.nodeInfo.legalIdentity, driverInfo.nodeInfo.legalIdentity))
|
||||
println("Started flow, waiting on result")
|
||||
flowHandle.progress.subscribe {
|
||||
println("PROGRESS $it")
|
||||
}
|
||||
println("Result: ${protocolHandle.returnValue.toBlocking().first()}")
|
||||
println("Result: ${flowHandle.returnValue.toBlocking().first()}")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user