From 713ece2149ab152038290d4d4466c8404087f4e0 Mon Sep 17 00:00:00 2001 From: Artem Barger Date: Thu, 11 Jan 2024 01:12:39 +0200 Subject: [PATCH] Remove username and policy cli parameters Signed-off-by: Artem Barger --- internal/peer/chaincode/chaincode.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/peer/chaincode/chaincode.go b/internal/peer/chaincode/chaincode.go index 9c78ca54f89..86126cb7cd2 100644 --- a/internal/peer/chaincode/chaincode.go +++ b/internal/peer/chaincode/chaincode.go @@ -46,12 +46,10 @@ var ( chaincodeCtorJSON string chaincodePath string chaincodeName string - chaincodeUsr string // Not used chaincodeQueryRaw bool chaincodeQueryHex bool channelID string chaincodeVersion string - policy string transient string isInit bool peerAddresses []string @@ -91,12 +89,8 @@ func resetFlags() { "Name of the chaincode") flags.StringVarP(&chaincodeVersion, "version", "v", common.UndefinedParamValue, "Version of the chaincode specified in install/instantiate/upgrade commands") - flags.StringVarP(&chaincodeUsr, "username", "u", common.UndefinedParamValue, - "Username for chaincode operations when security is enabled") flags.StringVarP(&channelID, "channelID", "C", "", "The channel on which this command should be executed") - flags.StringVarP(&policy, "policy", "P", common.UndefinedParamValue, - "The endorsement policy associated to this chaincode") flags.BoolVarP(&isInit, "isInit", "I", false, "Is this invocation for init (useful for supporting legacy chaincodes in the new lifecycle)") flags.StringArrayVarP(&peerAddresses, "peerAddresses", "", []string{common.UndefinedParamValue},