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
↓ 2 callers
Function
NewHTTPClient
NewHTTPClient initiates an instance of a light client using HTTP addresses for both the primary provider and witnesses of the light client. A trusted
light/setup.go:18
↓ 2 callers
Function
NewMemoryNetwork
NewMemoryNetwork creates a new in-memory network.
internal/p2p/transport_memory.go:37
↓ 2 callers
Function
NewMessage
(subID string, data interface{}, events []types.Event)
libs/pubsub/subscription.go:96
↓ 2 callers
Function
NewMockReporter
NewMockReporter returns a Reporter which records all reported behaviors in memory.
internal/blocksync/v2/internal/behavior/reporter.go:60
↓ 2 callers
Method
NewOption
(start, total int64)
internal/libs/progressbar/progressbar.go:17
↓ 2 callers
Function
NewRPCRequest
(id jsonrpcid, method string, params json.RawMessage)
rpc/jsonrpc/types/types.go:88
↓ 2 callers
Function
NewRPCSuccessResponse
(id jsonrpcid, res interface{})
rpc/jsonrpc/types/types.go:187
↓ 2 callers
Function
NewRand
NewRand returns a prng, that is seeded with OS randomness. The OS randomness is obtained from crypto/rand, however, like with any math/rand.Rand objec
libs/rand/random.go:27
↓ 2 callers
Function
NewReactor
NewReactor returns a reference to a new state sync reactor, which implements the service.Service interface. It accepts a logger, connections for snaps
internal/statesync/reactor.go:183
↓ 2 callers
Function
NewReactor
NewReactor returns a reference to a new evidence reactor, which implements the service.Service interface. It accepts a p2p Channel dedicated for handl
internal/evidence/reactor.go:72
↓ 2 callers
Function
NewReactor
NewReactor returns a reference to a new consensus reactor, which implements the service.Service interface. It accepts a logger, consensus state, refer
internal/consensus/reactor.go:150
↓ 2 callers
Function
NewReactorShim
(logger log.Logger, name string, descriptors map[ChannelID]*ChannelDescriptorShim)
internal/p2p/shim.go:57
↓ 2 callers
Function
NewResultCommit
NewResultCommit is a helper to initialize the ResultCommit with the embedded struct
rpc/coretypes/responses.go:78
↓ 2 callers
Function
NewSignerClient
NewSignerClient returns an instance of SignerClient. it will start the endpoint (if not already started)
privval/signer_client.go:26
↓ 2 callers
Function
NewSignerClient
NewSignerClient returns an instance of SignerClient. it will start the endpoint (if not already started)
privval/grpc/client.go:31
↓ 2 callers
Function
NewStatusRecorder
(client client.StatusClient)
rpc/client/mock/status.go:35
↓ 2 callers
Function
NewTestTicker
NewTestTicker returns our ticker used within test routines
internal/p2p/trust/ticker.go:26
↓ 2 callers
Function
NewThrottleTimer
(name string, dur time.Duration)
internal/libs/timer/throttle_timer.go:26
↓ 2 callers
Function
NewTimeoutTicker
NewTimeoutTicker returns a new TimeoutTicker.
internal/consensus/ticker.go:40
↓ 2 callers
Function
NewWSRPCFunc
NewWSRPCFunc wraps a function for introspection and use in the websockets.
rpc/jsonrpc/server/rpc_func.go:45
↓ 2 callers
Function
NewWithClient
NewWithClient allows you to set a custom http client. An error is returned on invalid remote. The function panics when client is nil.
rpc/client/http/http.go:126
↓ 2 callers
Function
NewWithClientAndOptions
NewWithClient allows you to provide a custom client.
light/provider/http/http.go:93
↓ 2 callers
Function
NodeID
NodeID returns a valid NodeID based on an inputted string
internal/test/factory/p2p.go:12
↓ 2 callers
Function
NodeInSlice
(id types.NodeID, ids []types.NodeID)
internal/p2p/p2ptest/util.go:11
↓ 2 callers
Method
NodeInfo
NodeInfo returns a copy of the current NodeInfo. Used for testing.
internal/p2p/router.go:1023
↓ 2 callers
Method
NumClientSubscriptions
(clientID string)
types/event_bus.go:22
↓ 2 callers
Method
NumClients
()
types/event_bus.go:21
↓ 2 callers
Method
OfferSnapshot
(ctx context.Context, in *RequestOfferSnapshot, opts ...grpc.CallOption)
abci/types/types.pb.go:3158
↓ 2 callers
Method
OfferSnapshotSync
(context.Context, types.RequestOfferSnapshot)
internal/proxy/app_conn.go:52
↓ 2 callers
Method
OpenWAL
OpenWAL opens a file to log all consensus messages and timeouts for deterministic accountability.
internal/consensus/state.go:483
↓ 2 callers
Method
Pause
Pause tells the metric to pause recording data over time intervals. All method calls that indicate events will unpause the metric
internal/p2p/trust/metric.go:167
↓ 2 callers
Function
PeerMetrics
---------------------------------------------------
internal/p2p/peer.go:351
↓ 2 callers
Method
PeerRatio
PeerRatio returns the ratio of peer addresses stored to the maximum size.
internal/p2p/peermanager.go:508
↓ 2 callers
Function
Perturb
Perturbs a running testnet.
test/e2e/runner/perturb.go:13
↓ 2 callers
Method
Play
(cur int64)
internal/libs/progressbar/progressbar.go:29
↓ 2 callers
Method
Pop
()
internal/p2p/pqueue.go:62
↓ 2 callers
Method
Prev
Nonblocking, may return nil if at the end.
internal/libs/clist/clist.go:124
↓ 2 callers
Method
Primary
Primary returns the primary provider. NOTE: provider may be not safe for concurrent access.
light/client.go:811
↓ 2 callers
Method
Priority
()
internal/blocksync/v2/types.go:19
↓ 2 callers
Method
Priority
()
internal/blocksync/v2/types.go:23
↓ 2 callers
Method
Priority
()
internal/blocksync/v2/types.go:27
↓ 2 callers
Method
PrivValidator
PrivValidator returns the Node's PrivValidator. XXX: for convenience only!
node/node.go:1073
↓ 2 callers
Function
PrometheusMetrics
PrometheusMetrics returns Metrics build using Prometheus client library. Optionally, labels can be provided along with their values ("foo", "fooValue"
internal/statesync/metrics.go:29
↓ 2 callers
Function
ProtocolAndAddress
ProtocolAndAddress splits an address into the protocol and address components. For instance, "tcp://127.0.0.1:8080" will be split into "tcp" and "127.
libs/net/net.go:19
↓ 2 callers
Method
Protocols
Protocols returns the protocols supported by the transport. The Router uses this to pick a transport for an Endpoint.
internal/p2p/transport.go:39
↓ 2 callers
Method
ProveResult
ProveResult returns a merkle proof of one result from the set
types/results.go:27
↓ 2 callers
Method
PruneStates
PruneStates takes the height from which to prune up to (exclusive)
internal/state/store.go:95
↓ 2 callers
Method
PubKey
PubKey returns the peer's PubKey
types/node_key.go:26
↓ 2 callers
Method
PublishEventCompleteProposal
(data EventDataCompleteProposal)
types/event_bus.go:216
↓ 2 callers
Method
PublishEventLock
(data EventDataRoundState)
types/event_bus.go:232
↓ 2 callers
Method
PublishEventNewBlock
(data EventDataNewBlock)
types/event_bus.go:122
↓ 2 callers
Method
PublishEventNewRound
(data EventDataNewRound)
types/event_bus.go:212
↓ 2 callers
Method
PublishEventNewRoundStep
(data EventDataRoundState)
types/event_bus.go:200
↓ 2 callers
Method
PublishEventPolka
(data EventDataRoundState)
types/event_bus.go:220
↓ 2 callers
Method
PublishEventRelock
(data EventDataRoundState)
types/event_bus.go:228
↓ 2 callers
Method
PublishEventTimeoutPropose
(data EventDataRoundState)
types/event_bus.go:204
↓ 2 callers
Method
PublishEventValidBlock
(data EventDataRoundState)
types/event_bus.go:152
↓ 2 callers
Method
Query
(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption)
abci/types/types.pb.go:3152
↓ 2 callers
Method
Query
Query connection
internal/proxy/multi_app_conn.go:30
↓ 2 callers
Method
QuerySync
(context.Context, types.RequestQuery)
internal/proxy/app_conn.go:45
↓ 2 callers
Method
RFC3964
()
types/netaddress.go:307
↓ 2 callers
Method
RFC6052
()
types/netaddress.go:312
↓ 2 callers
Method
RFC6145
()
types/netaddress.go:313
↓ 2 callers
Function
RandVals
RandVals returns a list of cnt validators for initializing the application. Note that the keys are deterministically derived from the index in the arr
abci/example/kvstore/helpers.go:24
↓ 2 callers
Function
RandomNodeID
RandomNodeID returns a randomly generated valid NodeID
internal/test/factory/p2p.go:21
↓ 2 callers
Method
RecordConsMetrics
RecordConsMetrics uses for recording the block related metrics during fast-sync.
internal/consensus/metrics.go:308
↓ 2 callers
Function
RecoverAndLogHandler
----------------------------------------------------------------------------- RecoverAndLogHandler wraps an HTTP handler, adding error logging. If the
rpc/jsonrpc/server/http_server.go:163
↓ 2 callers
Method
RedoRequest
RedoRequest invalidates the block at pool.height, Remove the peer and redo request from others. Returns the ID of the removed peer.
internal/blocksync/v0/pool.go:247
↓ 2 callers
Method
ReinstateBadPeers
Move peer to bad peers list Add bad peers back to addrBook
internal/p2p/pex/addrbook.go:67
↓ 2 callers
Method
RejectFormat
RejectFormat rejects a snapshot format. It will never be used again.
internal/statesync/snapshots.go:233
↓ 2 callers
Method
RemoteEndpoint
RemoteEndpoint implements Connection.
internal/p2p/transport_mconn.go:447
↓ 2 callers
Method
Remove
(tx types.Tx)
internal/mempool/cache.go:91
↓ 2 callers
Method
Report
Report stores the PeerBehavior produced by the peer identified by peerID.
internal/blocksync/v2/internal/behavior/reporter.go:67
↓ 2 callers
Function
RequireUpdates
RequireUpdates requires that a PeerUpdates subscription yields the given updates in the given order.
internal/p2p/p2ptest/require.go:134
↓ 2 callers
Method
RetryAll
RetryAll schedules all chunks to be retried, without refetching them.
internal/statesync/chunks.go:311
↓ 2 callers
Function
RunReplayFile
-------------------------------------------------------- replay messages interactively or all at once replay the wal file
internal/consensus/replay_file.go:34
↓ 2 callers
Method
Same
Same returns true is na has the same non-empty ID or DialString as other.
types/netaddress.go:127
↓ 2 callers
Method
SaveAs
SaveAs is a utility method for saving GenensisDoc as a JSON file.
types/genesis.go:48
↓ 2 callers
Method
SaveBlock
(*types.Block, *types.PartSet, *types.Commit)
internal/blocksync/v2/reactor.go:29
↓ 2 callers
Method
SaveSignedHeader
(sh *types.SignedHeader, blockID types.BlockID)
internal/store/store.go:533
↓ 2 callers
Method
SaveValidatorSets
SaveValidatorSet saves the validator set at a given height
internal/state/store.go:91
↓ 2 callers
Method
Send
Send the given RPC request to the server. Results will be available on ResponsesCh, errors, if any, on ErrorsCh. Will block until send succeeds or ctx
rpc/jsonrpc/client/ws_client.go:198
↓ 2 callers
Method
SendAddrs
SendAddrs sends addrs to the peer.
internal/p2p/pex/pex_reactor.go:408
↓ 2 callers
Function
ServeTLS
Serve creates a http.Server and calls ServeTLS with the given listener, certFile and keyFile. It wraps handler with RecoverAndLogHandler and a handler
rpc/jsonrpc/server/http_server.go:71
↓ 2 callers
Method
Set
(key []byte, value []byte)
crypto/merkle/types.go:16
↓ 2 callers
Method
SetBlocking
SetBlocking changes the blocking behavior and returns the previous setting. A Read call on a non-blocking reader returns immediately if no additional
internal/libs/flowrate/io.go:62
↓ 2 callers
Method
SetBlocking
SetBlocking changes the blocking behavior and returns the previous setting. A Write call on a non-blocking writer returns as soon as no additional byt
internal/libs/flowrate/io.go:121
↓ 2 callers
Method
SetDefaultSchemeHTTP
Change protocol to HTTP for unknown protocols and TCP protocol - useful for RPC connections
rpc/jsonrpc/client/http_json_client.go:62
↓ 2 callers
Method
SetEnsurePeersPeriod
SetEnsurePeersPeriod sets period to ensure peers connected.
internal/p2p/pex/pex_reactor.go:413
↓ 2 callers
Method
SetEventBus
SetEventBus sets the reactor's event bus.
internal/consensus/reactor.go:251
↓ 2 callers
Method
SetEventBus
SetEventBus - sets the event bus for publishing block related events. If not called, it defaults to types.NopEventBus.
internal/consensus/replay.go:232
↓ 2 callers
Method
SetHasProposal
SetHasProposal sets the given proposal as known for the peer.
internal/consensus/peer_state.go:111
↓ 2 callers
Method
SetHasProposalBlockPart
SetHasProposalBlockPart sets the given block part index as known for the peer.
internal/consensus/peer_state.go:151
↓ 2 callers
Method
SetHasVote
SetHasVote sets the given vote as known by the peer
internal/consensus/peer_state.go:361
↓ 2 callers
Method
SetNext
NOTE: This function needs to be safe for concurrent goroutines waiting on nextWg.
internal/libs/clist/clist.go:160
↓ 2 callers
Method
SetNodeKey
SetNodeKey sets the switch's private key for authenticated encryption. NOTE: Not goroutine safe.
internal/p2p/switch.go:257
↓ 2 callers
Method
SetPeer
SetPeer adds the specified peer ID as a sender of w.
internal/mempool/v1/tx.go:29
↓ 2 callers
Method
SetPrev
NOTE: This function needs to be safe for concurrent goroutines waiting on prevWg
internal/libs/clist/clist.go:183
↓ 2 callers
Method
SetPriority
SetPriority sets the application-assigned priority of w.
internal/mempool/v1/tx.go:76
↓ 2 callers
Method
SetReadDeadline
(t time.Time)
internal/p2p/conn/secret_connection.go:282
← previous
next →
2,101–2,200 of 9,600, ranked by callers