MCPcopy Create free account

hub / github.com/dddengyunjie/fabric / functions

Functions19,835 in github.com/dddengyunjie/fabric

↓ 35 callersMethodValidate
Validate returns nil if the action at the given position inside the transaction at the given position in the given block is valid, or an error if not.
core/handlers/validation/api/validation.go:29
↓ 35 callersMethodclose
()
common/ledger/blkstorage/fsblkstorage/block_stream.go:192
↓ 35 callersFunctioncreateGossipMsg
()
gossip/comm/comm_test.go:931
↓ 35 callersFunctionresetFlags
Explicitly define a method to facilitate tests
peer/channel/channel.go:72
↓ 34 callersMethodAppend
Append a new block to the ledger
common/ledger/blockledger/ledger.go:48
↓ 34 callersMethodApply
Apply applies the rule to the given Envelope, either successfully or returns error
orderer/common/msgprocessor/filter.go:21
↓ 34 callersMethodHandleTransaction
HandleTransaction is a middleware function that obtains and verifies a transaction context prior to forwarding the message to the provided delegate. R
core/chaincode/handler.go:247
↓ 34 callersMethodHash
Hash hashes messages msg using options opts. If opts is nil, the default hash function will be used.
bccsp/sw/internals.go:89
↓ 34 callersMethodPanic
(args ...interface{})
gossip/util/logging.go:46
↓ 34 callersMethodPeerAddress
PeerAddress returns the address (host and port) exposed by the Peer for the named port. Command line tools should use the returned address when connec
integration/nwo/network.go:1306
↓ 34 callersMethodPrepare
Prepare prepares the Store for commiting the pvt data and storing both eligible and ineligible missing private data --- `eligible` denotes that the mi
core/ledger/pvtdatastorage/store.go:58
↓ 34 callersMethodSaveDoc
SaveDoc method provides a function to save a document, id and byte array
core/ledger/util/couchdb/couchdb.go:552
↓ 34 callersMethodSharedConfig
SharedConfig provides the shared config from the channel's current config block.
orderer/consensus/consensus.go:89
↓ 34 callersFunctiongenerateMigrationBundle
(sysChan bool, cType string, cState ab.ConsensusType_MigrationState, cContext uint64)
common/channelconfig/bundle_test.go:506
↓ 34 callersMethodnewPuller
(id string, ps privdata.CollectionStore, factory CollectionAccessFactory, knownMembers ...discovery.NetworkMe
gossip/privdata/pull_test.go:287
↓ 34 callersFunctionproduceSamplePvtdata
(t *testing.T, txNum uint64, nsColls []string)
core/ledger/pvtdatastorage/store_impl_test.go:896
↓ 33 callersMethodBootstrap
Bootstrap generates the cryptographic material, orderer system channel genesis block, and create channel transactions needed to run a fabric network.
integration/nwo/network.go:556
↓ 33 callersMethodCertBytes
CertBytes returns the certificate of the CA in PEM encoding
common/crypto/tlsgen/ca.go:31
↓ 33 callersMethodGenerateConfigTree
GenerateConfigTree generates the configuration documents required to bootstrap a fabric network. A configuration file will be generated for cryptogen,
integration/nwo/network.go:530
↓ 33 callersMethodOrdererRunner
OrdererRunner returns an ifrit.Runner for the specified orderer. The runner can be used to start and manage an orderer process.
integration/nwo/network.go:940
↓ 33 callersMethodSend
Send sends a message to remote peers
gossip/comm/comm.go:27
↓ 33 callersMethodaddExpectPullAssert
(seq uint64)
orderer/common/cluster/deliver_test.go:254
↓ 33 callersMethodaddPrincipal
(principal *msp.MSPPrincipal)
discovery/endorsement/endorsement_test.go:711
↓ 33 callersMethodprocessMessagesToBlocks
processMessagesToBlocks drains the Kafka consumer for the given channel, and takes care of converting the stream of ordered messages into blocks for t
orderer/consensus/kafka/chain.go:377
↓ 32 callersMethodAccept
Accept returns a dedicated read-only channel for messages sent by other nodes that match a certain predicate. Each message from the channel can be use
gossip/comm/comm.go:42
↓ 32 callersFunctionBigToBytes
BigToBytes takes an *amcl.BIG and returns a []byte representation
idemix/util.go:95
↓ 32 callersMethodReadDir
(string)
core/chaincode/persistence/persistence.go:29
↓ 32 callersMethodSend
(*orderer.StepRequest)
orderer/common/cluster/rpc.go:25
↓ 31 callersMethodDial
(address string)
orderer/common/cluster/util.go:217
↓ 31 callersFunctionError
(msg string)
core/chaincode/shim/response.go:41
↓ 31 callersMethodIncrement
()
orderer/common/cluster/util.go:603
↓ 31 callersMethodKey
Key is the key this value should be stored in the *cb.ConfigGroup.Policies map.
common/policies/util.go:17
↓ 31 callersMethodPeerAdminSession
PeerAdminSession starts a gexec.Session as a peer admin for the provided peer command. This is intended to be used by short running peer cli commands
integration/nwo/network.go:1044
↓ 31 callersFunctionProtoMarshal
(m proto.Message)
token/server/server_suite_test.go:21
↓ 31 callersMethodValue
Value is the backing policy implementation for this ConfigPolicy
common/policies/util.go:20
↓ 31 callersFunctiongetEnv
(ccID string, event []byte, res []byte, t *testing.T)
core/committer/txvalidator/validator_test.go:175
↓ 31 callersMethodgetTxMgr
()
core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/pkg_test.go:42
↓ 31 callersFunctionnewCommInstance
(t *testing.T, sec *naiveSecProvider)
gossip/comm/comm_test.go:161
↓ 31 callersMethodwithChaincode
(name, version string)
discovery/endorsement/endorsement_test.go:654
↓ 30 callersFunctionAddFlags
AddFlags adds flags for create and join
peer/channel/channel.go:61
↓ 30 callersMethodClose
Close ledgerResources
gossip/state/state.go:122
↓ 30 callersFunctionDeepUnmarshalJSON
DeepUnmarshalJSON takes JSON output as generated by DeepMarshalJSON and decodes it into msg This includes re-marshaling the expanded nested elements t
common/tools/protolator/json.go:472
↓ 30 callersMethodDelete
Delete deletes a Key and associated value
core/ledger/kvledger/txmgmt/statedb/statedb.go:176
↓ 30 callersMethodGetName
()
core/ledger/kvledger/txmgmt/privacyenabledstate/test_exports.go:29
↓ 30 callersMethodIsEnabledFor
(l zapcore.Level)
gossip/util/logging.go:50
↓ 30 callersFunctionNewGossipChannel
NewGossipChannel creates a new GossipChannel
gossip/gossip/channel/channel.go:186
↓ 30 callersFunctionappendBytesG1
(data []byte, index int, E *FP256BN.ECP)
idemix/util.go:58
↓ 30 callersFunctionnewConfigEnv
sets the configEnv var declared above
orderer/consensus/etcdraft/chain_test.go:3958
↓ 30 callersFunctionpvtReadWriteSet
(ns string, collectionName string, data []byte)
gossip/privdata/dataretriever_test.go:661
↓ 30 callersFunctiontestDataKeyExists
(t *testing.T, s Store, dataKey *dataKey)
core/ledger/pvtdatastorage/store_impl_test.go:872
↓ 30 callersFunctionupdateConsensusType
(b2 *Bundle, cType string, cState ab.ConsensusType_MigrationState, cContext uint64)
common/channelconfig/bundle_test.go:500
↓ 30 callersFunctionwaitUntilOrFail
(t *testing.T, pred func() bool)
gossip/gossip/gossip_test.go:1723
↓ 29 callersMethodApplyPrivacyAwareUpdates
(updates *UpdateBatch, height *version.Height)
core/ledger/kvledger/txmgmt/privacyenabledstate/db.go:41
↓ 29 callersMethodChainID
ChainID returns the ChannelID
orderer/common/msgprocessor/standardchannel.go:27
↓ 29 callersMethodGetFunctionAndParameters
GetFunctionAndParameters returns the first argument as the function name and the rest of the arguments as parameters in a string array. Only use GetFu
core/chaincode/shim/interfaces.go:45
↓ 29 callersMethodGetPKIidOfCert
GetPKIidOfCert returns the PKI-ID of a certificate
gossip/identity/identity.go:45
↓ 29 callersMethodGetState
GetState gets the value for given namespace and key. For a chaincode, the namespace corresponds to the chaincodeId
core/cclifecycle/lifecycle.go:70
↓ 29 callersMethodProcessCommand
ProcessCommand processes the passed command ensuring proper access control. The returned response allows the client to understand if the operation was
protos/token/prover.pb.go:1427
↓ 29 callersFunctionRandModOrder
RandModOrder returns a random element in 0, ..., GroupOrder-1
idemix/util.go:38
↓ 29 callersMethodRemote
Remote returns a RemoteContext for the given RemoteNode ID in the context of the given channel, or error if connection cannot be established, or the c
orderer/common/cluster/comm.go:80
↓ 29 callersMethodSetResponses
SetResponses sets responses for an Init or Invoke
common/mocks/peer/mockccstream.go:123
↓ 29 callersMethodVerify
Verify a signature over some message using this identity as reference
msp/msp.go:157
↓ 29 callersMethodaddBlocks
(blocks []*common.Block)
common/ledger/blkstorage/fsblkstorage/pkg_test.go:87
↓ 29 callersMethoddisconnect
(id uint64)
orderer/consensus/etcdraft/chain_test.go:3681
↓ 29 callersFunctionnewGossipInstanceWithGRPC
(id int, port int, gRPCServer *corecomm.GRPCServer, certs *common.TLSCertificates, secureDialOpts api.PeerSec
gossip/gossip/gossip_test.go:276
↓ 29 callersFunctionresetFlags
Explicitly define a method to facilitate tests
peer/chaincode/chaincode.go:106
↓ 29 callersFunctionrwsetUpdatingMetadataFor
(cc, key string)
core/common/validation/statebased/vpmanager_test.go:110
↓ 29 callersFunctionsetup
(configPath string, ID string)
msp/idemixmsp_test.go:19
↓ 29 callersFunctionsignedByAnyMember
(ids []string)
core/committer/txvalidator/validator_test.go:53
↓ 28 callersMethodAddCallCount
()
orderer/consensus/kafka/mock/metrics_gauge.go:96
↓ 28 callersMethodCommit
Commit commits the pvt data passed in the previous invoke to the `Prepare` function
core/ledger/pvtdatastorage/store.go:60
↓ 28 callersMethodContains
Contains returns true if the given <ns,coll,key> tuple is present in the batch
core/ledger/kvledger/txmgmt/privacyenabledstate/db.go:147
↓ 28 callersFunctionCreateCouchInstance
CreateCouchInstance creates a CouchDB instance
core/ledger/util/couchdb/couchdbutil.go:36
↓ 28 callersMethodEvaluate
Evaluate takes a set of SignedData and evaluates whether this set of signatures satisfies the policy
common/policies/policy.go:116
↓ 28 callersMethodExecuteQuery
ExecuteQuery executes the given query and returns an iterator that contains results of type *VersionedKV.
core/ledger/kvledger/txmgmt/statedb/statedb.go:49
↓ 28 callersFunctionFromString
FromString takes a string representation of the policy, parses it and returns a SignaturePolicyEnvelope that implements that policy. The supported lan
common/cauthdsl/policyparser.go:244
↓ 28 callersMethodGetBlock
()
protos/orderer/ab.pb.go:500
↓ 28 callersMethodGetKey
GetKey returns the key this CSP associates to the Subject Key Identifier ski.
bccsp/bccsp.go:115
↓ 28 callersMethodGetMSPIdentifier
GetMSPIdentifier returns the MSP Id for this instance
msp/msp.go:130
↓ 28 callersMethodIsPending
IsPending returns true if consensus-type migration is pending on the underlying chain. The definition of "pending" differs between the system and stan
orderer/consensus/migration/migration.go:28
↓ 28 callersMethodLaunch
(ccci *ccprovider.ChaincodeContainerInfo)
core/chaincode/chaincode_support.go:35
↓ 28 callersFunctionNewConf
NewConf constructs new `Conf`. blockStorageDir is the top level folder under which `FsBlockStore` manages its data
common/ledger/blkstorage/fsblkstorage/config.go:37
↓ 28 callersMethodPublish
(stats Stats)
common/metrics/statsd/goruntime/collector.go:85
↓ 28 callersMethodSetCallCount
()
common/metrics/metricsfakes/gauge.go:120
↓ 28 callersFunctiongetDefaultSigner
(msp MSP)
msp/idemixmsp_test.go:41
↓ 28 callersFunctionnewTestBlockfileWrapper
(env *testEnv, ledgerid string)
common/ledger/blkstorage/fsblkstorage/pkg_test.go:81
↓ 28 callersMethodthatMapsTo
(peers ...string)
gossip/privdata/pull_test.go:122
↓ 28 callersMethodwithPolicy
(collection string, btl uint64)
gossip/privdata/pull_test.go:75
↓ 27 callersMethodGetConfig
()
protos/msp/msp_config.pb.go:66
↓ 27 callersMethodGetIdentifier
GetIdentifier returns the provider identifier
msp/msp.go:75
↓ 27 callersMethodGetPath
()
protos/peer/query.pb.go:128
↓ 27 callersMethodInitializeQueryContext
(queryID string, iter commonledger.ResultsIterator)
core/chaincode/transaction_context.go:42
↓ 27 callersMethodNewHistogram
NewHistogram creates a new instance of a Histogram.
common/metrics/provider.go:17
↓ 27 callersFunctionNewRuleSet
NewRuleSet creates a new RuleSet with the given ordered list of Rules
orderer/common/msgprocessor/filter.go:51
↓ 27 callersMethodNext
Next returns the next key and value in the range and execute query iterator.
core/chaincode/shim/interfaces.go:365
↓ 27 callersMethodPullBlock
PullBlock pulls the given block from some orderer node
orderer/common/cluster/replication.go:406
↓ 27 callersMethodRead
(p []byte)
gossip/util/misc_test.go:57
↓ 27 callersMethodStop
Stop terminates state transfer object
gossip/state/state.go:37
↓ 27 callersFunctionmakeConfigPair
(id, modificationPolicy string, lastModified uint64, data []byte)
common/configtx/validator_test.go:33
↓ 27 callersFunctionmember
(orgName string)
common/policies/inquire/compare_test.go:177
← previousnext →201–300 of 19,835, ranked by callers