如何在V2中使用机密身份时退出现金

时间:2017-12-25 07:38:02

标签: corda

我注意到更改(Add confidential identity support to cash exit logic #1849)不在release-V2中,为什么它没有在V2(OnLedgerAsset)中实现?我正在使用Corda 2.0,使用机密身份的现金无法正常退出。

net.corda.finance.flows.CashException: Exiting more cash than exists
at net.corda.finance.flows.CashExitFlow.call(CashExitFlow.kt:58)
at net.corda.finance.flows.CashExitFlow.call(CashExitFlow.kt:29)
at net.corda.core.flows.FlowLogic.subFlow(FlowLogic.kt:243)
at net.corda.node.services.statemachine.FlowStateMachineImpl.run(FlowStateMachineImpl.kt:96)
at net.corda.node.services.statemachine.FlowStateMachineImpl.run(FlowStateMachineImpl.kt:41)
at co.paralleluniverse.fibers.Fiber.run1(Fiber.java:1092)
at co.paralleluniverse.fibers.Fiber.exec(Fiber.java:788)
at co.paralleluniverse.fibers.RunnableFiberTask.doExec(RunnableFiberTask.java:100)
at co.paralleluniverse.fibers.RunnableFiberTask.run(RunnableFiberTask.java:91)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at net.corda.node.utilities.AffinityExecutor$ServiceAffinityExecutor$1$thread$1.run(AffinityExecutor.kt:69)
Caused by: net.corda.core.contracts.InsufficientBalanceException: Insufficient balance, missing 2000.00 THB issued by C=UK,L=London,O=Bank1[00]
at net.corda.finance.contracts.asset.OnLedgerAsset$Companion.generateExit(OnLedgerAsset.kt:238)
at net.corda.finance.contracts.asset.OnLedgerAsset.generateExit(OnLedgerAsset.kt:303)
at net.corda.finance.flows.CashExitFlow.call(CashExitFlow.kt:53)
... 17 more

1 个答案:

答案 0 :(得分:0)

这似乎是一个错误。我已在此处报告:this answer并在此处创建了一张JIRA票证:https://github.com/corda/corda/issues/2342