Fix human readable status code mapping
@@ -52,6 +52,9 @@ const (
// satisfy the chaincode policy
QueryEndorsers Code = 11
+ // GenericTransient is generally used by tests to indicate that a retry is possible
+ GenericTransient Code = 12
+
// PrematureChaincodeExecution indicates that an attempt was made to invoke a chaincode that's
// in the process of being launched.
PrematureChaincodeExecution Code = 21
@@ -59,9 +62,6 @@ const (
// ChaincodeAlreadyLaunching indicates that an attempt for multiple simultaneous invokes was made to launch chaincode
ChaincodeAlreadyLaunching Code = 22
- // GenericTransient is generally used by tests to indicate that a retry is possible
- GenericTransient Code = 12
-
// ChaincodeNameNotFound indicates that an that an attempt was made to invoke a chaincode that's not yet initialized
ChaincodeNameNotFound Code = 23
)
@@ -78,14 +78,11 @@ var CodeName = map[int32]string{
7: "MULTIPLE_ERRORS",
8: "SIGNATURE_VERIFICATION_FAILED",
9: "MISSING_ENDORSEMENT",
- 10: "CHAINCODE_ERROR",
11: "QUERY_ENDORSERS",
12: "GENERIC_TRANSIENT",
- 21: "NO_MATCHING_CERTIFICATE_AUTHORITY_ENTITY",
- 22: "NO_MATCHING_PEER_ENTITY",
- 23: "NO_MATCHING_ORDERER_ENTITY",
- 24: "PREMATURE_CHAINCODE_EXECUTION",
- 25: "NO_MATCHING_CHANNEL_ENTITY",
+ 21: "PREMATURE_CHAINCODE_EXECUTION",
+ 22: "CHAINCODE_ALREADY_LAUNCHING",
+ 23: "CHAINCODE_NAME_NOT_FOUND",
}
// ToInt32 cast to int32
