使用开发模式测试

可以使用~/hyfa/fabric-samples/chaincode-docker-devmode/启动fabric,具体过程略

用同一个链码注册2个服务

root@2ee7b5123b52:/opt/gopath/src/chaincode# CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc18:0 ./sacc/sacc
2018-10-21 23:32:10.679 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO
2018-10-21 23:32:10.680 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...
root@2ee7b5123b52:/opt/gopath/src/chaincode# CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc19:0 ./sacc/sacc
2018-10-21 23:33:56.123 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO
2018-10-21 23:33:56.124 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...

链码如下

/*
* Copyright IBM Corp All Rights Reserved
*
* SPDX-License-Identifier: Apache-2.0
*/ package main import (
"fmt" "github.com/hyperledger/fabric/core/chaincode/shim"
"github.com/hyperledger/fabric/protos/peer"
) // SimpleAsset implements a simple chaincode to manage an asset
type SimpleAsset struct {
} // Init is called during chaincode instantiation to initialize any
// data. Note that chaincode upgrade also calls this function to reset
// or to migrate data.
func (t *SimpleAsset) Init(stub shim.ChaincodeStubInterface) peer.Response {
// Get the args from the transaction proposal
args := stub.GetStringArgs()
if len(args) != 2 {
return shim.Error("Incorrect arguments. Expecting a key and a value")
} // Set up any variables or assets here by calling stub.PutState() // We store the key and the value on the ledger
err := stub.PutState(args[0], []byte(args[1]))
if err != nil {
return shim.Error(fmt.Sprintf("Failed to create asset: %s", args[0]))
}
return shim.Success(nil)
} func toChaincodeArgs2(args ...string) [][]byte {
bargs := make([][]byte, len(args))
for i, arg := range args {
bargs[i] = []byte(arg)
}
return bargs
} // Set stores the asset (both key and value) on the ledger. If the key exists,
// it will override the value with the new one
// haobin: example: peer chaincode invoke -n mycc7 -c '{"Args":["invokeOtherChaoncode", "mycc6", "myc", "set", "a", "10"]}' -C myc
func invokeOtherChaoncode(stub shim.ChaincodeStubInterface, args []string) (string, error) {
// if len(args) != 2 {
// return "", fmt.Errorf("Incorrect arguments. Expecting a key and a value")
// }
invokeArgs := toChaincodeArgs2(args[2], args[3], args[4])
response := stub.InvokeChaincode(args[0], invokeArgs, args[1]) if response.Status != shim.OK {
errStr := fmt.Sprintf("Failed to invoke chaincode. Got error: %s", string(response.Payload))
fmt.Printf(errStr)
return "", fmt.Errorf(errStr)
} fmt.Printf("Invoke chaincode successful. Got response %s", string(response.Payload))
return string(response.Payload), nil
} // Invoke is called per transaction on the chaincode. Each transaction is
// either a 'get' or a 'set' on the asset created by Init function. The Set
// method may create a new asset by specifying a new key-value pair.
func (t *SimpleAsset) Invoke(stub shim.ChaincodeStubInterface) peer.Response {
// Extract the function and args from the transaction proposal
fn, args := stub.GetFunctionAndParameters() var result string
var err error
if fn == "set" {
result, err = set(stub, args)
} else if fn == "invokeOtherChaoncode" {
result, err = invokeOtherChaoncode(stub, args)
}else { // assume 'get' even if fn is nil
result, err = get(stub, args)
} if err != nil {
return shim.Error(err.Error())
} // Return the result as success payload
return shim.Success([]byte(result))
} // Set stores the asset (both key and value) on the ledger. If the key exists,
// it will override the value with the new one
func set(stub shim.ChaincodeStubInterface, args []string) (string, error) {
if len(args) != 2 {
return "", fmt.Errorf("Incorrect arguments. Expecting a key and a value")
} err := stub.PutState(args[0], []byte(args[1]))
if err != nil {
return "", fmt.Errorf("Failed to set asset: %s", args[0])
}
return args[1], nil
} // Get returns the value of the specified asset key
func get(stub shim.ChaincodeStubInterface, args []string) (string, error) {
if len(args) != 1 {
return "", fmt.Errorf("Incorrect arguments. Expecting a key")
} value, err := stub.GetState(args[0])
if err != nil {
return "", fmt.Errorf("Failed to get asset: %s with error: %s", args[0], err)
}
if value == nil {
return "", fmt.Errorf("Asset not found: %s", args[0])
}
return string(value), nil
} // main function starts up the chaincode in the container during instantiate
func main() {
if err := shim.Start(new(SimpleAsset)); err != nil {
fmt.Printf("Error starting SimpleAsset chaincode: %s", err)
}
}

安装实例化这两个链码

cd ~/hyfa/fabric-samples/chaincode-docker-devmode/
sudo docker exec -it cli bash
export CHANNEL_NAME=myc
export CHAINCODE_NAME=mycc19
peer chaincode install -p chaincodedev/chaincode/sacc -n $CHAINCODE_NAME -v 0
peer chaincode instantiate -n $CHAINCODE_NAME -v 0 -c '{"Args":["a","10"]}' -C myc
peer chaincode invoke -n $CHAINCODE_NAME -c '{"Args":["set", "a", "100"]}' -C myc
peer chaincode query -n $CHAINCODE_NAME -c '{"Args":["query","a"]}' -C myc export CHAINCODE_NAME=mycc18
peer chaincode install -p chaincodedev/chaincode/sacc -n $CHAINCODE_NAME -v 0
peer chaincode instantiate -n $CHAINCODE_NAME -v 0 -c '{"Args":["a","10"]}' -C myc
peer chaincode invoke -n $CHAINCODE_NAME -c '{"Args":["set", "a", "100"]}' -C myc
peer chaincode query -n $CHAINCODE_NAME -c '{"Args":["query","a"]}' -C myc

测试命令:

# 查询mycc19 链码的key为a的值
peer chaincode query -n mycc19 -c '{"Args":["query","a"]}' -C myc # 通过mycc18调用mycc19链码的set方法
peer chaincode invoke -n mycc18 -c '{"Args":["invokeOtherChaoncode", "mycc19", "myc", "set", "a", "190000"]}' -C myc # 再次查询mycc19 链码的key为a的值 发现值已经变为了190000
peer chaincode query -n mycc19 -c '{"Args":["query","a"]}' -C myc

某次具体执行过程记录

