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


Mark Lewis
 

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 fabric@lists.hyperledger.org to automatically receive all group messages.