Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tendermint/tendermint
/ functions
Functions
9,600 in github.com/tendermint/tendermint
⨍
Functions
9,600
◇
Types & classes
1,209
↓ 8 callers
Method
Size
Size returns the number of valid transactions in the mempool. It is thread-safe.
internal/mempool/v1/mempool.go:121
↓ 8 callers
Method
SocketAddr
()
internal/p2p/peer.go:37
↓ 8 callers
Function
SplitAndTrimEmpty
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 callers
Method
SwitchToConsensus
(sm.State, bool)
internal/consensus/reactor.go:118
↓ 8 callers
Method
SyncAny
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 callers
Function
TestConfig
TestConfig returns a configuration that can be used for testing
config/config.go:113
↓ 8 callers
Method
Unsubscribe
Unsubscribe unsubscribes given subscriber from query.
rpc/client/interface.go:141
↓ 8 callers
Function
ValidatorSetFromProto
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 callers
Method
Validators
(ctx context.Context, height *int64, page, perPage *int)
rpc/client/interface.go:84
↓ 8 callers
Method
VerifyCommit
VerifyCommit verifies +2/3 of the set had signed the given commit and all other signatures are valid
types/validator_set.go:657
↓ 8 callers
Function
WriteRPCResponseHTTPError
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 callers
Method
add
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 callers
Method
addPeer
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 callers
Method
checkNodePair
(t *testing.T, first, second int)
internal/p2p/pex/reactor_test.go:796
↓ 8 callers
Function
createMConnectionWithCallbacks
( conn net.Conn, onReceive func(chID byte, msgBytes []byte), onError func(r interface{}), )
internal/p2p/conn/connection_test.go:34
↓ 8 callers
Method
createProposalBlock
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 callers
Function
doFn
(fn func() (interface{}, error))
internal/store/store_test.go:536
↓ 8 callers
Function
genPrivKeys
genPrivKeys produces an array of private keys to generate commits.
light/helpers_test.go:27
↓ 8 callers
Function
incrementHeight
(vss ...*validatorStub)
internal/consensus/common_test.go:176
↓ 8 callers
Function
makeState
(nVals, height int)
internal/state/helpers_test.go:92
↓ 8 callers
Function
mockLBResp
(t *testing.T, peer types.NodeID, height int64, time time.Time)
internal/statesync/block_queue_test.go:276
↓ 8 callers
Function
mustEncode
----------------------------------------------------------------------------- Messages mustEncode proto encodes a tmp2p.Message
internal/p2p/pex/pex_reactor.go:775
↓ 8 callers
Function
newBlock
(hdr types.Header, lastCommit *types.Commit)
internal/store/store_test.go:558
↓ 8 callers
Function
newDefaultNode
newDefaultNode returns a Tendermint node with default settings for the PrivValidator, ClientCreator, GenesisDoc, and DBProvider. It implements NodePro
node/node.go:89
↓ 8 callers
Function
newParsedURL
Parse URL and set defaults
rpc/jsonrpc/client/http_json_client.go:38
↓ 8 callers
Function
newPeer
( nodeInfo types.NodeInfo, pc peerConn, reactorsByCh map[byte]Reactor, onPeerError func(Peer, interface{})
internal/p2p/peer.go:98
↓ 8 callers
Method
newStep
()
internal/consensus/state.go:746
↓ 8 callers
Method
nextHeight
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 callers
Method
pickSendVote
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 callers
Method
send
(self, url, method='GET', data=None)
networks/remote/ansible/inventory/digital_ocean.py:158
↓ 8 callers
Function
setup
(t *testing.T, numNodes int, states []*State, size int)
internal/consensus/reactor_test.go:59
↓ 8 callers
Function
sumReceivedNumbers
------------------------------------------------------------------------------ Helper functions sumReceivedNumbers takes two channels and adds all num
libs/events/events_test.go:460
↓ 8 callers
Function
tempDir
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 callers
Function
testHandshakeReplay
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 callers
Function
txResultWithEvents
(events []abci.Event)
internal/state/indexer/sink/kv/kv_test.go:339
↓ 8 callers
Function
verifyValidatorSet
(t *testing.T, valSet *ValidatorSet)
types/validator_set_test.go:785
↓ 7 callers
Method
AddChannelDescriptors
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 callers
Method
Base
Base returns the first known contiguous block height, or 0 for empty block stores.
internal/store/store.go:44
↓ 7 callers
Function
BlockFromProto
FromProto sets a protobuf Block to the given pointer. It returns an error if the block is invalid.
types/block.go:231
↓ 7 callers
Method
BroadcastTx
(ctx context.Context, in *RequestBroadcastTx, opts ...grpc.CallOption)
rpc/grpc/types.pb.go:244
↓ 7 callers
Method
BroadcastTxAsync
(context.Context, types.Tx)
rpc/client/interface.go:71
↓ 7 callers
Method
CheckTx
Query for state Mempool Connection
abci/types/application.go:17
↓ 7 callers
Function
DefaultMConnConfig
DefaultMConnConfig returns the default config.
internal/p2p/conn/connection.go:143
↓ 7 callers
Method
Delete
(key string)
libs/cmap/cmap.go:53
↓ 7 callers
Method
Dial
(addr *NetAddress)
internal/p2p/peer_test.go:179
↓ 7 callers
Function
DialTCPFn
DialTCPFn dials the given tcp addr, using the given timeoutReadWrite and privKey for the authenticated encryption handshake.
privval/socket_dialers.go:22
↓ 7 callers
Method
EvictNext
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 callers
Function
ExpandPath
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 callers
Method
Flush
(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption)
abci/types/types.pb.go:3148
↓ 7 callers
Method
Format
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 callers
Method
FromProto
FromProto sets a protobuf CommitSig to the given pointer. It returns an error if the CommitSig is invalid.
types/block.go:732
↓ 7 callers
Function
GenNodeKey
GenNodeKey generates a new node key.
types/node_key.go:60
↓ 7 callers
Function
GenPrivKey
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 callers
Method
GetByAddress
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 callers
Method
GetCheckTx
()
abci/types/types.pb.go:328
↓ 7 callers
Method
GetHostWithPath
Get full address without the protocol - useful for Dialer connections
rpc/jsonrpc/client/http_json_client.go:74
↓ 7 callers
Method
GetStatusResponse
()
proto/tendermint/blocksync/types.pb.go:357
↓ 7 callers
Method
HashConsensusParams
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 callers
Method
Height
Height returns the last known contiguous block height, or 0 for empty block stores.
internal/store/store.go:68
↓ 7 callers
Method
ID
()
internal/p2p/peer_test.go:154
↓ 7 callers
Method
IndexTxEvents
(results []*abci.TxResult)
internal/state/indexer/sink/kv/kv.go:42
↓ 7 callers
Method
IsNilOrEmpty
IsNilOrEmpty returns true if validator set is nil or empty.
types/validator_set.go:101
↓ 7 callers
Function
LoadOrGenFilePV
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 callers
Function
LoadOrGenNodeKey
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 callers
Method
LocalEndpoint
LocalEndpoint returns the local endpoint for the connection.
internal/p2p/transport.go:110
↓ 7 callers
Function
MakeBlockID
()
internal/test/factory/block.go:35
↓ 7 callers
Method
MarkGood
Mark address
internal/p2p/pex/addrbook.go:63
↓ 7 callers
Method
Marshal
()
proto/tendermint/p2p/pex.pb.go:443
↓ 7 callers
Method
Marshal
()
proto/tendermint/blocksync/types.pb.go:560
↓ 7 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
proto/tendermint/types/params.pb.go:679
↓ 7 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
proto/tendermint/p2p/conn.pb.go:454
↓ 7 callers
Method
Mempool
Mempool connection
internal/proxy/multi_app_conn.go:26
↓ 7 callers
Method
NetInfo
(context.Context)
rpc/client/interface.go:122
↓ 7 callers
Function
NetPipe
()
internal/p2p/conn/conn_go110.go:14
↓ 7 callers
Function
New
New parses and compiles the query expression into an executable query.
libs/pubsub/query/query.go:36
↓ 7 callers
Function
NewCommitSigAbsent
NewCommitSigAbsent returns new CommitSig with BlockIDFlagAbsent. Other fields are all empty.
types/block.go:629
↓ 7 callers
Function
NewDuplicateVoteEvidence
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 callers
Function
NewErroringMockPV
NewErroringMockPV returns a MockPV that fails on each signing request. Again, for testing only.
types/priv_validator.go:161
↓ 7 callers
Function
NewNetAddress
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 callers
Function
NewNetAddressIPPort
NewNetAddressIPPort returns a new NetAddress using the provided IP and port number.
types/netaddress.go:58
↓ 7 callers
Function
NewPeerUpdates
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 callers
Function
NewReactor
NewReactor creates new PEX reactor.
internal/p2p/pex/pex_reactor.go:129
↓ 7 callers
Function
NewSignerDialerEndpoint
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 callers
Function
NewState
NewState returns a new State.
internal/consensus/state.go:155
↓ 7 callers
Function
NewWALEncoder
NewWALEncoder returns a new encoder that writes to wr.
internal/consensus/wal.go:293
↓ 7 callers
Method
Notify
()
internal/consensus/state_test.go:1584
↓ 7 callers
Method
OnStop
()
libs/service/service.go:35
↓ 7 callers
Method
PendingEvidence
(maxBytes int64)
internal/state/services.go:46
↓ 7 callers
Method
Pop
(ctx context.Context)
internal/statesync/dispatcher.go:247
↓ 7 callers
Function
PreCheckMaxBytes
PreCheckMaxBytes checks that the size of the transaction is smaller or equal to the expected maxBytes.
internal/mempool/mempool.go:113
↓ 7 callers
Function
ProofsFromByteSlices
ProofsFromByteSlices computes inclusion proof for given items. proofs[0] is the proof for items[0].
crypto/merkle/proof.go:35
↓ 7 callers
Method
Push
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 callers
Method
QuerySync
(context.Context, types.RequestQuery)
abci/client/client.go:56
↓ 7 callers
Method
Register
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 callers
Function
RegisterType
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 callers
Method
RemoveAddress
(*p2p.NetAddress)
internal/p2p/pex/addrbook.go:48
↓ 7 callers
Method
SearchForEndHeight
(height int64, options *WALSearchOptions)
internal/consensus/wal.go:63
↓ 7 callers
Method
SetEventBus
SetEventBus sets event bus.
internal/consensus/state.go:211
↓ 7 callers
Method
SetLogger
(l log.Logger)
types/event_bus.go:54
↓ 7 callers
Method
SetLogger
SetLogger sets the Logger.
internal/mempool/v0/clist_mempool.go:110
← previous
next →
601–700 of 9,600, ranked by callers