Work around for notary.

This commit is contained in:
rick.parker 2017-11-13 11:33:13 +00:00
parent 9be3098b60
commit c543129408

View File

@ -12,17 +12,19 @@ import org.apache.jmeter.protocol.java.sampler.JavaSamplerContext
abstract class AsbtractTraderDemoPlugin : CordaRPCSampler.Plugin { abstract class AsbtractTraderDemoPlugin : CordaRPCSampler.Plugin {
lateinit var buyer: Party //lateinit var buyer: Party
lateinit var seller: Party //lateinit var seller: Party
lateinit var notary: Party lateinit var notary: Party
val bankA = CordaX500Name(organisation = "Bank A", locality = "London", country = "GB") //val bankA = CordaX500Name(organisation = "Bank A", locality = "London", country = "GB")
val bankB = CordaX500Name(organisation = "Bank B", locality = "New York", country = "US") //val bankB = CordaX500Name(organisation = "Bank B", locality = "New York", country = "US")
val node1 = CordaX500Name(commonName = null, state = null, organisation = "Perf-10.155.0.4", organisationUnit = "Corda", locality = "London", country = "GB")
protected fun getIdentities(rpc: CordaRPCOps) { protected fun getIdentities(rpc: CordaRPCOps) {
//buyer = rpc.wellKnownPartyFromX500Name(bankA) ?: throw IllegalStateException("Don't know $bankA") //buyer = rpc.wellKnownPartyFromX500Name(bankA) ?: throw IllegalStateException("Don't know $bankA")
//seller = rpc.wellKnownPartyFromX500Name(bankB) ?: throw IllegalStateException("Don't know $bankB") //seller = rpc.wellKnownPartyFromX500Name(bankB) ?: throw IllegalStateException("Don't know $bankB")
notary = rpc.notaryIdentities().first() //notary = rpc.notaryIdentities().first()
notary = rpc.wellKnownPartyFromX500Name(node1) ?: throw IllegalStateException("Don't know $node1")
} }
} }