当交易涉及的所有账户都在同一个节点时,使用还是不使用 CollectSignatureFlow?
To use or not to use CollectSignatureFlow when all the accounts involved in a transaction are on the same node?
关于使用帐户的 CollectSignatureFlow:
在 worldcupticketbooking 文件的评论中:DVPAccountsOnSameNode
它给定 注意:虽然买卖双方在同一个节点上,但我们仍然必须调用 CollectSignaturesFlow,因为签名者不是一方而是一个帐户。
但是here它说如果你的账户和你在同一个节点上运行那么它们都可以在signInitialTransaction上,但是,如果一个在另一个节点上,您需要使用 CollectSignatureFlow
我不同意您分享的 DVP CorDapp 的评论;如果发起节点上存在所有必需的签名者,则无需调用 CollectSignaturesFlow
,而只需像下面这样传递帐户密钥:
getServiceHub().signInitialTransaction(transactionBuilder,
Arrays.asList(getOurIdentity().getOwningKey(),
account1Key, account2Key, account3Key, etc...));
关于使用帐户的 CollectSignatureFlow: 在 worldcupticketbooking 文件的评论中:DVPAccountsOnSameNode 它给定 注意:虽然买卖双方在同一个节点上,但我们仍然必须调用 CollectSignaturesFlow,因为签名者不是一方而是一个帐户。
但是here它说如果你的账户和你在同一个节点上运行那么它们都可以在signInitialTransaction上,但是,如果一个在另一个节点上,您需要使用 CollectSignatureFlow
我不同意您分享的 DVP CorDapp 的评论;如果发起节点上存在所有必需的签名者,则无需调用 CollectSignaturesFlow
,而只需像下面这样传递帐户密钥:
getServiceHub().signInitialTransaction(transactionBuilder,
Arrays.asList(getOurIdentity().getOwningKey(),
account1Key, account2Key, account3Key, etc...));