From ea6e81cb06bce29aa9243485a414263dc0cd8f25 Mon Sep 17 00:00:00 2001 From: Abhiram Sakaray Date: Thu, 25 Jun 2026 11:56:02 +0530 Subject: [PATCH 1/3] fix(endorser): guard against index out of bounds on empty chaincode Args --- core/endorser/endorser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/endorser/endorser.go b/core/endorser/endorser.go index 40f9ee5..6f85379 100644 --- a/core/endorser/endorser.go +++ b/core/endorser/endorser.go @@ -322,7 +322,7 @@ func (e *Endorser) ProcessProposal(ctx context.Context, signedProp *pb.SignedPro } // DRUNIX : do not install chaincode on committing-peer unless set explicitly using `CORE_PEER_INSTALLCCALLOWED=true` - isInstallCC := string(up.Input.Args[0]) == "InstallChaincode" + isInstallCC := len(up.Input.Args) > 0 && string(up.Input.Args[0]) == "InstallChaincode" if isInstallCC && !viper.GetBool("peer.litepeer.enabled") && !viper.GetBool("peer.installccallowed") { err := fmt.Errorf("Cannot install chaincode on committing-peer") endorserLogger.Warn(err.Error()) From 68af8e156b56f4a47c62af3d709ae23db4157afa Mon Sep 17 00:00:00 2001 From: Abhiram Sakaray Date: Thu, 25 Jun 2026 11:56:03 +0530 Subject: [PATCH 2/3] fix(transientstore): correct Redis Nil error check in PrivateDataHGetAllBatch --- core/transientstore/keyvaluestore.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/transientstore/keyvaluestore.go b/core/transientstore/keyvaluestore.go index 10a29db..4142ad8 100644 --- a/core/transientstore/keyvaluestore.go +++ b/core/transientstore/keyvaluestore.go @@ -350,10 +350,8 @@ func (s *KVStore) PrivateDataHGetAllBatch(keys map[string]string) (map[string]ma cmds[idx] = pipe.HGetAll(ctx, idx) } _, err := pipe.Exec(ctx) - if err != nil && err == redis.Nil { - logger.Errorf("error in retreiving PrivateDataHGetAllBatch value bytes : %+v", err) - } else if err != nil { - logger.Errorf("error executing PrivateDataHGetAllBatch pipeline :%v", err) + if err != nil && !errors.Is(err, redis.Nil) { + logger.Errorf("error executing PrivateDataHGetAllBatch pipeline: %v", err) return nil, err } From 7c481602707178de982a35a59b2a7a4ee836560e Mon Sep 17 00:00:00 2001 From: Abhiram Sakaray Date: Thu, 25 Jun 2026 11:56:03 +0530 Subject: [PATCH 3/3] docs(contributing): remove stray character at end of CONTRIBUTING.md --- CONTRIBUTING.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8b9f126..462979d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,4 +28,3 @@ with the repo to generate these mocks. [mockery](https://github.com/vektra/mocke - the `--name` and `--dir` indicate where the 'source' interface is to be mocked Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License. -s