root@38a4a6244f13:/opt/gopath/src/chaincodedev# peer chaincode query -n mycc19 -c '{"Args":["query","a"]}' -C myc
2018-10-21 23:36:33.981 UTC [viperutil] getKeysRecursively -> DEBU 001 Found map[string]interface{} value for peer.BCCSP
2018-10-21 23:36:33.982 UTC [viperutil] getKeysRecursively -> DEBU 002 Found map[string]interface{} value for peer.BCCSP.PKCS11
2018-10-21 23:36:33.982 UTC [viperutil] unmarshalJSON -> DEBU 003 Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:33.982 UTC [viperutil] getKeysRecursively -> DEBU 004 Found real value for peer.BCCSP.PKCS11.Label setting to <nil> <nil>
2018-10-21 23:36:33.982 UTC [viperutil] unmarshalJSON -> DEBU 005 Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:33.982 UTC [viperutil] getKeysRecursively -> DEBU 006 Found real value for peer.BCCSP.PKCS11.Pin setting to <nil> <nil>
2018-10-21 23:36:33.982 UTC [viperutil] unmarshalJSON -> DEBU 007 Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:33.983 UTC [viperutil] getKeysRecursively -> DEBU 008 Found real value for peer.BCCSP.PKCS11.Hash setting to <nil> <nil>
2018-10-21 23:36:33.983 UTC [viperutil] unmarshalJSON -> DEBU 009 Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:33.983 UTC [viperutil] getKeysRecursively -> DEBU 00a Found real value for peer.BCCSP.PKCS11.Security setting to <nil> <nil>
2018-10-21 23:36:33.983 UTC [viperutil] getKeysRecursively -> DEBU 00b Found map[string]interface{} value for peer.BCCSP.PKCS11.FileKeyStore
2018-10-21 23:36:33.983 UTC [viperutil] unmarshalJSON -> DEBU 00c Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:33.983 UTC [viperutil] getKeysRecursively -> DEBU 00d Found real value for peer.BCCSP.PKCS11.FileKeyStore.KeyStore setting to <nil> <nil>
2018-10-21 23:36:33.983 UTC [viperutil] unmarshalJSON -> DEBU 00e Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:33.983 UTC [viperutil] getKeysRecursively -> DEBU 00f Found real value for peer.BCCSP.PKCS11.Library setting to <nil> <nil>
2018-10-21 23:36:33.984 UTC [viperutil] unmarshalJSON -> DEBU 010 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 011 Found real value for peer.BCCSP.Default setting to string SW
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 012 Found map[string]interface{} value for peer.BCCSP.SW
2018-10-21 23:36:33.984 UTC [viperutil] unmarshalJSON -> DEBU 013 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 014 Found real value for peer.BCCSP.SW.Hash setting to string SHA2
2018-10-21 23:36:33.984 UTC [viperutil] unmarshalJSON -> DEBU 015 Unmarshal JSON: value is not a string: 256
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 016 Found real value for peer.BCCSP.SW.Security setting to int 256
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 017 Found map[string]interface{} value for peer.BCCSP.SW.FileKeyStore
2018-10-21 23:36:33.984 UTC [viperutil] unmarshalJSON -> DEBU 018 Unmarshal JSON: value cannot be unmarshalled: unexpected end of JSON input
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 019 Found real value for peer.BCCSP.SW.FileKeyStore.KeyStore setting to string
2018-10-21 23:36:33.984 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 01a map[peer.BCCSP:map[PKCS11:map[Label:<nil> Pin:<nil> Hash:<nil> Security:<nil> FileKeyStore:map[KeyStore:<nil>] Library:<nil>] Default:SW SW:map[FileKeyStore:map[KeyStore:] Hash:SHA2 Security:256]]]
2018-10-21 23:36:33.985 UTC [bccsp_sw] openKeyStore -> DEBU 01b KeyStore opened at [/etc/hyperledger/msp/keystore]...done
2018-10-21 23:36:33.985 UTC [bccsp] initBCCSP -> DEBU 01c Initialize BCCSP [SW]
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 01d Reading directory /etc/hyperledger/msp/signcerts
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 01e Inspecting file /etc/hyperledger/msp/signcerts/peer.pem
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 01f Reading directory /etc/hyperledger/msp/cacerts
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 020 Inspecting file /etc/hyperledger/msp/cacerts/cacert.pem
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 021 Reading directory /etc/hyperledger/msp/admincerts
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 022 Inspecting file /etc/hyperledger/msp/admincerts/admincert.pem
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 023 Reading directory /etc/hyperledger/msp/intermediatecerts
2018-10-21 23:36:33.985 UTC [msp] getMspConfig -> DEBU 024 Intermediate certs folder not found at [/etc/hyperledger/msp/intermediatecerts]. Skipping. [stat /etc/hyperledger/msp/intermediatecerts: no such file or directory]
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 025 Reading directory /etc/hyperledger/msp/tlscacerts
2018-10-21 23:36:33.986 UTC [msp] getPemMaterialFromDir -> DEBU 026 Inspecting file /etc/hyperledger/msp/tlscacerts/tlsroot.pem
2018-10-21 23:36:33.986 UTC [msp] getPemMaterialFromDir -> DEBU 027 Reading directory /etc/hyperledger/msp/tlsintermediatecerts
2018-10-21 23:36:33.986 UTC [msp] getPemMaterialFromDir -> DEBU 028 Inspecting file /etc/hyperledger/msp/tlsintermediatecerts/tlsintermediate.pem
2018-10-21 23:36:33.986 UTC [msp] getPemMaterialFromDir -> DEBU 029 Reading directory /etc/hyperledger/msp/crls
2018-10-21 23:36:33.986 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/etc/hyperledger/msp/crls]. Skipping. [stat /etc/hyperledger/msp/crls: no such file or directory]
2018-10-21 23:36:33.986 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/etc/hyperledger/msp/config.yaml]: [stat /etc/hyperledger/msp/config.yaml: no such file or directory]
2018-10-21 23:36:33.986 UTC [msp] newBccspMsp -> DEBU 02c Creating BCCSP-based MSP instance
2018-10-21 23:36:33.986 UTC [msp] New -> DEBU 02d Creating Cache-MSP instance
2018-10-21 23:36:33.986 UTC [msp] loadLocaMSP -> DEBU 02e Created new local MSP
2018-10-21 23:36:33.986 UTC [msp] Setup -> DEBU 02f Setting up MSP instance DEFAULT
2018-10-21 23:36:33.987 UTC [msp/identity] newIdentity -> DEBU 030 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICYjCCAgigAwIBAgIRAL1fEAnz5zp4moJ8MdSb/lYwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjCBgTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlm
b3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhh
bXBsZS5jb20xDDAKBgNVBAsTA0NPUDEcMBoGA1UEAxMTY2Eub3JnMS5leGFtcGxl
LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGrsQ6oJpk6hDWf63HU3OSNd
bou9KNw/VIee1IngPDI4YJU7O+Xa/XLJuwnFv7BpR8Ytl3f+njC8i/RZP2/svO+j
XzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQF
MAMBAf8wKQYDVR0OBCIEIIpzkSIZzxBWVIV5unlgZJuyu2XPEeP8+y1uB6LLA5Qr
MAoGCCqGSM49BAMCA0gAMEUCIQDUh/+CC2dAICnYtACXspwUaaEbiyZxYIx+XDvW
o8VVcgIgGz5S4iC5+xkxgeaISPfxKTTVy6yzTdYGzCw1vPppjzo=
-----END CERTIFICATE-----
2018-10-21 23:36:33.988 UTC [msp/identity] newIdentity -> DEBU 031 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:34.002 UTC [msp/identity] newIdentity -> DEBU 032 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:34.013 UTC [msp/identity] newIdentity -> DEBU 033 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:34.014 UTC [msp] setupSigningIdentity -> DEBU 034 Signing identity expires at 2027-11-10 13:41:11 +0000 UTC
2018-10-21 23:36:34.015 UTC [msp] Validate -> DEBU 035 MSP DEFAULT validating identity
2018-10-21 23:36:34.016 UTC [grpc] Printf -> DEBU 036 parsed scheme: ""
2018-10-21 23:36:34.016 UTC [grpc] Printf -> DEBU 037 scheme "" not registered, fallback to default scheme
2018-10-21 23:36:34.017 UTC [grpc] Printf -> DEBU 038 ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 <nil>}]
2018-10-21 23:36:34.017 UTC [grpc] Printf -> DEBU 039 ClientConn switching balancer to "pick_first"
2018-10-21 23:36:34.017 UTC [grpc] Printf -> DEBU 03a pickfirstBalancer: HandleSubConnStateChange: 0xc4204f3c40, CONNECTING
2018-10-21 23:36:34.018 UTC [grpc] Printf -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc4204f3c40, READY
2018-10-21 23:36:34.019 UTC [grpc] Printf -> DEBU 03c parsed scheme: ""
2018-10-21 23:36:34.019 UTC [grpc] Printf -> DEBU 03d scheme "" not registered, fallback to default scheme
2018-10-21 23:36:34.019 UTC [grpc] Printf -> DEBU 03e ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 <nil>}]
2018-10-21 23:36:34.020 UTC [grpc] Printf -> DEBU 03f ClientConn switching balancer to "pick_first"
2018-10-21 23:36:34.020 UTC [grpc] Printf -> DEBU 040 pickfirstBalancer: HandleSubConnStateChange: 0xc4204d8170, CONNECTING
2018-10-21 23:36:34.023 UTC [grpc] Printf -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc4204d8170, READY
2018-10-21 23:36:34.023 UTC [msp] GetDefaultSigningIdentity -> DEBU 042 Obtaining default signing identity
2018-10-21 23:36:34.024 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 043 java chaincode disabled
2018-10-21 23:36:34.024 UTC [msp/identity] Sign -> DEBU 044 Sign: plaintext: 0ACA070A6208031A0B08829BB4DE0510...636331391A0A0A0571756572790A0161
2018-10-21 23:36:34.024 UTC [msp/identity] Sign -> DEBU 045 Sign: digest: B09C49D377A03291BD9B85283F37D42BC07B6A798AEFE704096E3712F75E42E9
1900
root@38a4a6244f13:/opt/gopath/src/chaincodedev# peer chaincode invoke -n mycc18 -c '{"Args":["invokeOtherChaoncode", "mycc19", "myc", "set", "a", "190000"]}' -C myc
2018-10-21 23:36:58.009 UTC [viperutil] getKeysRecursively -> DEBU 001 Found map[string]interface{} value for peer.BCCSP
2018-10-21 23:36:58.009 UTC [viperutil] unmarshalJSON -> DEBU 002 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:36:58.009 UTC [viperutil] getKeysRecursively -> DEBU 003 Found real value for peer.BCCSP.Default setting to string SW
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 004 Found map[string]interface{} value for peer.BCCSP.SW
2018-10-21 23:36:58.010 UTC [viperutil] unmarshalJSON -> DEBU 005 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 006 Found real value for peer.BCCSP.SW.Hash setting to string SHA2
2018-10-21 23:36:58.010 UTC [viperutil] unmarshalJSON -> DEBU 007 Unmarshal JSON: value is not a string: 256
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 008 Found real value for peer.BCCSP.SW.Security setting to int 256
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 009 Found map[string]interface{} value for peer.BCCSP.SW.FileKeyStore
2018-10-21 23:36:58.010 UTC [viperutil] unmarshalJSON -> DEBU 00a Unmarshal JSON: value cannot be unmarshalled: unexpected end of JSON input
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 00b Found real value for peer.BCCSP.SW.FileKeyStore.KeyStore setting to string
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 00c Found map[string]interface{} value for peer.BCCSP.PKCS11
2018-10-21 23:36:58.010 UTC [viperutil] unmarshalJSON -> DEBU 00d Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 00e Found real value for peer.BCCSP.PKCS11.Pin setting to <nil> <nil>
2018-10-21 23:36:58.011 UTC [viperutil] unmarshalJSON -> DEBU 00f Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:58.011 UTC [viperutil] getKeysRecursively -> DEBU 010 Found real value for peer.BCCSP.PKCS11.Hash setting to <nil> <nil>
2018-10-21 23:36:58.011 UTC [viperutil] unmarshalJSON -> DEBU 011 Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:58.011 UTC [viperutil] getKeysRecursively -> DEBU 012 Found real value for peer.BCCSP.PKCS11.Security setting to <nil> <nil>
2018-10-21 23:36:58.011 UTC [viperutil] getKeysRecursively -> DEBU 013 Found map[string]interface{} value for peer.BCCSP.PKCS11.FileKeyStore
2018-10-21 23:36:58.011 UTC [viperutil] unmarshalJSON -> DEBU 014 Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:58.011 UTC [viperutil] getKeysRecursively -> DEBU 015 Found real value for peer.BCCSP.PKCS11.FileKeyStore.KeyStore setting to <nil> <nil>
2018-10-21 23:36:58.011 UTC [viperutil] unmarshalJSON -> DEBU 016 Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:58.011 UTC [viperutil] getKeysRecursively -> DEBU 017 Found real value for peer.BCCSP.PKCS11.Library setting to <nil> <nil>
2018-10-21 23:36:58.012 UTC [viperutil] unmarshalJSON -> DEBU 018 Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:36:58.012 UTC [viperutil] getKeysRecursively -> DEBU 019 Found real value for peer.BCCSP.PKCS11.Label setting to <nil> <nil>
2018-10-21 23:36:58.012 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 01a map[peer.BCCSP:map[Default:SW SW:map[Hash:SHA2 Security:256 FileKeyStore:map[KeyStore:]] PKCS11:map[Library:<nil> Label:<nil> Pin:<nil> Hash:<nil> Security:<nil> FileKeyStore:map[KeyStore:<nil>]]]]
2018-10-21 23:36:58.012 UTC [bccsp_sw] openKeyStore -> DEBU 01b KeyStore opened at [/etc/hyperledger/msp/keystore]...done
2018-10-21 23:36:58.012 UTC [bccsp] initBCCSP -> DEBU 01c Initialize BCCSP [SW]
2018-10-21 23:36:58.012 UTC [msp] getPemMaterialFromDir -> DEBU 01d Reading directory /etc/hyperledger/msp/signcerts
2018-10-21 23:36:58.012 UTC [msp] getPemMaterialFromDir -> DEBU 01e Inspecting file /etc/hyperledger/msp/signcerts/peer.pem
2018-10-21 23:36:58.012 UTC [msp] getPemMaterialFromDir -> DEBU 01f Reading directory /etc/hyperledger/msp/cacerts
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 020 Inspecting file /etc/hyperledger/msp/cacerts/cacert.pem
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 021 Reading directory /etc/hyperledger/msp/admincerts
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 022 Inspecting file /etc/hyperledger/msp/admincerts/admincert.pem
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 023 Reading directory /etc/hyperledger/msp/intermediatecerts
2018-10-21 23:36:58.013 UTC [msp] getMspConfig -> DEBU 024 Intermediate certs folder not found at [/etc/hyperledger/msp/intermediatecerts]. Skipping. [stat /etc/hyperledger/msp/intermediatecerts: no such file or directory]
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 025 Reading directory /etc/hyperledger/msp/tlscacerts
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 026 Inspecting file /etc/hyperledger/msp/tlscacerts/tlsroot.pem
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 027 Reading directory /etc/hyperledger/msp/tlsintermediatecerts
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 028 Inspecting file /etc/hyperledger/msp/tlsintermediatecerts/tlsintermediate.pem
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 029 Reading directory /etc/hyperledger/msp/crls
2018-10-21 23:36:58.013 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/etc/hyperledger/msp/crls]. Skipping. [stat /etc/hyperledger/msp/crls: no such file or directory]
2018-10-21 23:36:58.013 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/etc/hyperledger/msp/config.yaml]: [stat /etc/hyperledger/msp/config.yaml: no such file or directory]
2018-10-21 23:36:58.014 UTC [msp] newBccspMsp -> DEBU 02c Creating BCCSP-based MSP instance
2018-10-21 23:36:58.014 UTC [msp] New -> DEBU 02d Creating Cache-MSP instance
2018-10-21 23:36:58.014 UTC [msp] loadLocaMSP -> DEBU 02e Created new local MSP
2018-10-21 23:36:58.014 UTC [msp] Setup -> DEBU 02f Setting up MSP instance DEFAULT
2018-10-21 23:36:58.014 UTC [msp/identity] newIdentity -> DEBU 030 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICYjCCAgigAwIBAgIRAL1fEAnz5zp4moJ8MdSb/lYwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjCBgTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlm
b3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhh
bXBsZS5jb20xDDAKBgNVBAsTA0NPUDEcMBoGA1UEAxMTY2Eub3JnMS5leGFtcGxl
LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGrsQ6oJpk6hDWf63HU3OSNd
bou9KNw/VIee1IngPDI4YJU7O+Xa/XLJuwnFv7BpR8Ytl3f+njC8i/RZP2/svO+j
XzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQF
MAMBAf8wKQYDVR0OBCIEIIpzkSIZzxBWVIV5unlgZJuyu2XPEeP8+y1uB6LLA5Qr
MAoGCCqGSM49BAMCA0gAMEUCIQDUh/+CC2dAICnYtACXspwUaaEbiyZxYIx+XDvW
o8VVcgIgGz5S4iC5+xkxgeaISPfxKTTVy6yzTdYGzCw1vPppjzo=
-----END CERTIFICATE-----
2018-10-21 23:36:58.015 UTC [msp/identity] newIdentity -> DEBU 031 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:58.031 UTC [msp/identity] newIdentity -> DEBU 032 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:58.032 UTC [msp/identity] newIdentity -> DEBU 033 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:58.032 UTC [msp] setupSigningIdentity -> DEBU 034 Signing identity expires at 2027-11-10 13:41:11 +0000 UTC
2018-10-21 23:36:58.033 UTC [msp] Validate -> DEBU 035 MSP DEFAULT validating identity
2018-10-21 23:36:58.034 UTC [grpc] Printf -> DEBU 036 parsed scheme: ""
2018-10-21 23:36:58.034 UTC [grpc] Printf -> DEBU 037 scheme "" not registered, fallback to default scheme
2018-10-21 23:36:58.034 UTC [grpc] Printf -> DEBU 038 ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 <nil>}]
2018-10-21 23:36:58.034 UTC [grpc] Printf -> DEBU 039 ClientConn switching balancer to "pick_first"
2018-10-21 23:36:58.034 UTC [grpc] Printf -> DEBU 03a pickfirstBalancer: HandleSubConnStateChange: 0xc4204a9c40, CONNECTING
2018-10-21 23:36:58.036 UTC [grpc] Printf -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc4204a9c40, READY
2018-10-21 23:36:58.037 UTC [grpc] Printf -> DEBU 03c parsed scheme: ""
2018-10-21 23:36:58.037 UTC [grpc] Printf -> DEBU 03d scheme "" not registered, fallback to default scheme
2018-10-21 23:36:58.037 UTC [grpc] Printf -> DEBU 03e ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 <nil>}]
2018-10-21 23:36:58.037 UTC [grpc] Printf -> DEBU 03f ClientConn switching balancer to "pick_first"
2018-10-21 23:36:58.037 UTC [grpc] Printf -> DEBU 040 pickfirstBalancer: HandleSubConnStateChange: 0xc42016a170, CONNECTING
2018-10-21 23:36:58.040 UTC [grpc] Printf -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc42016a170, READY
2018-10-21 23:36:58.040 UTC [msp] GetDefaultSigningIdentity -> DEBU 042 Obtaining default signing identity
2018-10-21 23:36:58.040 UTC [msp/identity] Sign -> DEBU 043 Sign: plaintext: 0AC3070A5B08011A0B089A9BB4DE0510...436F6E666967426C6F636B0A036D7963
2018-10-21 23:36:58.040 UTC [msp/identity] Sign -> DEBU 044 Sign: digest: 1E5F2CD2170FF75A2A082A699199558FCD5A9751544035A507A5EBDD77BC01F0
2018-10-21 23:36:58.043 UTC [common/channelconfig] NewStandardValues -> DEBU 045 Initializing protos for *channelconfig.ChannelProtos
2018-10-21 23:36:58.043 UTC [common/channelconfig] initializeProtosStruct -> DEBU 046 Processing field: HashingAlgorithm
2018-10-21 23:36:58.043 UTC [common/channelconfig] initializeProtosStruct -> DEBU 047 Processing field: BlockDataHashingStructure
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 048 Processing field: OrdererAddresses
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 049 Processing field: Consortium
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 04a Processing field: Capabilities
2018-10-21 23:36:58.044 UTC [common/channelconfig] NewStandardValues -> DEBU 04b Initializing protos for *channelconfig.OrdererProtos
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 04c Processing field: ConsensusType
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 04d Processing field: BatchSize
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 04e Processing field: BatchTimeout
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 04f Processing field: KafkaBrokers
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 050 Processing field: ChannelRestrictions
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 051 Processing field: Capabilities
2018-10-21 23:36:58.044 UTC [common/channelconfig] NewStandardValues -> DEBU 052 Initializing protos for *channelconfig.OrganizationProtos
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 053 Processing field: MSP
2018-10-21 23:36:58.045 UTC [common/channelconfig] validateMSP -> DEBU 054 Setting up MSP for org SampleOrg
2018-10-21 23:36:58.045 UTC [msp] newBccspMsp -> DEBU 055 Creating BCCSP-based MSP instance
2018-10-21 23:36:58.045 UTC [msp] New -> DEBU 056 Creating Cache-MSP instance
2018-10-21 23:36:58.045 UTC [msp] Setup -> DEBU 057 Setting up MSP instance DEFAULT
2018-10-21 23:36:58.046 UTC [msp/identity] newIdentity -> DEBU 058 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICYjCCAgigAwIBAgIRAL1fEAnz5zp4moJ8MdSb/lYwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjCBgTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlm
b3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhh
bXBsZS5jb20xDDAKBgNVBAsTA0NPUDEcMBoGA1UEAxMTY2Eub3JnMS5leGFtcGxl
LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGrsQ6oJpk6hDWf63HU3OSNd
bou9KNw/VIee1IngPDI4YJU7O+Xa/XLJuwnFv7BpR8Ytl3f+njC8i/RZP2/svO+j
XzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQF
MAMBAf8wKQYDVR0OBCIEIIpzkSIZzxBWVIV5unlgZJuyu2XPEeP8+y1uB6LLA5Qr
MAoGCCqGSM49BAMCA0gAMEUCIQDUh/+CC2dAICnYtACXspwUaaEbiyZxYIx+XDvW
o8VVcgIgGz5S4iC5+xkxgeaISPfxKTTVy6yzTdYGzCw1vPppjzo=
-----END CERTIFICATE-----
2018-10-21 23:36:58.048 UTC [msp/identity] newIdentity -> DEBU 059 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:58.050 UTC [msp] Validate -> DEBU 05a MSP DEFAULT validating identity
2018-10-21 23:36:58.050 UTC [common/channelconfig] NewStandardValues -> DEBU 05b Initializing protos for *channelconfig.ApplicationProtos
2018-10-21 23:36:58.050 UTC [common/channelconfig] initializeProtosStruct -> DEBU 05c Processing field: ACLs
2018-10-21 23:36:58.050 UTC [common/channelconfig] initializeProtosStruct -> DEBU 05d Processing field: Capabilities
2018-10-21 23:36:58.050 UTC [common/channelconfig] NewStandardValues -> DEBU 05e Initializing protos for *channelconfig.ApplicationOrgProtos
2018-10-21 23:36:58.050 UTC [common/channelconfig] initializeProtosStruct -> DEBU 05f Processing field: AnchorPeers
2018-10-21 23:36:58.050 UTC [common/channelconfig] NewStandardValues -> DEBU 060 Initializing protos for *channelconfig.OrganizationProtos
2018-10-21 23:36:58.050 UTC [common/channelconfig] initializeProtosStruct -> DEBU 061 Processing field: MSP
2018-10-21 23:36:58.050 UTC [common/channelconfig] Validate -> DEBU 062 Anchor peers for org SampleOrg are
2018-10-21 23:36:58.051 UTC [common/channelconfig] validateMSP -> DEBU 063 Setting up MSP for org SampleOrg
2018-10-21 23:36:58.051 UTC [msp] newBccspMsp -> DEBU 064 Creating BCCSP-based MSP instance
2018-10-21 23:36:58.051 UTC [msp] New -> DEBU 065 Creating Cache-MSP instance
2018-10-21 23:36:58.051 UTC [msp] Setup -> DEBU 066 Setting up MSP instance DEFAULT
2018-10-21 23:36:58.052 UTC [msp/identity] newIdentity -> DEBU 067 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICYjCCAgigAwIBAgIRAL1fEAnz5zp4moJ8MdSb/lYwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjCBgTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlm
b3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhh
bXBsZS5jb20xDDAKBgNVBAsTA0NPUDEcMBoGA1UEAxMTY2Eub3JnMS5leGFtcGxl
LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGrsQ6oJpk6hDWf63HU3OSNd
bou9KNw/VIee1IngPDI4YJU7O+Xa/XLJuwnFv7BpR8Ytl3f+njC8i/RZP2/svO+j
XzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQF
MAMBAf8wKQYDVR0OBCIEIIpzkSIZzxBWVIV5unlgZJuyu2XPEeP8+y1uB6LLA5Qr
MAoGCCqGSM49BAMCA0gAMEUCIQDUh/+CC2dAICnYtACXspwUaaEbiyZxYIx+XDvW
o8VVcgIgGz5S4iC5+xkxgeaISPfxKTTVy6yzTdYGzCw1vPppjzo=
-----END CERTIFICATE-----
2018-10-21 23:36:58.053 UTC [msp/identity] newIdentity -> DEBU 068 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:58.055 UTC [msp] Validate -> DEBU 069 MSP DEFAULT validating identity
2018-10-21 23:36:58.055 UTC [msp] Setup -> DEBU 06a Setting up the MSP manager (1 msps)
2018-10-21 23:36:58.055 UTC [msp] Setup -> DEBU 06b MSP manager setup complete, setup 1 msps
2018-10-21 23:36:58.055 UTC [policies] NewManagerImpl -> DEBU 06c Proposed new policy Admins for Channel/Orderer/SampleOrg
2018-10-21 23:36:58.055 UTC [policies] NewManagerImpl -> DEBU 06d Proposed new policy Readers for Channel/Orderer/SampleOrg
2018-10-21 23:36:58.055 UTC [policies] NewManagerImpl -> DEBU 06e Proposed new policy Writers for Channel/Orderer/SampleOrg
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 06f Proposed new policy Admins for Channel/Orderer
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 070 Proposed new policy Readers for Channel/Orderer
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 071 Proposed new policy Writers for Channel/Orderer
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 072 Proposed new policy BlockValidation for Channel/Orderer
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 073 Proposed new policy Admins for Channel/Application/SampleOrg
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 074 Proposed new policy Readers for Channel/Application/SampleOrg
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 075 Proposed new policy Writers for Channel/Application/SampleOrg
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 076 Proposed new policy Readers for Channel/Application
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 077 Proposed new policy Writers for Channel/Application
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 078 Proposed new policy Admins for Channel/Application
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 079 Proposed new policy Writers for Channel
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 07a Proposed new policy Admins for Channel
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 07b Proposed new policy Readers for Channel
2018-10-21 23:36:58.058 UTC [common/configtx] addToMap -> DEBU 07c Adding to config map: [Group] /Channel
2018-10-21 23:36:58.059 UTC [common/configtx] addToMap -> DEBU 07d Adding to config map: [Group] /Channel/Orderer
2018-10-21 23:36:58.059 UTC [common/configtx] addToMap -> DEBU 07e Adding to config map: [Group] /Channel/Orderer/SampleOrg
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 07f Adding to config map: [Value] /Channel/Orderer/SampleOrg/MSP
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 080 Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Admins
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 081 Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Readers
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 082 Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Writers
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 083 Adding to config map: [Value] /Channel/Orderer/BatchTimeout
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 084 Adding to config map: [Value] /Channel/Orderer/ChannelRestrictions
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 085 Adding to config map: [Value] /Channel/Orderer/ConsensusType
2018-10-21 23:36:58.061 UTC [common/configtx] addToMap -> DEBU 086 Adding to config map: [Value] /Channel/Orderer/BatchSize
2018-10-21 23:36:58.061 UTC [common/configtx] addToMap -> DEBU 087 Adding to config map: [Policy] /Channel/Orderer/Readers
2018-10-21 23:36:58.065 UTC [common/configtx] addToMap -> DEBU 088 Adding to config map: [Policy] /Channel/Orderer/Writers
2018-10-21 23:36:58.068 UTC [common/configtx] addToMap -> DEBU 089 Adding to config map: [Policy] /Channel/Orderer/BlockValidation
2018-10-21 23:36:58.069 UTC [common/configtx] addToMap -> DEBU 08a Adding to config map: [Policy] /Channel/Orderer/Admins
2018-10-21 23:36:58.070 UTC [common/configtx] addToMap -> DEBU 08b Adding to config map: [Group] /Channel/Application
2018-10-21 23:36:58.070 UTC [common/configtx] addToMap -> DEBU 08c Adding to config map: [Group] /Channel/Application/SampleOrg
2018-10-21 23:36:58.070 UTC [common/configtx] addToMap -> DEBU 08d Adding to config map: [Value] /Channel/Application/SampleOrg/MSP
2018-10-21 23:36:58.070 UTC [common/configtx] addToMap -> DEBU 08e Adding to config map: [Policy] /Channel/Application/SampleOrg/Admins
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 08f Adding to config map: [Policy] /Channel/Application/SampleOrg/Readers
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 090 Adding to config map: [Policy] /Channel/Application/SampleOrg/Writers
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 091 Adding to config map: [Policy] /Channel/Application/Readers
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 092 Adding to config map: [Policy] /Channel/Application/Writers
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 093 Adding to config map: [Policy] /Channel/Application/Admins
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 094 Adding to config map: [Value] /Channel/BlockDataHashingStructure
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 095 Adding to config map: [Value] /Channel/OrdererAddresses
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 096 Adding to config map: [Value] /Channel/HashingAlgorithm
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 097 Adding to config map: [Value] /Channel/Consortium
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 098 Adding to config map: [Policy] /Channel/Admins
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 099 Adding to config map: [Policy] /Channel/Readers
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 09a Adding to config map: [Policy] /Channel/Writers
2018-10-21 23:36:58.071 UTC [chaincodeCmd] InitCmdFactory -> INFO 09b Retrieved channel (myc) orderer endpoint: orderer:7050
2018-10-21 23:36:58.072 UTC [grpc] Printf -> DEBU 09c parsed scheme: ""
2018-10-21 23:36:58.072 UTC [grpc] Printf -> DEBU 09d scheme "" not registered, fallback to default scheme
2018-10-21 23:36:58.072 UTC [grpc] Printf -> DEBU 09e ccResolverWrapper: sending new addresses to cc: [{orderer:7050 0 <nil>}]
2018-10-21 23:36:58.072 UTC [grpc] Printf -> DEBU 09f ClientConn switching balancer to "pick_first"
2018-10-21 23:36:58.072 UTC [grpc] Printf -> DEBU 0a0 pickfirstBalancer: HandleSubConnStateChange: 0xc4202b17a0, CONNECTING
2018-10-21 23:36:58.085 UTC [grpc] Printf -> DEBU 0a1 pickfirstBalancer: HandleSubConnStateChange: 0xc4202b17a0, READY
2018-10-21 23:36:58.085 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 0a2 java chaincode disabled
2018-10-21 23:36:58.085 UTC [msp/identity] Sign -> DEBU 0a3 Sign: plaintext: 0ACA070A6208031A0B089A9BB4DE0510...0A037365740A01610A06313930303030
2018-10-21 23:36:58.085 UTC [msp/identity] Sign -> DEBU 0a4 Sign: digest: 43387CFF21EF54972E34F5B38E671E6EDE9A05B0A608603A6163C7C1421B9F1B
2018-10-21 23:36:58.096 UTC [msp/identity] Sign -> DEBU 0a5 Sign: plaintext: 0ACA070A6208031A0B089A9BB4DE0510...FA8F260BB55A597DF4424669315F6B88
2018-10-21 23:36:58.096 UTC [msp/identity] Sign -> DEBU 0a6 Sign: digest: B77F54327AC4B2BE21F35F4FDCCB4ED6BF70D1E7E179F7157B9BBD309020E57A
2018-10-21 23:36:58.101 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 0a7 ESCC invoke result: version:1 response:<status:200 payload:"190000" > payload:"\n \354\260.\366b\2468\006\260[\237m\234\332\221\232\027\340\266\220\352\241\023{\305\300\322\206\230\371\334\036\022[\n?\022$\n\004lscc\022\034\n\014\n\006mycc18\022\002\010+\n\014\n\006mycc19\022\002\010,\022\027\n\006mycc19\022\r\032\013\n\001a\032\006190000\032\013\010\310\001\032\006190000\"\013\022\006mycc18\032\0010" endorsement:<endorser:"\n\007DEFAULT\022\272\006-----BEGIN CERTIFICATE-----\nMIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx\nCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g\nRnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND\nT1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx\nWhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv\ncm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD\nVQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D\nAQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf\nEkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud\nEwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H\nossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz\nPzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI\n-----END CERTIFICATE-----\n" signature:"0D\002 F\007\032*;\352wfk\343\224\275\213@m4\366r\355S\263^\010p\276&! !o\215\223\002 _\325\276#\220`\232\370W\316*\236\026\300\230\002\372\217&\013\265ZY}\364BFi1_k\210" >
2018-10-21 23:36:58.102 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 0a8 Chaincode invoke successful. result: status:200 payload:"190000"
root@38a4a6244f13:/opt/gopath/src/chaincodedev# peer chaincode query -n mycc19 -c '{"Args":["query","a"]}' -C myc
2018-10-21 23:37:00.871 UTC [viperutil] getKeysRecursively -> DEBU 001 Found map[string]interface{} value for peer.BCCSP
2018-10-21 23:37:00.872 UTC [viperutil] getKeysRecursively -> DEBU 002 Found map[string]interface{} value for peer.BCCSP.PKCS11
2018-10-21 23:37:00.872 UTC [viperutil] unmarshalJSON -> DEBU 003 Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:37:00.872 UTC [viperutil] getKeysRecursively -> DEBU 004 Found real value for peer.BCCSP.PKCS11.Pin setting to <nil> <nil>
2018-10-21 23:37:00.872 UTC [viperutil] unmarshalJSON -> DEBU 005 Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:37:00.872 UTC [viperutil] getKeysRecursively -> DEBU 006 Found real value for peer.BCCSP.PKCS11.Hash setting to <nil> <nil>
2018-10-21 23:37:00.873 UTC [viperutil] unmarshalJSON -> DEBU 007 Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:37:00.873 UTC [viperutil] getKeysRecursively -> DEBU 008 Found real value for peer.BCCSP.PKCS11.Security setting to <nil> <nil>
2018-10-21 23:37:00.873 UTC [viperutil] getKeysRecursively -> DEBU 009 Found map[string]interface{} value for peer.BCCSP.PKCS11.FileKeyStore
2018-10-21 23:37:00.873 UTC [viperutil] unmarshalJSON -> DEBU 00a Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:37:00.873 UTC [viperutil] getKeysRecursively -> DEBU 00b Found real value for peer.BCCSP.PKCS11.FileKeyStore.KeyStore setting to <nil> <nil>
2018-10-21 23:37:00.874 UTC [viperutil] unmarshalJSON -> DEBU 00c Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:37:00.874 UTC [viperutil] getKeysRecursively -> DEBU 00d Found real value for peer.BCCSP.PKCS11.Library setting to <nil> <nil>
2018-10-21 23:37:00.874 UTC [viperutil] unmarshalJSON -> DEBU 00e Unmarshal JSON: value is not a string: <nil>
2018-10-21 23:37:00.875 UTC [viperutil] getKeysRecursively -> DEBU 00f Found real value for peer.BCCSP.PKCS11.Label setting to <nil> <nil>
2018-10-21 23:37:00.875 UTC [viperutil] unmarshalJSON -> DEBU 010 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:37:00.875 UTC [viperutil] getKeysRecursively -> DEBU 011 Found real value for peer.BCCSP.Default setting to string SW
2018-10-21 23:37:00.875 UTC [viperutil] getKeysRecursively -> DEBU 012 Found map[string]interface{} value for peer.BCCSP.SW
2018-10-21 23:37:00.875 UTC [viperutil] getKeysRecursively -> DEBU 013 Found map[string]interface{} value for peer.BCCSP.SW.FileKeyStore
2018-10-21 23:37:00.875 UTC [viperutil] unmarshalJSON -> DEBU 014 Unmarshal JSON: value cannot be unmarshalled: unexpected end of JSON input
2018-10-21 23:37:00.875 UTC [viperutil] getKeysRecursively -> DEBU 015 Found real value for peer.BCCSP.SW.FileKeyStore.KeyStore setting to string
2018-10-21 23:37:00.876 UTC [viperutil] unmarshalJSON -> DEBU 016 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:37:00.876 UTC [viperutil] getKeysRecursively -> DEBU 017 Found real value for peer.BCCSP.SW.Hash setting to string SHA2
2018-10-21 23:37:00.876 UTC [viperutil] unmarshalJSON -> DEBU 018 Unmarshal JSON: value is not a string: 256
2018-10-21 23:37:00.877 UTC [viperutil] getKeysRecursively -> DEBU 019 Found real value for peer.BCCSP.SW.Security setting to int 256
2018-10-21 23:37:00.878 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 01a map[peer.BCCSP:map[PKCS11:map[Pin:<nil> Hash:<nil> Security:<nil> FileKeyStore:map[KeyStore:<nil>] Library:<nil> Label:<nil>] Default:SW SW:map[FileKeyStore:map[KeyStore:] Hash:SHA2 Security:256]]]
2018-10-21 23:37:00.878 UTC [bccsp_sw] openKeyStore -> DEBU 01b KeyStore opened at [/etc/hyperledger/msp/keystore]...done
2018-10-21 23:37:00.878 UTC [bccsp] initBCCSP -> DEBU 01c Initialize BCCSP [SW]
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 01d Reading directory /etc/hyperledger/msp/signcerts
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 01e Inspecting file /etc/hyperledger/msp/signcerts/peer.pem
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 01f Reading directory /etc/hyperledger/msp/cacerts
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 020 Inspecting file /etc/hyperledger/msp/cacerts/cacert.pem
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 021 Reading directory /etc/hyperledger/msp/admincerts
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 022 Inspecting file /etc/hyperledger/msp/admincerts/admincert.pem
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 023 Reading directory /etc/hyperledger/msp/intermediatecerts
2018-10-21 23:37:00.880 UTC [msp] getMspConfig -> DEBU 024 Intermediate certs folder not found at [/etc/hyperledger/msp/intermediatecerts]. Skipping. [stat /etc/hyperledger/msp/intermediatecerts: no such file or directory]
2018-10-21 23:37:00.881 UTC [msp] getPemMaterialFromDir -> DEBU 025 Reading directory /etc/hyperledger/msp/tlscacerts
2018-10-21 23:37:00.881 UTC [msp] getPemMaterialFromDir -> DEBU 026 Inspecting file /etc/hyperledger/msp/tlscacerts/tlsroot.pem
2018-10-21 23:37:00.881 UTC [msp] getPemMaterialFromDir -> DEBU 027 Reading directory /etc/hyperledger/msp/tlsintermediatecerts
2018-10-21 23:37:00.881 UTC [msp] getPemMaterialFromDir -> DEBU 028 Inspecting file /etc/hyperledger/msp/tlsintermediatecerts/tlsintermediate.pem
2018-10-21 23:37:00.881 UTC [msp] getPemMaterialFromDir -> DEBU 029 Reading directory /etc/hyperledger/msp/crls
2018-10-21 23:37:00.881 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/etc/hyperledger/msp/crls]. Skipping. [stat /etc/hyperledger/msp/crls: no such file or directory]
2018-10-21 23:37:00.881 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/etc/hyperledger/msp/config.yaml]: [stat /etc/hyperledger/msp/config.yaml: no such file or directory]
2018-10-21 23:37:00.881 UTC [msp] newBccspMsp -> DEBU 02c Creating BCCSP-based MSP instance
2018-10-21 23:37:00.881 UTC [msp] New -> DEBU 02d Creating Cache-MSP instance
2018-10-21 23:37:00.881 UTC [msp] loadLocaMSP -> DEBU 02e Created new local MSP
2018-10-21 23:37:00.881 UTC [msp] Setup -> DEBU 02f Setting up MSP instance DEFAULT
2018-10-21 23:37:00.881 UTC [msp/identity] newIdentity -> DEBU 030 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICYjCCAgigAwIBAgIRAL1fEAnz5zp4moJ8MdSb/lYwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjCBgTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlm
b3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhh
bXBsZS5jb20xDDAKBgNVBAsTA0NPUDEcMBoGA1UEAxMTY2Eub3JnMS5leGFtcGxl
LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGrsQ6oJpk6hDWf63HU3OSNd
bou9KNw/VIee1IngPDI4YJU7O+Xa/XLJuwnFv7BpR8Ytl3f+njC8i/RZP2/svO+j
XzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQF
MAMBAf8wKQYDVR0OBCIEIIpzkSIZzxBWVIV5unlgZJuyu2XPEeP8+y1uB6LLA5Qr
MAoGCCqGSM49BAMCA0gAMEUCIQDUh/+CC2dAICnYtACXspwUaaEbiyZxYIx+XDvW
o8VVcgIgGz5S4iC5+xkxgeaISPfxKTTVy6yzTdYGzCw1vPppjzo=
-----END CERTIFICATE-----
2018-10-21 23:37:00.882 UTC [msp/identity] newIdentity -> DEBU 031 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:37:00.897 UTC [msp/identity] newIdentity -> DEBU 032 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:37:00.899 UTC [msp/identity] newIdentity -> DEBU 033 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:37:00.899 UTC [msp] setupSigningIdentity -> DEBU 034 Signing identity expires at 2027-11-10 13:41:11 +0000 UTC
2018-10-21 23:37:00.900 UTC [msp] Validate -> DEBU 035 MSP DEFAULT validating identity
2018-10-21 23:37:00.901 UTC [grpc] Printf -> DEBU 036 parsed scheme: ""
2018-10-21 23:37:00.901 UTC [grpc] Printf -> DEBU 037 scheme "" not registered, fallback to default scheme
2018-10-21 23:37:00.901 UTC [grpc] Printf -> DEBU 038 ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 <nil>}]
2018-10-21 23:37:00.901 UTC [grpc] Printf -> DEBU 039 ClientConn switching balancer to "pick_first"
2018-10-21 23:37:00.901 UTC [grpc] Printf -> DEBU 03a pickfirstBalancer: HandleSubConnStateChange: 0xc4204c7c40, CONNECTING
2018-10-21 23:37:00.904 UTC [grpc] Printf -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc4204c7c40, READY
2018-10-21 23:37:00.905 UTC [grpc] Printf -> DEBU 03c parsed scheme: ""
2018-10-21 23:37:00.905 UTC [grpc] Printf -> DEBU 03d scheme "" not registered, fallback to default scheme
2018-10-21 23:37:00.905 UTC [grpc] Printf -> DEBU 03e ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 <nil>}]
2018-10-21 23:37:00.905 UTC [grpc] Printf -> DEBU 03f ClientConn switching balancer to "pick_first"
2018-10-21 23:37:00.906 UTC [grpc] Printf -> DEBU 040 pickfirstBalancer: HandleSubConnStateChange: 0xc420166170, CONNECTING
2018-10-21 23:37:00.908 UTC [grpc] Printf -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc420166170, READY
2018-10-21 23:37:00.909 UTC [msp] GetDefaultSigningIdentity -> DEBU 042 Obtaining default signing identity
2018-10-21 23:37:00.910 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 043 java chaincode disabled
2018-10-21 23:37:00.910 UTC [msp/identity] Sign -> DEBU 044 Sign: plaintext: 0ACB070A6308031A0C089C9BB4DE0510...636331391A0A0A0571756572790A0161
2018-10-21 23:37:00.910 UTC [msp/identity] Sign -> DEBU 045 Sign: digest: CD8F9DE84F90FFD614F213461C3E0A93A1AE4CACD3C49C0992DCED981600BB7B
190000
root@38a4a6244f13:/opt/gopath/src/chaincodedev#

