BIGINT fix for H2 coin selection. (#1659)

This commit is contained in:
Rick Parker
2017-09-27 15:15:34 +01:00
committed by GitHub
parent 0c910640bb
commit 39160de0a3
3 changed files with 16 additions and 5 deletions

View File

@ -44,17 +44,17 @@ private class TraderDemo {
}
// What happens next depends on the role. The buyer sits around waiting for a trade to start. The seller role
// will contact the buyer and actually make something happen.
// will contact the buyer and actually make something happen. We intentionally use large amounts here.
val role = options.valueOf(roleArg)!!
if (role == Role.BANK) {
val bankHost = NetworkHostAndPort("localhost", bankRpcPort)
CordaRPCClient(bankHost).use("demo", "demo") {
TraderDemoClientApi(it.proxy).runIssuer(1100.DOLLARS, buyerName, sellerName)
TraderDemoClientApi(it.proxy).runIssuer(1_100_000_000_000.DOLLARS, buyerName, sellerName)
}
} else {
val sellerHost = NetworkHostAndPort("localhost", sellerRpcPort)
CordaRPCClient(sellerHost).use("demo", "demo") {
TraderDemoClientApi(it.proxy).runSeller(1000.DOLLARS, buyerName)
TraderDemoClientApi(it.proxy).runSeller(1_000_000_000_000.DOLLARS, buyerName)
}
}
}