Re: The return value in Fabric gateway java SDK submitTransaction method


No, I need a commited transaction. The blocklistener can be used. I am only curious if the blocklistener and contractlistener execute parallel or serial as I use both.

<Mark.S.Lewis@...>于2020年8月14日 周五下午6:38写道:

If you have some off-chain mechanism to check endorsement is satisfied before submitting the transaction to the orderer then it sounds like the Gateway API is not going to work for you. By the time the submit() returns, the transaction has already been submitted to the orderer. Similarly, block events are only produced after the transaction is committed in a block on the ledger. So in both cases it is too late for you to avoid submitting the transaction if your off-chain endorsement check is not satisfied.

Join to automatically receive all group messages.