---------------------
作者:xjyr
来源:CSDN
原文:https://blog.csdn.net/xjyr/article/details/83267788
版权声明:本文为博主原创文章,转载请附上博文链接!

(转)fabric 一个链码如何调用另一个链码的更多相关文章

  1. Java中的一个类怎么调用另一个类中的方法

    如果另一个类中的那个方法是私有的话,就不能直接调用到,如果是其他类型的话看情况,如果是静态的(static)话,直接用类名可以调用到,如果是非静态的,就需要利用另一个类的实例(也就是用那个类生成的对象 ...

  2. android开发中一个activity如何调用另一个xml中的控件

    有时候,我们需要在一个activity中使用另一个activity中的控件,这时候就不能直接findViewById,不然会报错指向空对象,这时就需要像下面这样做. LayoutInflater fa ...

  3. CI框架中一个类中调用另一个类中已经加载对象测试

    controller.php <?php class CI_Controller { private static $instance; public function __construct( ...

  4. C语言中如何调用另一个源文件里的函数

    在开发大型项目时,我们常常需要将一份源码分成多个源文件来进行编写,这样可以方便后期的维护.下面就介绍如何从一个源文件里调用另一个源文件的函数. 在源文件A1.c中调用A2.c 中的函数有两种方法: 1 ...

  5. [原创]C/C++语言中,如何在main.c或main.cpp中调用另一个.c文件

    C/C++语言中,如何在main.cpp中调用另一个.c文件主要有5种思路: 1.在VS2012 IDE中,将被引用的.c文件后缀名全部修改为.h,然后通过IDE的解决方案资源管理器中鼠标右键单击“头 ...

  6. Entity Framework 6 Recipes 2nd Edition(11-4)译 -> 在”模型定义”函数里调用另一个”模型定义”函数

    11-4.在”模型定义”函数里调用另一个”模型定义”函数 问题 想要用一个”模型定义”函数去实现另一个”模型定义”函数 解决方案 假设我们已有一个公司合伙人关系连同它们的结构模型,如Figure 11 ...

  7. 调用另一个Activity

    <转>调用另一个Activity Intent对象的使用 范例说明 前一个范例介绍了如何运用切换Layout的方式,进行手机页面间的转换.如果要转换的页面并不单只是背景.颜色或文字内容的不 ...

  8. php部分--面向对象三大特性-封装(另加连续调用的一个例子)、继承(重写、重载的例子)、多态;

    一.封装性: 目的:为了使类更加安全. 做法:1设置私有成员 2在类中建方法,访问私有成员 3在方法里边加控制(if) 私有成员访问的两种方法: 方法一:set(可写) get(可读)做方法(可读可写 ...

  9. 在C#中调用另一个应用程序或命令行(.exe 带参数)<zz>

    在.net中使用system.diaglostics.Process可以用来调用另一个命令行或程序. using   System.Diagnostics;     如果是dos     Proces ...

随机推荐

  1. 导入日志文件到mysql数据库表

    #!/bin/bash #**************************************************************************** #***将/usr/ ...

  2. Kotlin入门第一课:从对比Java开始

    1. 介绍 今年初,甲骨文再次对谷歌所谓的安卓侵权使用Java提起诉讼,要求后者赔偿高达90亿美元.随后便传出谷歌因此计划将主力语言切换到苹果主导的Swift,不过这事后来没了跟进. 但谷歌在这两天的 ...

  3. 10.22crm

    2018-10-23 08:28:41 由于昨晚上断网,所以今天早上补更一下 越努力,越幸运!永远不要高估自己! crm老师就讲三四天,还有明后两天! 主要是讲一些基本使用,自定义配置陪一些东西! 主 ...

  4. MyISAM和InnoDB区别 及选择

    MySQL默认采用的是MyISAM. MyISAM不支持事务,而InnoDB支持.InnoDB的AUTOCOMMIT默认是打开的,即每条SQL语句会默认被封装成一个事务,自动提交,这样会影响速度,所以 ...

  5. db2 查杀死锁进程

    db2 查杀死锁进命令 db2 get snapshot for locks on (需要snapshot的访问权限) db2 list applications db2 "force ap ...

  6. {03--CSS布局设置} 盒模型 二 padding bode margin 标准文档流 块级元素和行内元素 浮动 margin的用法 文本属性和字体属性 超链接导航栏 background 定位 z-index

    03--CSS布局设置 本节目录 一 盒模型 二 padding(内边距) 三 boder(边框) 四 简单认识一下margin(外边距) 五 标准文档流 六 块级元素和行内元素 七 浮动 八 mar ...

  7. IAR 跳转路径错误

    拷贝的代码 右键跳转的时候提示路径错误,是因为别人编译的中间文件 .ojb文件在你的电脑上不一样,拷贝代码后第一件事就是清楚obj中间连接文件,然后重新在你的电脑上编译.

  8. 12.4 hdfs总结

    启动hdfs 需要在namenode 节点 上 s11 启动yarn 需要在resourceManager 节点上 namenode, resourceManager 都需要在整个集群中都是可以无密登 ...

  9. PCIe 复位:Clod reset、warm reset、Hot reset、Function level reset

    2015年09月06日 17:06:01 yijingjing17 阅读数:9029 标签: PCIEReSet复位Clod resetwarm reset 更多 个人分类: PCIe        ...

  10. JS图片水印

    attendanceClick(userID,headImg,userName,company,scoreNmu) { let base64Image = 'assets/imagesaring.pn ...