MCPcopy Create free account

hub / github.com/tendermint/tendermint / functions

Functions9,600 in github.com/tendermint/tendermint

↓ 8 callersMethodSize
Size returns the number of valid transactions in the mempool. It is thread-safe.
internal/mempool/v1/mempool.go:121
↓ 8 callersMethodSocketAddr
()
internal/p2p/peer.go:37
↓ 8 callersFunctionSplitAndTrimEmpty
SplitAndTrimEmpty slices s into all subslices separated by sep and returns a slice of the string s with all leading and trailing Unicode code points c
libs/strings/string.go:13
↓ 8 callersMethodSwitchToConsensus
(sm.State, bool)
internal/consensus/reactor.go:118
↓ 8 callersMethodSyncAny
SyncAny tries to sync any of the snapshots in the snapshot pool, waiting to discover further snapshots if none were found and discoveryTime > 0. It re
internal/statesync/syncer.go:178
↓ 8 callersFunctionTestConfig
TestConfig returns a configuration that can be used for testing
config/config.go:113
↓ 8 callersMethodUnsubscribe
Unsubscribe unsubscribes given subscriber from query.
rpc/client/interface.go:141
↓ 8 callersFunctionValidatorSetFromProto
ValidatorSetFromProto sets a protobuf ValidatorSet to the given pointer. It returns an error if any of the validators from the set or the proposer is
types/validator_set.go:812
↓ 8 callersMethodValidators
(ctx context.Context, height *int64, page, perPage *int)
rpc/client/interface.go:84
↓ 8 callersMethodVerifyCommit
VerifyCommit verifies +2/3 of the set had signed the given commit and all other signatures are valid
types/validator_set.go:657
↓ 8 callersFunctionWriteRPCResponseHTTPError
WriteRPCResponseHTTPError marshals res as JSON (with indent) and writes it to w. Maps JSON RPC error codes to HTTP Status codes as follows: HTTP Sta
rpc/jsonrpc/server/http_server.go:106
↓ 8 callersMethodadd
Add adds a block to the queue to be verified and stored CONTRACT: light blocks should have passed basic validation
internal/statesync/block_queue.go:70
↓ 8 callersMethodaddPeer
addPeer starts up the Peer and adds it to the Switch. Error is returned if the peer is filtered out or failed to start or can't be added.
internal/p2p/switch.go:1002
↓ 8 callersMethodcheckNodePair
(t *testing.T, first, second int)
internal/p2p/pex/reactor_test.go:796
↓ 8 callersFunctioncreateMConnectionWithCallbacks
( conn net.Conn, onReceive func(chID byte, msgBytes []byte), onError func(r interface{}), )
internal/p2p/conn/connection_test.go:34
↓ 8 callersMethodcreateProposalBlock
Create the next block to propose and return it. Returns nil block upon error. We really only need to return the parts, but the block is returned for
internal/consensus/state.go:1260
↓ 8 callersFunctiondoFn
(fn func() (interface{}, error))
internal/store/store_test.go:536
↓ 8 callersFunctiongenPrivKeys
genPrivKeys produces an array of private keys to generate commits.
light/helpers_test.go:27
↓ 8 callersFunctionincrementHeight
(vss ...*validatorStub)
internal/consensus/common_test.go:176
↓ 8 callersFunctionmakeState
(nVals, height int)
internal/state/helpers_test.go:92
↓ 8 callersFunctionmockLBResp
(t *testing.T, peer types.NodeID, height int64, time time.Time)
internal/statesync/block_queue_test.go:276
↓ 8 callersFunctionmustEncode
----------------------------------------------------------------------------- Messages mustEncode proto encodes a tmp2p.Message
internal/p2p/pex/pex_reactor.go:775
↓ 8 callersFunctionnewBlock
(hdr types.Header, lastCommit *types.Commit)
internal/store/store_test.go:558
↓ 8 callersFunctionnewDefaultNode
newDefaultNode returns a Tendermint node with default settings for the PrivValidator, ClientCreator, GenesisDoc, and DBProvider. It implements NodePro
node/node.go:89
↓ 8 callersFunctionnewParsedURL
Parse URL and set defaults
rpc/jsonrpc/client/http_json_client.go:38
↓ 8 callersFunctionnewPeer
( nodeInfo types.NodeInfo, pc peerConn, reactorsByCh map[byte]Reactor, onPeerError func(Peer, interface{})
internal/p2p/peer.go:98
↓ 8 callersMethodnewStep
()
internal/consensus/state.go:746
↓ 8 callersMethodnextHeight
NextHeight returns the next height that needs to be retrieved. We assume that for every height allocated that the peer will eventually add the block o
internal/statesync/block_queue.go:109
↓ 8 callersMethodpickSendVote
pickSendVote picks a vote and sends it to the peer. It will return true if there is a vote to send and false otherwise.
internal/consensus/reactor.go:688
↓ 8 callersMethodsend
(self, url, method='GET', data=None)
networks/remote/ansible/inventory/digital_ocean.py:158
↓ 8 callersFunctionsetup
(t *testing.T, numNodes int, states []*State, size int)
internal/consensus/reactor_test.go:59
↓ 8 callersFunctionsumReceivedNumbers
------------------------------------------------------------------------------ Helper functions sumReceivedNumbers takes two channels and adds all num
libs/events/events_test.go:460
↓ 8 callersFunctiontempDir
FIXME: This function is used in place of testing.TB.TempDir() as the latter seems to cause test cases to fail when it is unable to remove the temporar
internal/p2p/pex/pex_reactor_test.go:674
↓ 8 callersFunctiontestHandshakeReplay
Make some blocks. Start a fresh app and apply nBlocks blocks. Then restart the app and sync it up with the remaining blocks
internal/consensus/replay_test.go:684
↓ 8 callersFunctiontxResultWithEvents
(events []abci.Event)
internal/state/indexer/sink/kv/kv_test.go:339
↓ 8 callersFunctionverifyValidatorSet
(t *testing.T, valSet *ValidatorSet)
types/validator_set_test.go:785
↓ 7 callersMethodAddChannelDescriptors
SetChannels sets the channel descriptors to be used when establishing a connection. FIXME: To be removed when the legacy p2p stack is removed. Channe
internal/p2p/transport_mconn.go:197
↓ 7 callersMethodBase
Base returns the first known contiguous block height, or 0 for empty block stores.
internal/store/store.go:44
↓ 7 callersFunctionBlockFromProto
FromProto sets a protobuf Block to the given pointer. It returns an error if the block is invalid.
types/block.go:231
↓ 7 callersMethodBroadcastTx
(ctx context.Context, in *RequestBroadcastTx, opts ...grpc.CallOption)
rpc/grpc/types.pb.go:244
↓ 7 callersMethodBroadcastTxAsync
(context.Context, types.Tx)
rpc/client/interface.go:71
↓ 7 callersMethodCheckTx
Query for state Mempool Connection
abci/types/application.go:17
↓ 7 callersFunctionDefaultMConnConfig
DefaultMConnConfig returns the default config.
internal/p2p/conn/connection.go:143
↓ 7 callersMethodDelete
(key string)
libs/cmap/cmap.go:53
↓ 7 callersMethodDial
(addr *NetAddress)
internal/p2p/peer_test.go:179
↓ 7 callersFunctionDialTCPFn
DialTCPFn dials the given tcp addr, using the given timeoutReadWrite and privKey for the authenticated encryption handshake.
privval/socket_dialers.go:22
↓ 7 callersMethodEvictNext
EvictNext returns the next peer to evict (i.e. disconnect). If no evictable peers are found, the call will block until one becomes available.
internal/p2p/peermanager.go:828
↓ 7 callersFunctionExpandPath
ExpandPath will check if the given path begins with a "~" symbol, and if so, will expand it to become the user's home directory. If it fails to expand
tools/tm-signer-harness/internal/utils.go:12
↓ 7 callersMethodFlush
(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption)
abci/types/types.pb.go:3148
↓ 7 callersMethodFormat
Format writes either address of 0th element in a slice in base 16 notation, with leading 0x (%p), or casts HexBytes to bytes and writes as hexadecimal
libs/bytes/bytes.go:80
↓ 7 callersMethodFromProto
FromProto sets a protobuf CommitSig to the given pointer. It returns an error if the CommitSig is invalid.
types/block.go:732
↓ 7 callersFunctionGenNodeKey
GenNodeKey generates a new node key.
types/node_key.go:60
↓ 7 callersFunctionGenPrivKey
GenPrivKey generates a new sr25519 private key. It uses OS randomness in conjunction with the current global random seed in tendermint/libs/common to
crypto/sr25519/privkey.go:131
↓ 7 callersMethodGetByAddress
GetByAddress returns an index of the validator with address and validator itself (copy) if found. Otherwise, -1 and nil are returned.
types/validator_set.go:270
↓ 7 callersMethodGetCheckTx
()
abci/types/types.pb.go:328
↓ 7 callersMethodGetHostWithPath
Get full address without the protocol - useful for Dialer connections
rpc/jsonrpc/client/http_json_client.go:74
↓ 7 callersMethodGetStatusResponse
()
proto/tendermint/blocksync/types.pb.go:357
↓ 7 callersMethodHashConsensusParams
Hash returns a hash of a subset of the parameters to store in the block header. Only the Block.MaxBytes and Block.MaxGas are included in the hash. Thi
types/params.go:185
↓ 7 callersMethodHeight
Height returns the last known contiguous block height, or 0 for empty block stores.
internal/store/store.go:68
↓ 7 callersMethodID
()
internal/p2p/peer_test.go:154
↓ 7 callersMethodIndexTxEvents
(results []*abci.TxResult)
internal/state/indexer/sink/kv/kv.go:42
↓ 7 callersMethodIsNilOrEmpty
IsNilOrEmpty returns true if validator set is nil or empty.
types/validator_set.go:101
↓ 7 callersFunctionLoadOrGenFilePV
LoadOrGenFilePV loads a FilePV from the given filePaths or else generates a new one and saves it to the filePaths.
privval/file.go:241
↓ 7 callersFunctionLoadOrGenNodeKey
LoadOrGenNodeKey attempts to load the NodeKey from the given filePath. If the file does not exist, it generates and saves a new NodeKey.
types/node_key.go:41
↓ 7 callersMethodLocalEndpoint
LocalEndpoint returns the local endpoint for the connection.
internal/p2p/transport.go:110
↓ 7 callersFunctionMakeBlockID
()
internal/test/factory/block.go:35
↓ 7 callersMethodMarkGood
Mark address
internal/p2p/pex/addrbook.go:63
↓ 7 callersMethodMarshal
()
proto/tendermint/p2p/pex.pb.go:443
↓ 7 callersMethodMarshal
()
proto/tendermint/blocksync/types.pb.go:560
↓ 7 callersMethodMarshalToSizedBuffer
(dAtA []byte)
proto/tendermint/types/params.pb.go:679
↓ 7 callersMethodMarshalToSizedBuffer
(dAtA []byte)
proto/tendermint/p2p/conn.pb.go:454
↓ 7 callersMethodMempool
Mempool connection
internal/proxy/multi_app_conn.go:26
↓ 7 callersMethodNetInfo
(context.Context)
rpc/client/interface.go:122
↓ 7 callersFunctionNetPipe
()
internal/p2p/conn/conn_go110.go:14
↓ 7 callersFunctionNew
New parses and compiles the query expression into an executable query.
libs/pubsub/query/query.go:36
↓ 7 callersFunctionNewCommitSigAbsent
NewCommitSigAbsent returns new CommitSig with BlockIDFlagAbsent. Other fields are all empty.
types/block.go:629
↓ 7 callersFunctionNewDuplicateVoteEvidence
NewDuplicateVoteEvidence creates DuplicateVoteEvidence with right ordering given two conflicting votes. If either of the votes is nil, the val set is
types/evidence.go:51
↓ 7 callersFunctionNewErroringMockPV
NewErroringMockPV returns a MockPV that fails on each signing request. Again, for testing only.
types/priv_validator.go:161
↓ 7 callersFunctionNewNetAddress
NewNetAddress returns a new NetAddress using the provided TCP address. When testing, other net.Addr (except TCP) will result in using 0.0.0.0:0. When
types/netaddress.go:33
↓ 7 callersFunctionNewNetAddressIPPort
NewNetAddressIPPort returns a new NetAddress using the provided IP and port number.
types/netaddress.go:58
↓ 7 callersFunctionNewPeerUpdates
NewPeerUpdates creates a new PeerUpdates subscription. It is primarily for internal use, callers should typically use PeerManager.Subscribe(). The sub
internal/p2p/peermanager.go:75
↓ 7 callersFunctionNewReactor
NewReactor creates new PEX reactor.
internal/p2p/pex/pex_reactor.go:129
↓ 7 callersFunctionNewSignerDialerEndpoint
NewSignerDialerEndpoint returns a SignerDialerEndpoint that will dial using the given dialer and respond to any signature requests over the connection
privval/signer_dialer_endpoint.go:50
↓ 7 callersFunctionNewState
NewState returns a new State.
internal/consensus/state.go:155
↓ 7 callersFunctionNewWALEncoder
NewWALEncoder returns a new encoder that writes to wr.
internal/consensus/wal.go:293
↓ 7 callersMethodNotify
()
internal/consensus/state_test.go:1584
↓ 7 callersMethodOnStop
()
libs/service/service.go:35
↓ 7 callersMethodPendingEvidence
(maxBytes int64)
internal/state/services.go:46
↓ 7 callersMethodPop
(ctx context.Context)
internal/statesync/dispatcher.go:247
↓ 7 callersFunctionPreCheckMaxBytes
PreCheckMaxBytes checks that the size of the transaction is smaller or equal to the expected maxBytes.
internal/mempool/mempool.go:113
↓ 7 callersFunctionProofsFromByteSlices
ProofsFromByteSlices computes inclusion proof for given items. proofs[0] is the proof for items[0].
crypto/merkle/proof.go:35
↓ 7 callersMethodPush
Push adds the given raw transaction to the cache and returns true if it was newly added. Otherwise, it returns false.
internal/mempool/cache.go:21
↓ 7 callersMethodQuerySync
(context.Context, types.RequestQuery)
abci/client/client.go:56
↓ 7 callersMethodRegister
Register allows you to inject a custom PeerUpdate instance into the PeerManager, rather than relying on the instance constructed by the Subscribe meth
internal/p2p/peermanager.go:1099
↓ 7 callersFunctionRegisterType
RegisterType registers a type for Amino-compatible interface encoding in the global type registry. These types will be encoded with a type wrapper `{"
libs/json/types.go:23
↓ 7 callersMethodRemoveAddress
(*p2p.NetAddress)
internal/p2p/pex/addrbook.go:48
↓ 7 callersMethodSearchForEndHeight
(height int64, options *WALSearchOptions)
internal/consensus/wal.go:63
↓ 7 callersMethodSetEventBus
SetEventBus sets event bus.
internal/consensus/state.go:211
↓ 7 callersMethodSetLogger
(l log.Logger)
types/event_bus.go:54
↓ 7 callersMethodSetLogger
SetLogger sets the Logger.
internal/mempool/v0/clist_mempool.go:110
← previousnext →601–700 of 9,600, ranked by callers