Brother Lian Blockchain technical Training Fabric 1.0 Source Code Analysis (1.0.4) fabric Go Code Volume statistics

Source: Internet
Author: User
Tags couchdb

Brother Lian Blockchain technical training Fabric 1.0 Source Code Analysis (48) Fabric 1.0.4 Go Code volume statistics

# Fabric 1.0 Source Code Note Fabric 1.0.4 go Code volume statistics

# 1, overview

In addition to test, vendor, mocks, example, Protos, go core code file 341, the core line of code 63433 lines.


"' Bash

Find./|grep-ve ' Test|vendor|mocks|example|protos ' | grep ' \.go$ ' | Wc-l

341

Wc-l ' Find/|grep-ve ' Test|vendor|mocks|example|protos ' | grep ' \.go$ '

63433 Total

```


# 2, Code distribution


Directory

Code Amount

Code volume ratio

Bccsp

5605

8.84%

Common

12998

20.49%

Core

22613

35.65%

Events

1069

1.69%

Gossip

9389

14.8%

Msp

2425

3.82%

Orderer

5199

8.2%

Peer

4135

6.52%


# 3, details


"' Bash

/bccsp/aesopts.go.

144./bccsp/bccsp.go

/bccsp/ecdsaopts.go.

/bccsp/factory/factory.go.

/bccsp/factory/nopkcs11.go.

/bccsp/factory/opts.go.

106./bccsp/factory/pkcs11.go

/bccsp/factory/pkcs11factory.go.

/bccsp/factory/swfactory.go.

/bccsp/hashopts.go.

/bccsp/keystore.go.

326./bccsp/opts.go

108./bccsp/pkcs11/conf.go

/bccsp/pkcs11/ecdsa.go.

/bccsp/pkcs11/ecdsakey.go.

535./bccsp/pkcs11/impl.go

617./bccsp/pkcs11/pkcs11.go

Bayi./bccsp/rsaopts.go

/bccsp/signer/signer.go.

161./bccsp/sw/aes.go

/bccsp/sw/aeskey.go.

Bayi./bccsp/sw/conf.go

/bccsp/sw/dummyks.go.

171./bccsp/sw/ecdsa.go

/bccsp/sw/ecdsakey.go.

431./bccsp/sw/fileks.go

Panax/bccsp/sw/hash.go.

393./bccsp/sw/impl.go

94./bccsp/sw/internals.go

157./bccsp/sw/keyderiv.go

/bccsp/sw/keygen.go.

162./bccsp/sw/keyimport.go

/bccsp/sw/rsa.go.

136./bccsp/sw/rsakey.go

/bccsp/utils/errs.go.

/bccsp/utils/io.go.

459./bccsp/utils/keys.go

/bccsp/utils/slice.go.

/bccsp/utils/x509.go.

119./common/cauthdsl/cauthdsl.go

174./common/cauthdsl/cauthdsl_builder.go

/common/cauthdsl/policy.go.

/common/cauthdsl/policy_util.go.

279./common/cauthdsl/policyparser.go

/common/config/api.go.

/common/config/application.go.

/common/config/application_util.go.

94./common/config/applicationorg.go

241./common/config/channel.go

/common/config/channel_util.go.

/common/config/consortium.go.

/common/config/consortiums.go.

/common/config/consortiums_util.go.

/common/config/msp/config.go.

108./common/config/msp/config_util.go

247./common/config/orderer.go

/common/config/orderer_util.go.

129./common/config/organization.go

/common/config/proposer.go.

/common/config/root.go.

/common/config/standardvalues.go.

/common/configtx/api/api.go.

186./common/configtx/compare.go

282./common/configtx/config.go

168./common/configtx/configmap.go

155./common/configtx/initializer.go

305./common/configtx/manager.go

291./common/configtx/template.go

412./common/configtx/tool/configtxgen/main.go

/common/configtx/tool/configtxgen/metadata/metadata.go.

268./common/configtx/tool/localconfig/config.go

276./common/configtx/tool/provisional/provisional.go

208./common/configtx/update.go

/common/configtx/util.go.

/common/crypto/random.go.

/common/crypto/signer.go.

104./common/errors/codes.go

204./common/errors/errors.go

/common/flogging/grpclogger.go.

233./common/flogging/logging.go

/common/genesis/genesis.go.

/common/ledger/blkstorage/blockstorage.go.

218./common/ledger/blkstorage/fsblkstorage/block_serialization.go

209./common/ledger/blkstorage/fsblkstorage/block_stream.go

117./common/ledger/blkstorage/fsblkstorage/blockfile_helper.go

696./common/ledger/blkstorage/fsblkstorage/blockfile_mgr.go

94./common/ledger/blkstorage/fsblkstorage/blockfile_rw.go

381./common/ledger/blkstorage/fsblkstorage/blockindex.go

101./common/ledger/blkstorage/fsblkstorage/blocks_itr.go

/common/ledger/blkstorage/fsblkstorage/config.go.

/common/ledger/blkstorage/fsblkstorage/fs_blockstore.go.

/common/ledger/blkstorage/fsblkstorage/fs_blockstore_provider.go.

/common/ledger/ledger_interface.go.

/common/ledger/util/ioutil.go.

165./common/ledger/util/leveldbhelper/leveldb_helper.go

/common/ledger/util/leveldbhelper/leveldb_provider.go.

/common/ledger/util/protobuf_util.go.

/common/ledger/util/util.go.

/common/localmsp/signer.go.

/common/metadata/metadata.go.

/common/policies/implicitmeta.go.

/common/policies/implicitmeta_util.go.

376./common/policies/policy.go

/common/tools/configtxlator/main.go.

/common/tools/configtxlator/metadata/metadata.go.

/common/tools/configtxlator/rest/configtxlator_handlers.go.

109./common/tools/configtxlator/rest/protolator_handlers.go

/common/tools/configtxlator/rest/router.go.

147./common/tools/configtxlator/sanitycheck/sanitycheck.go

234./common/tools/configtxlator/update/update.go

175./common/tools/cryptogen/ca/generator.go

/common/tools/cryptogen/csp/csp.go.

568./common/tools/cryptogen/main.go

/common/tools/cryptogen/metadata/metadata.go.

224./common/tools/cryptogen/msp/generator.go

157./common/tools/protolator/api.go

149./common/tools/protolator/dynamic.go

445./common/tools/protolator/json.go

111./common/tools/protolator/nested.go

/common/tools/protolator/statically_opaque.go.

124./common/tools/protolator/variably_opaque.go

195./common/util/utils.go

327./common/viperutil/config_util.go

/core/admin.go.

122./core/chaincode/ccproviderimpl.go

759./core/chaincode/chaincode_support.go

/core/chaincode/chaincodeexec.go.

106./core/chaincode/exectransaction.go

1459./core/chaincode/handler.go

/core/chaincode/platforms/car/platform.go.

/core/chaincode/platforms/golang/env.go.

/core/chaincode/platforms/golang/list.go.

149./core/chaincode/platforms/golang/package.go

462./core/chaincode/platforms/golang/platform.go

/core/chaincode/platforms/java/hash.go.

/core/chaincode/platforms/java/package.go.

148./core/chaincode/platforms/java/platform.go

227./core/chaincode/platforms/platforms.go

247./core/chaincode/platforms/util/utils.go

882./core/chaincode/shim/chaincode.go

807./core/chaincode/shim/handler.go

/core/chaincode/shim/inprocstream.go.

235./core/chaincode/shim/interfaces.go

/core/chaincode/shim/response.go.

127./core/comm/config.go

215./core/comm/connection.go

/core/comm/creds.go.

101./core/comm/producer.go

364./core/comm/server.go

/core/committer/committer.go.

/core/committer/committer_impl.go.

673./core/committer/txvalidator/validator.go

245./core/common/ccpackage/ccpackage.go

/core/common/ccprovider/ccinfocache.go.

466./core/common/ccprovider/ccprovider.go

282./core/common/ccprovider/cdspackage.go

346./core/common/ccprovider/sigcdspackage.go

/core/common/sysccprovider/sysccprovider.go.

435./core/common/validation/msgvalidation.go

191./core/config/config.go

Panax/core/container/api/core.go.

/core/container/ccintf/ccintf.go.

266./core/container/controller.go

473./core/container/dockercontroller/dockercontroller.go

252./core/container/inproccontroller/inproccontroller.go

/core/container/inproccontroller/inprocstream.go.

/core/container/util/dockerutil.go.

171./core/container/util/writer.go

101./core/container/vm.go

/core/deliverservice/blocksprovider/blocksprovider.go.

246./core/deliverservice/client.go

231./core/deliverservice/deliveryclient.go

/core/deliverservice/requester.go.

537./core/endorser/endorser.go

/core/fsm.go.

/core/ledger/kvledger/history/historydb/histmgr_helper.go.

/core/ledger/kvledger/history/historydb/historydb.go.

217./core/ledger/kvledger/history/historydb/historyleveldb/historyleveldb.go

155./core/ledger/kvledger/history/historydb/historyleveldb/historyleveldb_query_executer.go

247./core/ledger/kvledger/kv_ledger.go

341./core/ledger/kvledger/kv_ledger_provider.go

/core/ledger/kvledger/recovery.go.

268./core/ledger/kvledger/txmgmt/rwsetutil/query_results_helper.go

123./core/ledger/kvledger/txmgmt/rwsetutil/rwset_builder.go

103./core/ledger/kvledger/txmgmt/rwsetutil/rwset_proto_util.go

/core/ledger/kvledger/txmgmt/statedb/statecouchdb/query_wrapper.go.

492./core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go

229./core/ledger/kvledger/txmgmt/statedb/statedb.go

206./core/ledger/kvledger/txmgmt/statedb/stateleveldb/stateleveldb.go

/core/ledger/kvledger/txmgmt/statedb/util.go.

244./core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/helper.go

/core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/lockbased_query_executer.go.

/core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/lockbased_tx_simulator.go.

133./core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/lockbased_txmgr.go

/core/ledger/kvledger/txmgmt/txmgr/txmgr.go.

174./core/ledger/kvledger/txmgmt/validator/statebasedval/combined_iterator.go

157./core/ledger/kvledger/txmgmt/validator/statebasedval/range_query_validator.go

252./core/ledger/kvledger/txmgmt/validator/statebasedval/state_based_validator.go

/core/ledger/kvledger/txmgmt/validator/validator.go.

/core/ledger/kvledger/txmgmt/version/version.go.

127./core/ledger/ledger_interface.go

/core/ledger/ledgerconfig/ledger_config.go.

/core/ledger/ledgermgmt/ledger_mgmt.go.

/core/ledger/util/couchdb/config.go.

1426./core/ledger/util/couchdb/couchdb.go

169./core/ledger/util/couchdb/couchdbutil.go

/core/ledger/util/txvalidationflags.go.

/core/ledger/util/util.go.

/core/peer/config.go.

562./core/peer/peer.go

/core/policy/policy.go.

/core/policyprovider/provider.go.

235./core/scc/cscc/configure.go

179./core/scc/escc/endorser_onevalidsignature.go

144./core/scc/importsysccs.go

905./core/scc/lscc/lscc.go

218./core/scc/qscc/query.go

/core/scc/samplesyscc/samplesyscc.go.

/core/scc/sccproviderimpl.go.

178./core/scc/sysccapi.go

459./core/scc/vscc/validator_onevalidsignature.go

/events/consumer/adapter.go.

/events/consumer/consumer.go.

123./events/producer/eventhelper.go

345./events/producer/events.go

188./events/producer/handler.go

/events/producer/producer.go.

/events/producer/register_internal_events.go.

/gossip/api/channel.go.

/gossip/api/crypto.go.

/gossip/comm/comm.go.

642./gossip/comm/comm_impl.go

381./gossip/comm/conn.go

122./gossip/comm/crypto.go

/gossip/comm/demux.go.

195./gossip/comm/mock/mock_comm.go

/gossip/comm/msg.go.

/gossip/common/common.go.

/gossip/discovery/discovery.go.

1044./gossip/discovery/discovery_impl.go

171./gossip/election/adapter.go

487./gossip/election/election.go

/gossip/filter/filter.go.

344./gossip/gossip/algo/pull.go

148./gossip/gossip/batcher.go

156./gossip/gossip/certstore.go

733./gossip/gossip/channel/channel.go

168./gossip/gossip/chanstate.go

/gossip/gossip/gossip.go.

1257./gossip/gossip/gossip_impl.go

279./gossip/gossip/msgstore/msgs.go

378./gossip/gossip/pull/pullstore.go

214./gossip/identity/identity.go

94./gossip/integration/integration.go

/gossip/service/eventer.go.

322./gossip/service/gossip_service.go

/gossip/state/metastate.go.

144./gossip/state/payloads_buffer.go

689./gossip/state/state.go

/gossip/util/logging.go.

202./gossip/util/misc.go

/gossip/util/msgs.go.

133./gossip/util/pubsub.go

146./msp/cert.go

278./msp/configbuilder.go

218./msp/identities.go

/msp/mgmt/deserializer.go.

172./msp/mgmt/mgmt.go

/msp/mgmt/principal.go.

/msp/msp.go.

1172./msp/mspimpl.go

107./msp/mspmgrimpl.go

165./orderer/common/blockcutter/blockcutter.go

/orderer/common/bootstrap/bootstrap.go.

/orderer/common/bootstrap/file/bootstrap.go.

162./orderer/common/broadcast/broadcast.go

/orderer/common/configtxfilter/filter.go.

223./orderer/common/deliver/deliver.go

107./orderer/common/filter/filter.go

/orderer/common/sigfilter/sigfilter.go.

/orderer/common/sizefilter/sizefilter.go.

/orderer/configupdate/configupdate.go.

503./orderer/kafka/chain.go

/orderer/kafka/channel.go.

/orderer/kafka/config.go.

/orderer/kafka/consenter.go.

/orderer/kafka/partitioner.go.

/orderer/kafka/retry.go.

/orderer/ledger/file/factory.go.

111./orderer/ledger/file/impl.go

/orderer/ledger/json/factory.go.

177./orderer/ledger/json/impl.go

/orderer/ledger/ledger.go.

/orderer/ledger/ram/factory.go.

171./orderer/ledger/ram/impl.go

/orderer/ledger/util.go.

365./orderer/localconfig/config.go

221./orderer/main.go

/orderer/metadata/metadata.go.

296./orderer/multichain/chainsupport.go

319./orderer/multichain/manager.go

189./orderer/multichain/systemchain.go

126./orderer/sample_clients/broadcast_config/client.go

/orderer/sample_clients/broadcast_config/newchain.go.

/orderer/sample_clients/broadcast_timestamp/client.go.

144./orderer/sample_clients/deliver_stdout/client.go

166./orderer/sample_clients/single_tx_client/single_tx_client.go

94./orderer/server.go

/orderer/solo/consensus.go.

/orderer/util.go.

/peer/chaincode/chaincode.go.

348./peer/chaincode/common.go

/peer/chaincode/install.go.

129./peer/chaincode/instantiate.go

/peer/chaincode/invoke.go.

193./peer/chaincode/package.go

/peer/chaincode/query.go.

/peer/chaincode/signpackage.go.

/peer/chaincode/upgrade.go.

188./peer/channel/channel.go

214./peer/channel/create.go

/peer/channel/deliverclient.go.

/peer/channel/fetchconfig.go.

144./peer/channel/join.go

/peer/channel/list.go.

/peer/channel/update.go.

/peer/clilogging/common.go.

/peer/clilogging/getlevel.go.

/peer/clilogging/logging.go.

/peer/clilogging/revertlevels.go.

/peer/clilogging/setlevel.go.

/peer/common/common.go.

/peer/common/mockclient.go.

103./peer/common/ordererclient.go

319./peer/gossip/mcs.go

/peer/gossip/sa.go.

122./peer/main.go

/peer/node/node.go.

382./peer/node/start.go

/peer/node/status.go.

Wuyi/peer/version/version.go.

63433 Total

is technology growing too fast, or are we already out of the end? From July 7 onwards, two hours a day with the Tsinghua Microsoft Google Daniel team to combat the blockchain. HTTP://WWW.YDMA.CN/OPEN/COURSE/16 Come, Tsinghua Genius Yin Cheng Big Brother to fly you up ~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.