Skip to content

Question about fabric event #4329

Answered by bestbeforetoday
bh4rtp2023 asked this question in Q&A
Discussion options

You must be logged in to vote

If you are talking about chaincode events...

The short answer is that the client API only emits chaincode events for successfully committed / validated transactions.

The intent of chaincode eventing is to drive business processes in response to updates to the ledger. Only successful transactions update the ledger, and so only chaincode events for successful transactions are reported. See description in the Fabric Full Stack Development workshop.

The long answer is that, if a transaction gets as far as being committed in a block (in other words: endorsed, and then successfully submitted to the orderer), even transactions that fail validation (perhaps because of an MVCC read conflict, or fa…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bh4rtp2023
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants