【发布时间】:2019-12-17 17:51:42
【问题描述】:
我的节点有一个自定义的配置文件,事件流程如下:
1. 启动我的网络
2. 运行创建我的 TokenType
的流程
3. 停止节点
4. 将令牌类型标识符添加到自定义配置
5. 启动节点
6. 现在我的其他流程可以从自定义配置中读取该值并完成他们的工作
// Custom config map
Map<String, String> customConfig = new LinkedHashMap<>();
// Assign custom config to nodes
network = new MockNetwork(new MockNetworkParameters().withCordappsForAllNodes(ImmutableList.of(
TestCordapp.findCordapp("xxx").withConfig(customConfig),
// Run the network and my flow that creates some value to be stored in the config
// Stop the nodes
network.stopNodes();
// Add new value to custom config
customConfig.put("new_value", someNewValue);
// Start the nodes
network.startNodes();
但第二次启动网络时出现此错误:
java.lang.IllegalStateException: Unable to determine which flow to use when responding to:
com.r3.corda.lib.tokens.workflows.flows.rpc.ConfidentialRedeemFungibleTokens.
[com.r3.corda.lib.tokens.workflows.flows.rpc.ConfidentialRedeemFungibleTokensHandler,
com.r3.corda.lib.tokens.workflows.flows.rpc.ConfidentialRedeemFungibleTokensHandler] are all registered
with equal weight.
【问题讨论】:
标签: corda