gpt4 book ai didi

java - 为 Cordapp 多次调用 Controller 类中的 HTTP 路由

转载 作者:行者123 更新时间:2023-12-01 16:30:35 24 4
gpt4 key购买 nike

我看到多次调用路线/问题,不确定为什么会出现这样的行为


// initiate a flow using this route

@GetMapping(value = "/issue", produces = TEXT_PLAIN_VALUE)
private String issue() throws FlowException {
Party traderB = proxy.networkMapSnapshot().get(2).getLegalIdentities().get(0);

proxy.startFlowDynamic(com.template.flows.IssueMetal.class,"Gold",10,traderB).toString();

return proxy.registeredFlows().toString();
}

当我查询保险库时,我看到多个未使用的状态,而我应该只看到一个条目。

[StateAndRef(state=TransactionState(data=com.template.states.MetalState@3fa2279c, contract=com.template.contracts.TemplateContract, notary=O=Notary, L=London, C=GB, encumbrance=null, constraint=SignatureAttachmentConstraint(key=EC Public Key [4b:44:7c:7b:1b:38:a6:93:bd:9a:c4:1d:8b:46:b4:6b:77:ba:f8:0e]
X: 38d226dcd0fa574316da478aa75225e6ce18f65cbd96e60bf3c8251b1965417
Y: 56e5dcf7ccab21b712601ed0278501f2f33d0b5fdaa4c09e62639464e4910871
)), ref=45F75698C7D5FBE1AC0D88108C2C33F73567335168973B501B902312FA46ADBC(0)), StateAndRef(state=TransactionState(data=com.template.states.MetalState@3b9da4b0, contract=com.template.contracts.TemplateContract, notary=O=Notary, L=London, C=GB, encumbrance=null, constraint=SignatureAttachmentConstraint(key=EC Public Key [4b:44:7c:7b:1b:38:a6:93:bd:9a:c4:1d:8b:46:b4:6b:77:ba:f8:0e]
X: 38d226dcd0fa574316da478aa75225e6ce18f65cbd96e60bf3c8251b1965417
Y: 56e5dcf7ccab21b712601ed0278501f2f33d0b5fdaa4c09e62639464e4910871
)), ref=55E228CEA0F793068EC112978E584623211B869E647BD48DD6CB2211230D3205(0)), StateAndRef(state=TransactionState(data=com.template.states.MetalState@7e9f2da7, contract=com.template.contracts.TemplateContract, notary=O=Notary, L=London, C=GB, encumbrance=null, constraint=SignatureAttachmentConstraint(key=EC Public Key [4b:44:7c:7b:1b:38:a6:93:bd:9a:c4:1d:8b:46:b4:6b:77:ba:f8:0e]
X: 38d226dcd0fa574316da478aa75225e6ce18f65cbd96e60bf3c8251b1965417
Y: 56e5dcf7ccab21b712601ed0278501f2f33d0b5fdaa4c09e62639464e4910871
)), ref=912FD9296E430B6302B76DE0F6E25458D313D6F4E7AB29DDF80387F0099735FC(0))]

我有4个节点

交易者A、交易者B、造币厂、公证人

此流程正在从 Mint 发送到 TraderB。

最佳答案

我相信阿舒托什是正确的。您的端点似乎被多次触发,这是您看到此处所见内容的唯一原因。

如果您能够分享有关如何运行流程的更多信息,这将有助于我们弄清楚这里发生了什么。

关于java - 为 Cordapp 多次调用 Controller 类中的 HTTP 路由,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62048908/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com