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
↓ 4 callers
Method
GetIndex
()
abci/types/types.pb.go:2578
↓ 4 callers
Method
GetPeerTrustMetric
GetPeerTrustMetric returns a trust metric by peer key
internal/p2p/trust/store.go:105
↓ 4 callers
Method
GetReader
()
types/part_set.go:306
↓ 4 callers
Method
GetSender
GetSender returns the sender of the chunk with the given index, or empty if not found.
internal/statesync/chunks.go:211
↓ 4 callers
Method
GetSnapshotsResponse
()
proto/tendermint/statesync/types.pb.go:127
↓ 4 callers
Method
GetSum
()
proto/tendermint/p2p/pex.pb.go:356
↓ 4 callers
Method
GetSum
()
proto/tendermint/consensus/wal.pb.go:266
↓ 4 callers
Method
GetVote
GetVote converts the CommitSig for the given valIdx to a Vote. Returns nil if the precommit at valIdx is nil. Panics if valIdx >= commit.Size().
types/block.go:793
↓ 4 callers
Method
Group
()
internal/consensus/wal.go:115
↓ 4 callers
Method
Has
(key []byte)
crypto/merkle/types.go:12
↓ 4 callers
Method
Hash
Hash computes and returns the block hash. If the block is incomplete, block hash is nil for safety.
types/block.go:112
↓ 4 callers
Method
HeaderByHash
(ctx context.Context, hash bytes.HexBytes)
rpc/client/interface.go:82
↓ 4 callers
Function
HeaderFromProto
FromProto sets a protobuf Header to the given pointer. It returns an error if the header is invalid.
types/block.go:550
↓ 4 callers
Method
Increment
(heights int64)
test/e2e/tests/validator_test.go:150
↓ 4 callers
Method
Init
Instantiates a trust metric by loading the history data for a single peer. This is called only once and only right after creation, which is why the lo
internal/p2p/trust/metric.go:138
↓ 4 callers
Method
InitChainSync
(context.Context, types.RequestInitChain)
internal/proxy/app_conn.go:21
↓ 4 callers
Method
IsCaughtUp
IsCaughtUp returns true if this node is caught up, false - otherwise.
internal/blocksync/v0/pool.go:182
↓ 4 callers
Function
IsConnTimeout
IsConnTimeout returns a boolean indicating whether the error is known to report that a connection timeout occurred. This detects both fundamental netw
privval/utils.go:16
↓ 4 callers
Method
IsEmpty
IsEmpty returns true if the State is equal to the empty State.
internal/state/state.go:150
↓ 4 callers
Method
IsGood
(*p2p.NetAddress)
internal/p2p/pex/addrbook.go:69
↓ 4 callers
Method
IsPersistent
did we dial the peer
internal/p2p/peer.go:31
↓ 4 callers
Method
Keys
()
libs/cmap/cmap.go:72
↓ 4 callers
Method
LastTrustedHeight
LastTrustedHeight returns a last trusted height. -1 and nil are returned if there are no trusted headers. Safe for concurrent use by multiple gorouti
light/client.go:789
↓ 4 callers
Method
ListenAndServe
ListenAndServe configures the rpcserver.WebsocketManager, sets up the RPC routes to proxy via Client, and starts up an HTTP server on the TCP network
light/proxy/proxy.go:52
↓ 4 callers
Method
MarkBlockGossipStarted
()
internal/consensus/metrics.go:315
↓ 4 callers
Method
Marshal
()
proto/tendermint/types/canonical.pb.go:502
↓ 4 callers
Method
Marshal
()
proto/tendermint/types/evidence.pb.go:360
↓ 4 callers
Method
Marshal
()
proto/tendermint/rpc/grpc/types.pb.go:347
↓ 4 callers
Method
MarshalTo
([]byte)
proto/tendermint/p2p/conn.pb.go:202
↓ 4 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
proto/tendermint/mempool/types.pb.go:179
↓ 4 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
proto/tendermint/p2p/types.pb.go:484
↓ 4 callers
Method
Matches
(events []types.Event)
libs/pubsub/pubsub.go:74
↓ 4 callers
Function
NewBaseReactor
(name string, impl Reactor)
internal/p2p/base_reactor.go:60
↓ 4 callers
Function
NewBatch
NewBatch creates a new Batch.
internal/state/indexer/indexer.go:48
↓ 4 callers
Function
NewBatchVerifier
()
crypto/sr25519/batch.go:18
↓ 4 callers
Function
NewBlockPool
NewBlockPool returns a new BlockPool with the height equal to start. Block requests and errors will be sent to requestsCh and errorsCh accordingly.
internal/blocksync/v0/pool.go:94
↓ 4 callers
Function
NewBlockProvider
Creates a block provider which implements the light client Provider interface.
internal/statesync/dispatcher.go:173
↓ 4 callers
Function
NewBool
NewBool creates an AtomicBool with given default value.
libs/sync/atomic_bool.go:12
↓ 4 callers
Function
NewDominoOp
(key, input, output string)
crypto/merkle/proof_test.go:24
↓ 4 callers
Function
NewErrInvalidEvidence
NewErrInvalidEvidence returns a new EvidenceInvalid with the given err.
types/evidence.go:644
↓ 4 callers
Function
NewEventSink
NewEventSink constructs an event sink associated with the PostgreSQL database specified by connStr. Events written to the sink are attributed to the s
internal/state/indexer/sink/psql/psql.go:38
↓ 4 callers
Function
NewFilePV
NewFilePV generates a new validator from the given key and paths.
privval/file.go:160
↓ 4 callers
Function
NewPeer
NewPeer creates and starts a new mock peer. If the ip is nil, random routable address is used.
internal/p2p/mock/peer.go:23
↓ 4 callers
Function
NewReactorV2
NewReactor returns a reference to a new reactor.
internal/p2p/pex/reactor.go:104
↓ 4 callers
Function
NewSignerServer
(chainID string, privVal types.PrivValidator, log log.Logger)
privval/grpc/server.go:24
↓ 4 callers
Function
NewSocketServer
(protoAddr string, app types.Application)
abci/server/socket_server.go:36
↓ 4 callers
Function
NewStore
NewStore creates the dbStore of the state pkg.
internal/state/store.go:108
↓ 4 callers
Function
NewSwitch
NewSwitch creates a new Switch with the given config.
internal/p2p/switch.go:141
↓ 4 callers
Function
NewTCPListener
NewTCPListener returns a listener that accepts authenticated encrypted connections using the given secretConnKey and the default timeout values.
privval/socket_listeners.go:54
↓ 4 callers
Function
NewUnixListener
NewUnixListener returns a listener that accepts unencrypted connections using the default timeout values.
privval/socket_listeners.go:117
↓ 4 callers
Function
NewWebsocketManager
NewWebsocketManager returns a new WebsocketManager that passes a map of functions, connection options and logger to new WS connections.
rpc/jsonrpc/server/ws_handler.go:43
↓ 4 callers
Method
NumUnconfirmedTxs
(context.Context)
rpc/client/interface.go:149
↓ 4 callers
Method
Number
Number returns the value of the argument text as a number, or a NaN if the text does not encode a valid number value.
libs/pubsub/query/syntax/parser.go:73
↓ 4 callers
Function
ParseConfig
ParseConfig retrieves the default environment configuration, sets up the Tendermint root and ensures that the root exists
cmd/tendermint/commands/root.go:30
↓ 4 callers
Method
PickRandom
PickRandom returns a random index for a set bit in the bit array. If there is no such value, it returns 0, false. It uses math/rand's global randomnes
libs/bits/bit_array.go:249
↓ 4 callers
Method
Pos
Pos returns the start offset of the current token in the input.
libs/pubsub/query/syntax/scanner.go:123
↓ 4 callers
Method
Proof
(key []byte)
crypto/merkle/types.go:13
↓ 4 callers
Function
ProofFromProto
(pb *tmcrypto.Proof)
crypto/merkle/proof.go:133
↓ 4 callers
Method
PublishEventTx
PublishEventTx publishes tx event with events from Result. Note it will add predefined keys (EventTypeKey, TxHashKey). Existing events with the same k
types/event_bus.go:167
↓ 4 callers
Method
PublishEventUnlock
(data EventDataRoundState)
types/event_bus.go:224
↓ 4 callers
Method
RFC4380
()
types/netaddress.go:309
↓ 4 callers
Method
Reactor
Reactor returns the reactor with the given name. NOTE: Not goroutine safe.
internal/p2p/switch.go:239
↓ 4 callers
Method
Reclaim
Reclaim returns the ID reserved for the peer back to unused pool.
internal/mempool/ids.go:41
↓ 4 callers
Function
RegisterRPCFuncs
RegisterRPCFuncs adds a route for each function in the funcMap, as well as general jsonrpc and websocket handlers for all functions. "result" is the i
rpc/jsonrpc/server/rpc_func.go:15
↓ 4 callers
Method
Reject
Reject rejects a snapshot. Rejected snapshots will never be used again.
internal/statesync/snapshots.go:223
↓ 4 callers
Method
RemotePubKey
RemotePubKey returns authenticated remote pubkey
privval/secret_connection.go:185
↓ 4 callers
Method
Remove
Remove discards peer by its Key, if the peer was previously memoized. Returns true if the peer was removed, and false if it was not found. in the set.
internal/p2p/peer_set.go:105
↓ 4 callers
Method
RemoveTxByKey
RemoveTxByKey removes a transaction, identified by its key, from the mempool.
internal/mempool/mempool.go:37
↓ 4 callers
Method
Report
(behavior PeerBehavior)
internal/blocksync/v2/internal/behavior/reporter.go:14
↓ 4 callers
Method
SearchTxEvents
(ctx context.Context, q *query.Query)
internal/state/indexer/sink/kv/kv.go:50
↓ 4 callers
Method
SendUpdate
SendUpdate pushes information about a peer into the routing layer, presumably from a peer.
internal/p2p/peermanager.go:90
↓ 4 callers
Function
SequentialVerification
SequentialVerification option configures the light client to sequentially check the blocks (every block, in ascending height order). Note this is much
light/client.go:63
↓ 4 callers
Function
Serve
Serve creates a http.Server and calls Serve with the given listener. It wraps handler with RecoverAndLogHandler and a handler, which limits the max bo
rpc/jsonrpc/server/http_server.go:53
↓ 4 callers
Method
SetNodeInfo
SetNodeInfo sets the switch's NodeInfo for checking compatibility and handshaking with other nodes. NOTE: Not goroutine safe.
internal/p2p/switch.go:245
↓ 4 callers
Method
SetSwitch
Start, Stop SetSwitch allows setting a switch.
internal/p2p/base_reactor.go:19
↓ 4 callers
Function
Setup
Setup sets up the testnet configuration.
test/e2e/runner/setup.go:42
↓ 4 callers
Method
Size
()
proto/tendermint/crypto/keys.pb.go:73
↓ 4 callers
Method
Size
Size returns the number of unique items in the peerSet.
internal/p2p/peer_set.go:138
↓ 4 callers
Method
String
String representation: <ID>@<IP>:<PORT>
types/netaddress.go:140
↓ 4 callers
Function
StringInSlice
StringInSlice returns true if a is found the list.
libs/strings/string.go:32
↓ 4 callers
Method
SubscribeUnbuffered
This method can be used for a local consensus explorer and synchronous testing. Do not use for for public facing / untrusted subscriptions!
types/event_bus.go:88
↓ 4 callers
Method
ToProto
()
types/block_meta.go:29
↓ 4 callers
Function
ToRequestApplySnapshotChunk
(req RequestApplySnapshotChunk)
abci/types/messages.go:107
↓ 4 callers
Function
ToRequestBeginBlock
(req RequestBeginBlock)
abci/types/messages.go:77
↓ 4 callers
Function
ToRequestCheckTx
(req RequestCheckTx)
abci/types/messages.go:53
↓ 4 callers
Function
ToRequestCommit
()
abci/types/messages.go:59
↓ 4 callers
Function
ToRequestDeliverTx
(req RequestDeliverTx)
abci/types/messages.go:47
↓ 4 callers
Function
ToRequestEndBlock
(req RequestEndBlock)
abci/types/messages.go:83
↓ 4 callers
Function
ToRequestInfo
(req RequestInfo)
abci/types/messages.go:41
↓ 4 callers
Function
ToRequestInitChain
(req RequestInitChain)
abci/types/messages.go:71
↓ 4 callers
Function
ToRequestListSnapshots
(req RequestListSnapshots)
abci/types/messages.go:89
↓ 4 callers
Function
ToRequestLoadSnapshotChunk
(req RequestLoadSnapshotChunk)
abci/types/messages.go:101
↓ 4 callers
Function
ToRequestOfferSnapshot
(req RequestOfferSnapshot)
abci/types/messages.go:95
↓ 4 callers
Function
ToRequestQuery
(req RequestQuery)
abci/types/messages.go:65
↓ 4 callers
Method
TrySendMessage
TrySendMessage is a non-blocking version of SendMessage that returns immediately if the message buffer is full. It returns true if the message was acc
internal/p2p/transport.go:107
↓ 4 callers
Method
TxIndexEnabled
Is TxIndexing enabled
rpc/coretypes/responses.go:133
↓ 4 callers
Method
UnconfirmedTxs
(ctx context.Context, limit *int)
rpc/client/interface.go:148
↓ 4 callers
Method
Unmarshal
(dAtA []byte)
proto/tendermint/types/validator.pb.go:604
↓ 4 callers
Method
Unmarshal
(dAtA []byte)
proto/tendermint/p2p/conn.pb.go:797
↓ 4 callers
Method
Unsubscribe
Unsubscribe removes the subscription on the given query. An error will be returned to the caller if the context is canceled or if subscription does no
libs/pubsub/pubsub.go:229
← previous
next →
1,101–1,200 of 9,600, ranked by callers