feat(fabric-shim): implement native gRPC batching for GetMultipleStates and GetMultiplePrivateData#504
Open
JhaSourav07 wants to merge 1 commit intohyperledger:mainfrom
Conversation
…eStates This commit replaces the temporary fallback loops from Phase 1 with the highly optimized native Fabric v3.1 gRPC batching requests (GetStateMultiple and GetStateMultipleResult). - Updated handler.js to use native protobuf batching. - Refactored stub.js integration tests to drive the public API and mock the handler. - Updated handler.js unit tests to assert correct GET_STATE_MULTIPLE network message dispatch. - Fixed TypeScript linting errors in chaincode.ts. Closes hyperledger#453 Signed-off-by: Sourav <souravkjha2007@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements the native Fabric v3.1 gRPC batching for GetMultipleStates and GetMultiplePrivateData, replacing the temporary fallback loops introduced in Phase 1 (PR #497).
Changes:
Closes #453 >
(cc: @bestbeforetoday - Thank you for the guidance on the test architecture and for bumping the protos!)