Re: The return value in Fabric gateway java SDK submitTransaction method
Mark Lewis
If the transaction has been committed (i.e. the submit() call returns successfully) then it has satisfied the endorsement policy. If the endorsement policy wasn't satisfied then the transaction would be unsuccessful.
Regardless, if all you want to do is inspect a previously committed transaction then you do have several options using the fabric-gateway-java API, two of which I think you already understand:
Be aware that, while you can access the parent transaction for a given contract event, a contract event listener will only be invoked if:
There is no guarantee on whether event delivery to different listeners is serial or parallel. The only guarantee is that each block (or contract) listener will receive events in block order and without duplication. From memory, the current implementation does deliver events to all realtime listeners sequentially, but the order of invocation of those realtime listeners is non-deterministic. Since this in an implementation detail, you shouldn't rely on this behaviour remaining the same across releases.
|
|