Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor of ChaincodeEvents service implementation to support resume #3283

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

bestbeforetoday
Copy link
Member

@bestbeforetoday bestbeforetoday commented Mar 13, 2022

Enables the client to (optionally) specify an AfterTransactionId property in addition to a start block number when requesting chaincode events, which causes chaincode events up to that transaction ID (inclusive) to be ignored and not returned to the client. This supports resume of chaincode event listening on client reconnect without duplicating or missing any events.

@bestbeforetoday bestbeforetoday force-pushed the checkpoint branch 2 times, most recently from 8eac52f to c15d35f Compare March 15, 2022 13:51
Enables the client to (optionally) specify an AfterTransactionId property in addition to a start block number when requesting chaincode events, which causes chaincode events up to that transaction ID (inclusive) to be ignored and not returned to the client. This supports resume of chaincode event listening on client reconnect without duplicating or missing any events.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
@bestbeforetoday bestbeforetoday marked this pull request as ready for review March 15, 2022 14:54
@bestbeforetoday bestbeforetoday requested a review from a team as a code owner March 15, 2022 14:54
@andrew-coleman
Copy link
Member

As discussed with @bestbeforetoday if the TxID is supplied, then the block number is not required, and can be ignored. The server can lookup which block contains that transaction. This makes no difference to the client code, so agreed this can be done in a followup PR.

@andrew-coleman andrew-coleman merged commit c55b7ee into hyperledger:main Mar 15, 2022
@bestbeforetoday bestbeforetoday deleted the checkpoint branch March 15, 2022 17:04
bestbeforetoday added a commit to bestbeforetoday/fabric that referenced this pull request Jun 1, 2022
…yperledger#3283)

Enables the client to (optionally) specify an AfterTransactionId property in addition to a start block number when requesting chaincode events, which causes chaincode events up to that transaction ID (inclusive) to be ignored and not returned to the client. This supports resume of chaincode event listening on client reconnect without duplicating or missing any events.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
denyeart pushed a commit that referenced this pull request Jun 3, 2022
…3283)

Enables the client to (optionally) specify an AfterTransactionId property in addition to a start block number when requesting chaincode events, which causes chaincode events up to that transaction ID (inclusive) to be ignored and not returned to the client. This supports resume of chaincode event listening on client reconnect without duplicating or missing any events.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants