3

启动网络 terminal1

cd /opt/gopath/src/github.com/hyperledger/fabric-samples/chaincode-docker-devmode

docker-compose -f docker-compose-simple.yaml up

查看启动是否成功 terminal2

docker ps


CONTAINER ID        IMAGE                        COMMAND                  CREATED              STATUS              PORTS                                            NAMES
6628229d62a3        hyperledger/fabric-tools     "/bin/bash -c ./scrip"   About a minute ago   Up About a minute                                                    cli
19fbe5c8e7aa        hyperledger/fabric-ccenv     "/bin/bash -c 'sleep "   About a minute ago   Up About a minute                                                    chaincode
5a4cfef9680c        hyperledger/fabric-peer      "peer node start --pe"   About a minute ago   Up About a minute   0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp   peer
a18422308e57        hyperledger/fabric-orderer   "orderer"                About a minute ago   Up About a minute   0.0.0.0:7050->7050/tcp                           orderer

进入chaincode docker

docker exec -it chaincode bash

构建 chaincode_example02

cd chaincode_example02/
go build

查看编译结果

ll

drwxr-xr-x 2 root root       95 Feb  1 03:02 ./
drwxr-xr-x 6 root root       72 Jan 30 05:45 ../
-rwxr-xr-x 1 root root 14919200 Feb  1 03:02 chaincode_example02*
-rw-r--r-- 1 root root     5436 Jan 30 05:45 chaincode_example02.go
-rw-r--r-- 1 root root     3165 Jan 30 05:45 chaincode_example02_test.go

执行 chaincode_example02

CORE_PEER_ADDRESS=peer:7051 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode_example02

2018-02-01 03:05:43.164 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO
2018-02-01 03:05:43.164 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...

进入 cli docker里 terminal3

 docker exec -it cli bash

确保目录

pwd
/opt/gopath/src

install chaincode

peer chaincode install -p chaincodedev/chaincode/chaincode_example02 -n mycc -v 0
2018-02-01 03:17:46.007 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-02-01 03:17:46.008 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-02-01 03:17:46.008 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-02-01 03:17:46.008 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-02-01 03:17:46.222 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS chaincodedev/chaincode/chaincode_example02
2018-02-01 03:17:46.724 UTC [golang-platform] func1 -> DEBU 006 Discarding GOROOT package fmt
2018-02-01 03:17:46.724 UTC [golang-platform] func1 -> DEBU 007 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2018-02-01 03:17:46.724 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/protos/peer
2018-02-01 03:17:46.724 UTC [golang-platform] func1 -> DEBU 009 Discarding GOROOT package strconv
2018-02-01 03:17:46.724 UTC [golang-platform] GetDeploymentPayload -> DEBU 00a done
2018-02-01 03:17:46.733 UTC [msp/identity] Sign -> DEBU 00b Sign: plaintext: 0AA4080A5C08031A0C08DA8DCAD30510...E8FA57000000FFFFEF017B75002C0000
2018-02-01 03:17:46.733 UTC [msp/identity] Sign -> DEBU 00c Sign: digest: 3C49FF4A6D8E17F80C080E803B3DBE41AA2992B7FDC770D3A12A2CED4F9DD2C8
2018-02-01 03:17:46.745 UTC [chaincodeCmd] install -> DEBU 00d Installed remotely response:<status:200 payload:"OK" >
2018-02-01 03:17:46.745 UTC [main] main -> INFO 00e Exiting.....

实例化chaincode

peer chaincode instantiate -n mycc -v 0 -c '{"Args":["init","a","100","b","200"]}' -C myc

输出

2018-02-01 03:20:01.582 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-02-01 03:20:01.582 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-02-01 03:20:01.584 UTC [msp/identity] Sign -> DEBU 003 Sign: plaintext: 0AA4080A5C08011A0C08E18ECAD30510...436F6E666967426C6F636B0A036D7963
2018-02-01 03:20:01.584 UTC [msp/identity] Sign -> DEBU 004 Sign: digest: 56DD05B7542ECC4FD53B1AFA515ED7EA0EC059914B104F438A3970067613273F
2018-02-01 03:20:01.595 UTC [common/config] NewStandardValues -> DEBU 005 Initializing protos for *config.ChannelProtos
2018-02-01 03:20:01.595 UTC [common/config] initializeProtosStruct -> DEBU 006 Processing field: HashingAlgorithm
2018-02-01 03:20:01.595 UTC [common/config] initializeProtosStruct -> DEBU 007 Processing field: BlockDataHashingStructure
2018-02-01 03:20:01.595 UTC [common/config] initializeProtosStruct -> DEBU 008 Processing field: OrdererAddresses
2018-02-01 03:20:01.596 UTC [common/config] initializeProtosStruct -> DEBU 009 Processing field: Consortium
2018-02-01 03:20:01.600 UTC [common/configtx] addToMap -> DEBU 00a Adding to config map: [Groups] /Channel
2018-02-01 03:20:01.600 UTC [common/configtx] addToMap -> DEBU 00b Adding to config map: [Groups] /Channel/Orderer
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 00c Adding to config map: [Groups] /Channel/Orderer/SampleOrg
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 00d Adding to config map: [Values] /Channel/Orderer/SampleOrg/MSP
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 00e Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Admins
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 00f Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Readers
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 010 Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Writers
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 011 Adding to config map: [Values] /Channel/Orderer/BatchSize
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 012 Adding to config map: [Values] /Channel/Orderer/BatchTimeout
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 013 Adding to config map: [Values] /Channel/Orderer/ChannelRestrictions
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 014 Adding to config map: [Values] /Channel/Orderer/ConsensusType
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 015 Adding to config map: [Policy] /Channel/Orderer/Admins
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 016 Adding to config map: [Policy] /Channel/Orderer/BlockValidation
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 017 Adding to config map: [Policy] /Channel/Orderer/Readers
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 018 Adding to config map: [Policy] /Channel/Orderer/Writers
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 019 Adding to config map: [Groups] /Channel/Application
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01a Adding to config map: [Groups] /Channel/Application/SampleOrg
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01b Adding to config map: [Values] /Channel/Application/SampleOrg/MSP
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01c Adding to config map: [Policy] /Channel/Application/SampleOrg/Writers
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01d Adding to config map: [Policy] /Channel/Application/SampleOrg/Admins
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01e Adding to config map: [Policy] /Channel/Application/SampleOrg/Readers
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01f Adding to config map: [Policy] /Channel/Application/Admins
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 020 Adding to config map: [Policy] /Channel/Application/Writers
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 021 Adding to config map: [Policy] /Channel/Application/Readers
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 022 Adding to config map: [Values] /Channel/Consortium
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 023 Adding to config map: [Values] /Channel/BlockDataHashingStructure
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 024 Adding to config map: [Values] /Channel/OrdererAddresses
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 025 Adding to config map: [Values] /Channel/HashingAlgorithm
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 026 Adding to config map: [Policy] /Channel/Readers
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 027 Adding to config map: [Policy] /Channel/Writers
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 028 Adding to config map: [Policy] /Channel/Admins
2018-02-01 03:20:01.603 UTC [common/configtx] processConfig -> DEBU 029 Beginning new config for channel myc
2018-02-01 03:20:01.603 UTC [common/config] NewStandardValues -> DEBU 02a Initializing protos for *config.ChannelProtos
2018-02-01 03:20:01.603 UTC [common/config] initializeProtosStruct -> DEBU 02b Processing field: HashingAlgorithm
2018-02-01 03:20:01.603 UTC [common/config] initializeProtosStruct -> DEBU 02c Processing field: BlockDataHashingStructure
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 02d Processing field: OrdererAddresses
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 02e Processing field: Consortium
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 02f Proposed new policy Readers for Channel
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 030 Proposed new policy Writers for Channel
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 031 Proposed new policy Admins for Channel
2018-02-01 03:20:01.604 UTC [common/config] NewStandardValues -> DEBU 032 Initializing protos for *config.OrdererProtos
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 033 Processing field: ConsensusType
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 034 Processing field: BatchSize
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 035 Processing field: BatchTimeout
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 036 Processing field: KafkaBrokers
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 037 Processing field: ChannelRestrictions
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 038 Proposed new policy Writers for Orderer
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 039 Proposed new policy Admins for Orderer
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 03a Proposed new policy BlockValidation for Orderer
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 03b Proposed new policy Readers for Orderer
2018-02-01 03:20:01.604 UTC [common/config] NewStandardValues -> DEBU 03c Initializing protos for *config.OrganizationProtos
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 03d Processing field: MSP
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 03e Proposed new policy Admins for SampleOrg
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 03f Proposed new policy Readers for SampleOrg
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 040 Proposed new policy Writers for SampleOrg
2018-02-01 03:20:01.605 UTC [common/config] NewStandardValues -> DEBU 041 Initializing protos for *struct {}
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 042 Proposed new policy Readers for Application
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 043 Proposed new policy Admins for Application
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 044 Proposed new policy Writers for Application
2018-02-01 03:20:01.605 UTC [common/config] NewStandardValues -> DEBU 045 Initializing protos for *config.OrganizationProtos
2018-02-01 03:20:01.605 UTC [common/config] initializeProtosStruct -> DEBU 046 Processing field: MSP
2018-02-01 03:20:01.605 UTC [common/config] NewStandardValues -> DEBU 047 Initializing protos for *config.ApplicationOrgProtos
2018-02-01 03:20:01.605 UTC [common/config] initializeProtosStruct -> DEBU 048 Processing field: AnchorPeers
2018-02-01 03:20:01.605 UTC [common/config] NewStandardValues -> DEBU 049 Initializing protos for *config.OrganizationProtos
2018-02-01 03:20:01.605 UTC [common/config] initializeProtosStruct -> DEBU 04a Processing field: MSP
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 04b Proposed new policy Writers for SampleOrg
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 04c Proposed new policy Admins for SampleOrg
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 04d Proposed new policy Readers for SampleOrg
2018-02-01 03:20:01.605 UTC [common/config] validateMSP -> DEBU 04e Setting up MSP for org SampleOrg
2018-02-01 03:20:01.605 UTC [msp] NewBccspMsp -> DEBU 04f Creating BCCSP-based MSP instance
2018-02-01 03:20:01.605 UTC [msp] Setup -> DEBU 050 Setting up MSP instance DEFAULT
2018-02-01 03:20:01.606 UTC [msp/identity] newIdentity -> DEBU 051 Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICYjCCAgmgAwIBAgIUB3CTDOU47sUC5K4kn/Caqnh114YwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMDEyMTkzMTAw
WhcNMjExMDExMTkzMTAwWjB/MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEfMB0GA1UEChMWSW50ZXJuZXQg
V2lkZ2V0cywgSW5jLjEMMAoGA1UECxMDV1dXMRQwEgYDVQQDEwtleGFtcGxlLmNv
bTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKIH5b2JaSmqiQXHyqC+cmknICcF
i5AddVjsQizDV6uZ4v6s+PWiJyzfA/rTtMvYAPq/yeEHpBUB1j053mxnpMujYzBh
MA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBQXZ0I9
qp6CP8TFHZ9bw5nRtZxIEDAfBgNVHSMEGDAWgBQXZ0I9qp6CP8TFHZ9bw5nRtZxI
EDAKBggqhkjOPQQDAgNHADBEAiAHp5Rbp9Em1G/UmKn8WsCbqDfWecVbZPQj3RK4
oG5kQQIgQAe4OOKYhJdh3f7URaKfGTf492/nmRmtK+ySKjpHSrU=
-----END CERTIFICATE-----
2018-02-01 03:20:01.607 UTC [msp/identity] newIdentity -> DEBU 052 Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw
FAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC
dcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:20:01.609 UTC [msp/identity] newIdentity -> DEBU 053 Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw
FAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC
dcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:20:01.611 UTC [msp] Validate -> DEBU 054 MSP DEFAULT validating identity
2018-02-01 03:20:01.612 UTC [msp] getCertificationChain -> DEBU 055 MSP DEFAULT getting certification chain
2018-02-01 03:20:01.612 UTC [common/config] Validate -> DEBU 056 Anchor peers for org SampleOrg are
2018-02-01 03:20:01.612 UTC [common/config] validateMSP -> DEBU 057 Setting up MSP for org SampleOrg
2018-02-01 03:20:01.613 UTC [msp] NewBccspMsp -> DEBU 058 Creating BCCSP-based MSP instance
2018-02-01 03:20:01.613 UTC [msp] Setup -> DEBU 059 Setting up MSP instance DEFAULT
2018-02-01 03:20:01.613 UTC [msp/identity] newIdentity -> DEBU 05a Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICYjCCAgmgAwIBAgIUB3CTDOU47sUC5K4kn/Caqnh114YwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMDEyMTkzMTAw
WhcNMjExMDExMTkzMTAwWjB/MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEfMB0GA1UEChMWSW50ZXJuZXQg
V2lkZ2V0cywgSW5jLjEMMAoGA1UECxMDV1dXMRQwEgYDVQQDEwtleGFtcGxlLmNv
bTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKIH5b2JaSmqiQXHyqC+cmknICcF
i5AddVjsQizDV6uZ4v6s+PWiJyzfA/rTtMvYAPq/yeEHpBUB1j053mxnpMujYzBh
MA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBQXZ0I9
qp6CP8TFHZ9bw5nRtZxIEDAfBgNVHSMEGDAWgBQXZ0I9qp6CP8TFHZ9bw5nRtZxI
EDAKBggqhkjOPQQDAgNHADBEAiAHp5Rbp9Em1G/UmKn8WsCbqDfWecVbZPQj3RK4
oG5kQQIgQAe4OOKYhJdh3f7URaKfGTf492/nmRmtK+ySKjpHSrU=
-----END CERTIFICATE-----
2018-02-01 03:20:01.614 UTC [msp/identity] newIdentity -> DEBU 05b Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw
FAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC
dcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:20:01.616 UTC [msp/identity] newIdentity -> DEBU 05c Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw
FAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC
dcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:20:01.618 UTC [msp] Validate -> DEBU 05d MSP DEFAULT validating identity
2018-02-01 03:20:01.619 UTC [msp] getCertificationChain -> DEBU 05e MSP DEFAULT getting certification chain
2018-02-01 03:20:01.621 UTC [msp] Setup -> DEBU 05f Setting up the MSP manager (1 msps)
2018-02-01 03:20:01.621 UTC [msp] Setup -> DEBU 060 MSP manager setup complete, setup 1 msps
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 061 Returning policy Admins for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 062 In commit adding relative sub-policy SampleOrg/Admins to Orderer
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 063 Returning policy Readers for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 064 In commit adding relative sub-policy SampleOrg/Readers to Orderer
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 065 Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 066 In commit adding relative sub-policy SampleOrg/Writers to Orderer
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 067 Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 068 Returning policy Admins for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 069 Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 06a Returning policy Readers for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 06b Returning policy Readers for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 06c In commit adding relative sub-policy SampleOrg/Readers to Application
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 06d Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 06e In commit adding relative sub-policy SampleOrg/Writers to Application
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 06f Returning policy Admins for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 070 In commit adding relative sub-policy SampleOrg/Admins to Application
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 071 Returning policy Readers for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 072 Returning policy Admins for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 073 Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 074 Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 075 In commit adding relative sub-policy Orderer/Writers to Channel
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 076 Returning policy Admins for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 077 In commit adding relative sub-policy Orderer/Admins to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 078 Returning policy BlockValidation for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 079 In commit adding relative sub-policy Orderer/BlockValidation to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 07a Returning policy Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 07b In commit adding relative sub-policy Orderer/Readers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 07c Returning policy SampleOrg/Admins for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 07d In commit adding relative sub-policy Orderer/SampleOrg/Admins to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 07e Returning policy SampleOrg/Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 07f In commit adding relative sub-policy Orderer/SampleOrg/Readers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 080 Returning policy SampleOrg/Writers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 081 In commit adding relative sub-policy Orderer/SampleOrg/Writers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 082 Returning policy SampleOrg/Writers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 083 In commit adding relative sub-policy Application/SampleOrg/Writers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 084 Returning policy SampleOrg/Admins for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 085 In commit adding relative sub-policy Application/SampleOrg/Admins to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 086 Returning policy Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 087 In commit adding relative sub-policy Application/Readers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 088 Returning policy Admins for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 089 In commit adding relative sub-policy Application/Admins to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 08a Returning policy Writers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 08b In commit adding relative sub-policy Application/Writers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 08c Returning policy SampleOrg/Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 08d In commit adding relative sub-policy Application/SampleOrg/Readers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 08e Returning policy Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 08f Returning policy Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 090 Returning policy Writers for evaluation
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 091 Returning policy Writers for evaluation
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 092 Returning policy Admins for evaluation
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 093 Returning policy Admins for evaluation
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 094 Returning policy Readers for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 095 As expected, current configuration has policy '/Channel/Readers'
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 096 Returning policy Writers for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 097 As expected, current configuration has policy '/Channel/Writers'
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 098 Returning policy Application/Readers for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 099 As expected, current configuration has policy '/Channel/Application/Readers'
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 09a Returning policy Application/Writers for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 09b As expected, current configuration has policy '/Channel/Application/Writers'
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 09c Returning policy Application/Admins for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 09d As expected, current configuration has policy '/Channel/Application/Admins'
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 09e Returning policy Orderer/BlockValidation for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 09f As expected, current configuration has policy '/Channel/Orderer/BlockValidation'
2018-02-01 03:20:01.623 UTC [chaincodeCmd] InitCmdFactory -> INFO 0a0 Get chain(myc) orderer endpoint: orderer:7050
2018-02-01 03:20:01.625 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0a1 Using default escc
2018-02-01 03:20:01.625 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0a2 Using default vscc
2018-02-01 03:20:01.626 UTC [msp/identity] Sign -> DEBU 0a3 Sign: plaintext: 0AA9080A6108031A0C08E18ECAD30510...30300A000A04657363630A0476736363
2018-02-01 03:20:01.626 UTC [msp/identity] Sign -> DEBU 0a4 Sign: digest: 631AD562E688C45CCFB88099B96E0BD3E481B4C51F5C473ABF9FBD6C0376477D
2018-02-01 03:20:01.648 UTC [msp/identity] Sign -> DEBU 0a5 Sign: plaintext: 0AA9080A6108031A0C08E18ECAD30510...E073AD725B399CA5C3BC5A869431BB90
2018-02-01 03:20:01.648 UTC [msp/identity] Sign -> DEBU 0a6 Sign: digest: B1CCB006324E5A370C61EC3759D2BA47051D761327806CAC8DE596AB815753FE
2018-02-01 03:20:01.653 UTC [main] main -> INFO 0a7 Exiting.....

此时在terminal2中可以看到init的日志

2018-02-01 03:05:43.164 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO
2018-02-01 03:05:43.164 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...
ex02 Init
Aval = 100, Bval = 200

Invoke chaincode

/opt/gopath/src# peer chaincode invoke -n mycc -c '{"Args":["invoke","a","b","10"]}' -C myc

输出

2018-02-01 03:22:49.677 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-02-01 03:22:49.677 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-02-01 03:22:49.679 UTC [msp/identity] Sign -> DEBU 003 Sign: plaintext: 0AA4080A5C08011A0C088990CAD30510...436F6E666967426C6F636B0A036D7963
2018-02-01 03:22:49.679 UTC [msp/identity] Sign -> DEBU 004 Sign: digest: D3BD30E93E58891EB8CF0C1FC6E1EB335E8A42276632C950657585A71A83896E
2018-02-01 03:22:49.688 UTC [common/config] NewStandardValues -> DEBU 005 Initializing protos for *config.ChannelProtos
2018-02-01 03:22:49.688 UTC [common/config] initializeProtosStruct -> DEBU 006 Processing field: HashingAlgorithm
2018-02-01 03:22:49.688 UTC [common/config] initializeProtosStruct -> DEBU 007 Processing field: BlockDataHashingStructure
2018-02-01 03:22:49.688 UTC [common/config] initializeProtosStruct -> DEBU 008 Processing field: OrdererAddresses
2018-02-01 03:22:49.688 UTC [common/config] initializeProtosStruct -> DEBU 009 Processing field: Consortium
2018-02-01 03:22:49.689 UTC [common/configtx] addToMap -> DEBU 00a Adding to config map: [Groups] /Channel
2018-02-01 03:22:49.690 UTC [common/configtx] addToMap -> DEBU 00b Adding to config map: [Groups] /Channel/Orderer
2018-02-01 03:22:49.691 UTC [common/configtx] addToMap -> DEBU 00c Adding to config map: [Groups] /Channel/Orderer/SampleOrg
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 00d Adding to config map: [Values] /Channel/Orderer/SampleOrg/MSP
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 00e Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Admins
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 00f Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Readers
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 010 Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Writers
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 011 Adding to config map: [Values] /Channel/Orderer/BatchSize
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 012 Adding to config map: [Values] /Channel/Orderer/BatchTimeout
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 013 Adding to config map: [Values] /Channel/Orderer/ChannelRestrictions
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 014 Adding to config map: [Values] /Channel/Orderer/ConsensusType
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 015 Adding to config map: [Policy] /Channel/Orderer/Writers
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 016 Adding to config map: [Policy] /Channel/Orderer/Admins
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 017 Adding to config map: [Policy] /Channel/Orderer/BlockValidation
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 018 Adding to config map: [Policy] /Channel/Orderer/Readers
2018-02-01 03:22:49.694 UTC [common/configtx] addToMap -> DEBU 019 Adding to config map: [Groups] /Channel/Application
2018-02-01 03:22:49.694 UTC [common/configtx] addToMap -> DEBU 01a Adding to config map: [Groups] /Channel/Application/SampleOrg
2018-02-01 03:22:49.694 UTC [common/configtx] addToMap -> DEBU 01b Adding to config map: [Values] /Channel/Application/SampleOrg/MSP
2018-02-01 03:22:49.694 UTC [common/configtx] addToMap -> DEBU 01c Adding to config map: [Policy] /Channel/Application/SampleOrg/Writers
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 01d Adding to config map: [Policy] /Channel/Application/SampleOrg/Admins
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 01e Adding to config map: [Policy] /Channel/Application/SampleOrg/Readers
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 01f Adding to config map: [Policy] /Channel/Application/Readers
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 020 Adding to config map: [Policy] /Channel/Application/Admins
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 021 Adding to config map: [Policy] /Channel/Application/Writers
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 022 Adding to config map: [Values] /Channel/BlockDataHashingStructure
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 023 Adding to config map: [Values] /Channel/OrdererAddresses
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 024 Adding to config map: [Values] /Channel/HashingAlgorithm
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 025 Adding to config map: [Values] /Channel/Consortium
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 026 Adding to config map: [Policy] /Channel/Readers
2018-02-01 03:22:49.696 UTC [common/configtx] addToMap -> DEBU 027 Adding to config map: [Policy] /Channel/Writers
2018-02-01 03:22:49.696 UTC [common/configtx] addToMap -> DEBU 028 Adding to config map: [Policy] /Channel/Admins
2018-02-01 03:22:49.696 UTC [common/configtx] processConfig -> DEBU 029 Beginning new config for channel myc
2018-02-01 03:22:49.696 UTC [common/config] NewStandardValues -> DEBU 02a Initializing protos for *config.ChannelProtos
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 02b Processing field: HashingAlgorithm
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 02c Processing field: BlockDataHashingStructure
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 02d Processing field: OrdererAddresses
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 02e Processing field: Consortium
2018-02-01 03:22:49.696 UTC [policies] ProposePolicy -> DEBU 02f Proposed new policy Writers for Channel
2018-02-01 03:22:49.696 UTC [policies] ProposePolicy -> DEBU 030 Proposed new policy Admins for Channel
2018-02-01 03:22:49.696 UTC [policies] ProposePolicy -> DEBU 031 Proposed new policy Readers for Channel
2018-02-01 03:22:49.696 UTC [common/config] NewStandardValues -> DEBU 032 Initializing protos for *config.OrdererProtos
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 033 Processing field: ConsensusType
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 034 Processing field: BatchSize
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 035 Processing field: BatchTimeout
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 036 Processing field: KafkaBrokers
2018-02-01 03:22:49.697 UTC [common/config] initializeProtosStruct -> DEBU 037 Processing field: ChannelRestrictions
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 038 Proposed new policy Writers for Orderer
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 039 Proposed new policy Admins for Orderer
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 03a Proposed new policy BlockValidation for Orderer
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 03b Proposed new policy Readers for Orderer
2018-02-01 03:22:49.697 UTC [common/config] NewStandardValues -> DEBU 03c Initializing protos for *config.OrganizationProtos
2018-02-01 03:22:49.697 UTC [common/config] initializeProtosStruct -> DEBU 03d Processing field: MSP
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 03e Proposed new policy Admins for SampleOrg
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 03f Proposed new policy Readers for SampleOrg
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 040 Proposed new policy Writers for SampleOrg
2018-02-01 03:22:49.697 UTC [common/config] NewStandardValues -> DEBU 041 Initializing protos for *struct {}
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 042 Proposed new policy Readers for Application
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 043 Proposed new policy Admins for Application
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 044 Proposed new policy Writers for Application
2018-02-01 03:22:49.697 UTC [common/config] NewStandardValues -> DEBU 045 Initializing protos for *config.OrganizationProtos
2018-02-01 03:22:49.697 UTC [common/config] initializeProtosStruct -> DEBU 046 Processing field: MSP
2018-02-01 03:22:49.697 UTC [common/config] NewStandardValues -> DEBU 047 Initializing protos for *config.ApplicationOrgProtos
2018-02-01 03:22:49.697 UTC [common/config] initializeProtosStruct -> DEBU 048 Processing field: AnchorPeers
2018-02-01 03:22:49.697 UTC [common/config] NewStandardValues -> DEBU 049 Initializing protos for *config.OrganizationProtos
2018-02-01 03:22:49.697 UTC [common/config] initializeProtosStruct -> DEBU 04a Processing field: MSP
2018-02-01 03:22:49.698 UTC [policies] ProposePolicy -> DEBU 04b Proposed new policy Writers for SampleOrg
2018-02-01 03:22:49.698 UTC [policies] ProposePolicy -> DEBU 04c Proposed new policy Admins for SampleOrg
2018-02-01 03:22:49.698 UTC [policies] ProposePolicy -> DEBU 04d Proposed new policy Readers for SampleOrg
2018-02-01 03:22:49.698 UTC [common/config] validateMSP -> DEBU 04e Setting up MSP for org SampleOrg
2018-02-01 03:22:49.698 UTC [msp] NewBccspMsp -> DEBU 04f Creating BCCSP-based MSP instance
2018-02-01 03:22:49.698 UTC [msp] Setup -> DEBU 050 Setting up MSP instance DEFAULT
2018-02-01 03:22:49.699 UTC [msp/identity] newIdentity -> DEBU 051 Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICYjCCAgmgAwIBAgIUB3CTDOU47sUC5K4kn/Caqnh114YwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMDEyMTkzMTAw
WhcNMjExMDExMTkzMTAwWjB/MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEfMB0GA1UEChMWSW50ZXJuZXQg
V2lkZ2V0cywgSW5jLjEMMAoGA1UECxMDV1dXMRQwEgYDVQQDEwtleGFtcGxlLmNv
bTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKIH5b2JaSmqiQXHyqC+cmknICcF
i5AddVjsQizDV6uZ4v6s+PWiJyzfA/rTtMvYAPq/yeEHpBUB1j053mxnpMujYzBh
MA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBQXZ0I9
qp6CP8TFHZ9bw5nRtZxIEDAfBgNVHSMEGDAWgBQXZ0I9qp6CP8TFHZ9bw5nRtZxI
EDAKBggqhkjOPQQDAgNHADBEAiAHp5Rbp9Em1G/UmKn8WsCbqDfWecVbZPQj3RK4
oG5kQQIgQAe4OOKYhJdh3f7URaKfGTf492/nmRmtK+ySKjpHSrU=
-----END CERTIFICATE-----
2018-02-01 03:22:49.700 UTC [msp/identity] newIdentity -> DEBU 052 Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw
FAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC
dcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:22:49.701 UTC [msp/identity] newIdentity -> DEBU 053 Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw
FAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC
dcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:22:49.704 UTC [msp] Validate -> DEBU 054 MSP DEFAULT validating identity
2018-02-01 03:22:49.705 UTC [msp] getCertificationChain -> DEBU 055 MSP DEFAULT getting certification chain
2018-02-01 03:22:49.705 UTC [common/config] Validate -> DEBU 056 Anchor peers for org SampleOrg are
2018-02-01 03:22:49.705 UTC [common/config] validateMSP -> DEBU 057 Setting up MSP for org SampleOrg
2018-02-01 03:22:49.705 UTC [msp] NewBccspMsp -> DEBU 058 Creating BCCSP-based MSP instance
2018-02-01 03:22:49.705 UTC [msp] Setup -> DEBU 059 Setting up MSP instance DEFAULT
2018-02-01 03:22:49.706 UTC [msp/identity] newIdentity -> DEBU 05a Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICYjCCAgmgAwIBAgIUB3CTDOU47sUC5K4kn/Caqnh114YwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMDEyMTkzMTAw
WhcNMjExMDExMTkzMTAwWjB/MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEfMB0GA1UEChMWSW50ZXJuZXQg
V2lkZ2V0cywgSW5jLjEMMAoGA1UECxMDV1dXMRQwEgYDVQQDEwtleGFtcGxlLmNv
bTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKIH5b2JaSmqiQXHyqC+cmknICcF
i5AddVjsQizDV6uZ4v6s+PWiJyzfA/rTtMvYAPq/yeEHpBUB1j053mxnpMujYzBh
MA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBQXZ0I9
qp6CP8TFHZ9bw5nRtZxIEDAfBgNVHSMEGDAWgBQXZ0I9qp6CP8TFHZ9bw5nRtZxI
EDAKBggqhkjOPQQDAgNHADBEAiAHp5Rbp9Em1G/UmKn8WsCbqDfWecVbZPQj3RK4
oG5kQQIgQAe4OOKYhJdh3f7URaKfGTf492/nmRmtK+ySKjpHSrU=
-----END CERTIFICATE-----
2018-02-01 03:22:49.707 UTC [msp/identity] newIdentity -> DEBU 05b Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw
FAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC
dcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:22:49.708 UTC [msp/identity] newIdentity -> DEBU 05c Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw
FAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC
dcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:22:49.711 UTC [msp] Validate -> DEBU 05d MSP DEFAULT validating identity
2018-02-01 03:22:49.712 UTC [msp] getCertificationChain -> DEBU 05e MSP DEFAULT getting certification chain
2018-02-01 03:22:49.713 UTC [msp] Setup -> DEBU 05f Setting up the MSP manager (1 msps)
2018-02-01 03:22:49.713 UTC [msp] Setup -> DEBU 060 MSP manager setup complete, setup 1 msps
2018-02-01 03:22:49.713 UTC [policies] GetPolicy -> DEBU 061 Returning policy Admins for evaluation
2018-02-01 03:22:49.713 UTC [policies] CommitProposals -> DEBU 062 In commit adding relative sub-policy SampleOrg/Admins to Orderer
2018-02-01 03:22:49.713 UTC [policies] GetPolicy -> DEBU 063 Returning policy Readers for evaluation
2018-02-01 03:22:49.713 UTC [policies] CommitProposals -> DEBU 064 In commit adding relative sub-policy SampleOrg/Readers to Orderer
2018-02-01 03:22:49.713 UTC [policies] GetPolicy -> DEBU 065 Returning policy Writers for evaluation
2018-02-01 03:22:49.713 UTC [policies] CommitProposals -> DEBU 066 In commit adding relative sub-policy SampleOrg/Writers to Orderer
2018-02-01 03:22:49.713 UTC [policies] GetPolicy -> DEBU 067 Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 068 Returning policy Admins for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 069 Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 06a Returning policy Readers for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 06b Returning policy Readers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 06c In commit adding relative sub-policy SampleOrg/Readers to Application
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 06d Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 06e In commit adding relative sub-policy SampleOrg/Writers to Application
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 06f Returning policy Admins for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 070 In commit adding relative sub-policy SampleOrg/Admins to Application
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 071 Returning policy Readers for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 072 Returning policy Admins for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 073 Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 074 Returning policy SampleOrg/Admins for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 075 In commit adding relative sub-policy Orderer/SampleOrg/Admins to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 076 Returning policy SampleOrg/Readers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 077 In commit adding relative sub-policy Orderer/SampleOrg/Readers to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 078 Returning policy SampleOrg/Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 079 In commit adding relative sub-policy Orderer/SampleOrg/Writers to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 07a Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 07b In commit adding relative sub-policy Orderer/Writers to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 07c Returning policy Admins for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 07d In commit adding relative sub-policy Orderer/Admins to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 07e Returning policy BlockValidation for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 07f In commit adding relative sub-policy Orderer/BlockValidation to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 080 Returning policy Readers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 081 In commit adding relative sub-policy Orderer/Readers to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 082 Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 083 In commit adding relative sub-policy Application/Writers to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 084 Returning policy SampleOrg/Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 085 In commit adding relative sub-policy Application/SampleOrg/Readers to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 086 Returning policy SampleOrg/Writers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 087 In commit adding relative sub-policy Application/SampleOrg/Writers to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 088 Returning policy SampleOrg/Admins for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 089 In commit adding relative sub-policy Application/SampleOrg/Admins to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 08a Returning policy Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 08b In commit adding relative sub-policy Application/Readers to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 08c Returning policy Admins for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 08d In commit adding relative sub-policy Application/Admins to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 08e Returning policy Writers for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 08f Returning policy Writers for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 090 Returning policy Admins for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 091 Returning policy Admins for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 092 Returning policy Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 093 Returning policy Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 094 Returning policy Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 095 As expected, current configuration has policy '/Channel/Readers'
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 096 Returning policy Writers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 097 As expected, current configuration has policy '/Channel/Writers'
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 098 Returning policy Application/Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 099 As expected, current configuration has policy '/Channel/Application/Readers'
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 09a Returning policy Application/Writers for evaluation
2018-02-01 03:22:49.716 UTC [policies] CommitProposals -> DEBU 09b As expected, current configuration has policy '/Channel/Application/Writers'
2018-02-01 03:22:49.716 UTC [policies] GetPolicy -> DEBU 09c Returning policy Application/Admins for evaluation
2018-02-01 03:22:49.716 UTC [policies] CommitProposals -> DEBU 09d As expected, current configuration has policy '/Channel/Application/Admins'
2018-02-01 03:22:49.716 UTC [policies] GetPolicy -> DEBU 09e Returning policy Orderer/BlockValidation for evaluation
2018-02-01 03:22:49.716 UTC [policies] CommitProposals -> DEBU 09f As expected, current configuration has policy '/Channel/Orderer/BlockValidation'
2018-02-01 03:22:49.716 UTC [chaincodeCmd] InitCmdFactory -> INFO 0a0 Get chain(myc) orderer endpoint: orderer:7050
2018-02-01 03:22:49.718 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0a1 Using default escc
2018-02-01 03:22:49.718 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0a2 Using default vscc
2018-02-01 03:22:49.718 UTC [msp/identity] Sign -> DEBU 0a3 Sign: plaintext: 0AA9080A6108031A0C088990CAD30510...696E766F6B650A01610A01620A023130
2018-02-01 03:22:49.718 UTC [msp/identity] Sign -> DEBU 0a4 Sign: digest: F594837E77AAFBBACBF367342C153BB18BEDB9052C7BC7D1A1A4FD33F23412A0
2018-02-01 03:22:49.741 UTC [msp/identity] Sign -> DEBU 0a5 Sign: plaintext: 0AA9080A6108031A0C088990CAD30510...5E9C4F77C0F68E50B2C8F3758E8064C9
2018-02-01 03:22:49.741 UTC [msp/identity] Sign -> DEBU 0a6 Sign: digest: F9296E43598396DCF46441962645A0DFE239EB092000AB902B36817FB286573C
2018-02-01 03:22:49.746 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 0a7 ESCC invoke result: version:1 response:<status:200 message:"OK" > payload:"\n \036\374\304^\324\300\215\271c\362\303}\267\357xZ\217\361r\212\306\007z\376r\031\267\330\227X\3145\022W\nE\022\024\n\004lscc\022\014\n\n\n\004mycc\022\002\010\001\022-\n\004mycc\022%\n\007\n\001a\022\002\010\001\n\007\n\001b\022\002\010\001\032\007\n\001a\032\00290\032\010\n\001b\032\003210\032\003\010\310\001\"\t\022\004mycc\032\0010" endorsement:<endorser:"\n\007DEFAULT\022\232\007-----BEGIN -----\nMIICizCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw\nfzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh\nbiBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK\nBgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw\nWhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg\nQ2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy\nIEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE\nHBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ\n+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw\nFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC\ndcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1\nnEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG\nSM49BAMCA0cAMEQCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiAk\naXzB/jnlU39B7Wws9BIr9c8mSOEPF6VY1uGP+dKV0g==\n-----END -----\n" signature:"0D\002 T)!\215\343g\217\365\247\204b\272\340\305\333\006[\230<\250\36690M\202\364\346\002\362\241\201<\002 s{\004\227C\266\002\241w%_\247}P\032I^\234Ow\300\366\216P\262\310\363u\216\200d\311" >
2018-02-01 03:22:49.746 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 0a8 Chaincode invoke successful. result: status:200
2018-02-01 03:22:49.747 UTC [main] main -> INFO 0a9 Exiting.....

terminal2中看日志

ex02 Invoke
Aval = 90, Bval = 210

查询a的值

query -n mycc -c '{"Args":["query","a"]}' -C myc
2018-02-01 03:25:15.098 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-02-01 03:25:15.098 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-02-01 03:25:15.098 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-02-01 03:25:15.098 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-02-01 03:25:15.100 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0AA8080A6008031A0B089B91CAD30510...6D7963631A0A0A0571756572790A0161
2018-02-01 03:25:15.100 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 91ED1044B26DD53E8F17B8452221392981045C01A4F262AB19980965FB5B5481
Query Result: 90
2018-02-01 03:25:15.122 UTC [main] main -> INFO 007 Exiting.....

terminal2看日志

ex02 Invoke
Query Response:{"Name":"a","Amount":"90"}

此模式可以让我们专注的写chaincode的逻辑 init,invoke,query等等,随时看到结果


mumubin
375 声望185 粉丝