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
↓ 12 callers
Function
cdcEncode
cdcEncode returns nil if the input is nil, otherwise returns proto.Marshal(<type>Value{Value: item})
types/encoding_helper.go:11
↓ 12 callers
Method
close
close closes the queue. After this call enqueue() will block, so the caller must select on closed() as well to avoid blocking forever. The enqueue() a
internal/p2p/queue.go:25
↓ 12 callers
Function
decideProposal
Create proposal block from cs1 but sign it with vs.
internal/consensus/common_test.go:227
↓ 12 callers
Function
fireEvents
fireEvents takes an EventSwitch and fires a thousand integers under a given `event` with the integers mootonically increasing from `offset` to `offset
libs/events/events_test.go:478
↓ 12 callers
Function
makeVote
( t *testing.T, val types.PrivValidator, chainID string, valIndex int32, height int64, round int32, step int
internal/evidence/verify_test.go:554
↓ 12 callers
Function
mustCheckTx
mustCheckTx invokes txmp.CheckTx for the given transaction and waits until its callback has finished executing. It fails t if CheckTx fails.
internal/mempool/v1/mempool_test.go:100
↓ 12 callers
Function
mustEncode
----------------------------------------------------------------------------- mustEncode proto encodes a proto.message and panics if fails
internal/store/store.go:649
↓ 12 callers
Function
sovPex
(x uint64)
proto/tendermint/p2p/pex.pb.go:904
↓ 12 callers
Function
sovTypes
(x uint64)
proto/tendermint/blocksync/types.pb.go:842
↓ 11 callers
Function
AddressHash
(bz []byte)
crypto/crypto.go:18
↓ 11 callers
Method
Addresses
Addresses returns all known addresses for a peer, primarily for testing. The order is arbitrary.
internal/p2p/peermanager.go:1182
↓ 11 callers
Method
BitArray
()
types/vote_set.go:687
↓ 11 callers
Method
BlockchainInfo
(ctx context.Context, minHeight, maxHeight int64)
rpc/client/interface.go:111
↓ 11 callers
Method
Encode
Encode writes the custom encoding of v to the stream. It returns an error if the encoded size of v is greater than 1MB. Any error encountered during t
internal/consensus/wal.go:300
↓ 11 callers
Method
GetPubKey
(ctx context.Context, in *PubKeyRequest, opts ...grpc.CallOption)
proto/tendermint/privval/service.pb.go:61
↓ 11 callers
Method
InitChain
Validate a tx for the mempool Consensus Connection
abci/types/application.go:20
↓ 11 callers
Method
IsSet
IsSet returns whether the Boolean is true.
libs/sync/atomic_bool.go:31
↓ 11 callers
Method
LoadBlock
LoadBlock returns the block with the given height. If no block is found for that height, it returns nil.
internal/store/store.go:131
↓ 11 callers
Function
MakeNetwork
MakeNetwork creates a test network with the given number of nodes and connects them to each other.
internal/p2p/p2ptest/network.go:50
↓ 11 callers
Method
Marshal
()
proto/tendermint/privval/types.pb.go:1119
↓ 11 callers
Method
Marshal
()
proto/tendermint/consensus/types.pb.go:1093
↓ 11 callers
Function
New
New returns an Inspector that serves RPC on the specified BlockStore and StateStore. The Inspector type does not modify the state or block stores. The
internal/inspect/inspect.go:43
↓ 11 callers
Function
NewPartSetFromHeader
Returns an empty PartSet ready to be populated.
types/part_set.go:197
↓ 11 callers
Function
NewPersistentKVStoreApplication
(dbDir string)
abci/example/kvstore/persistent_kvstore.go:38
↓ 11 callers
Function
NewWALDecoder
NewWALDecoder returns a new decoder that reads from rd.
internal/consensus/wal.go:360
↓ 11 callers
Function
Parallel
---------------------------------------- Parallel Run tasks in parallel, with ability to abort early. Returns ok=false iff any of the tasks returned a
libs/async/async.go:127
↓ 11 callers
Method
PendingEvidence
PendingEvidence is used primarily as part of block proposal and returns up to maxNum of uncommitted evidence.
internal/evidence/pool.go:91
↓ 11 callers
Function
ProposalSignBytes
ProposalSignBytes returns the proto-encoding of the canonicalized Proposal, for signing. Panics if the marshaling fails. The encoded Protobuf message
types/proposal.go:110
↓ 11 callers
Function
RandValidator
(randPower bool, minPower int64)
internal/test/factory/validator.go:12
↓ 11 callers
Method
Scores
Scores returns the peer scores for all known peers, primarily for testing.
internal/p2p/peermanager.go:1208
↓ 11 callers
Method
SignProposal
(ctx context.Context, chainID string, proposal *tmproto.Proposal)
types/priv_validator.go:32
↓ 11 callers
Method
StopPeerForError
StopPeerForError disconnects from a peer due to external error. If the peer is persistent, it will attempt to reconnect. TODO: make record depending o
internal/p2p/switch.go:374
↓ 11 callers
Method
TrySend
(byte, []byte)
internal/p2p/peer.go:40
↓ 11 callers
Method
TxsAvailable
TxsAvailable returns a channel which fires once for every height, and only when transactions are available in the mempool. NOTE: 1. The returned chan
internal/mempool/mempool.go:88
↓ 11 callers
Method
UnsubscribeAll
UnsubscribeAll unsubscribes given subscriber from all the queries.
rpc/client/interface.go:143
↓ 11 callers
Method
WriteLine
WriteLine writes line into the current head of the group. It also appends "\n". NOTE: Writes are buffered so they don't write synchronously TODO: Make
internal/libs/autofile/group.go:213
↓ 11 callers
Function
abciResponses
(n int, code uint32)
internal/mempool/v0/clist_mempool_test.go:689
↓ 11 callers
Function
checkTxs
(t *testing.T, txmp *TxMempool, numTxs int, peerID uint16)
internal/mempool/v1/mempool_test.go:110
↓ 11 callers
Function
execCompose
execCompose runs a Docker Compose command for a testnet.
test/e2e/runner/exec.go:34
↓ 11 callers
Method
handleMsg
state transitions on complete-proposal, 2/3-any, 2/3-one
internal/consensus/state.go:864
↓ 11 callers
Method
lbKey
(height int64)
light/store/db/db.go:289
↓ 11 callers
Function
skipTypes
(dAtA []byte)
proto/tendermint/privval/types.pb.go:2981
↓ 11 callers
Function
sovValidator
(x uint64)
proto/tendermint/types/validator.pb.go:456
↓ 11 callers
Method
updateLightClientIfNeededTo
(ctx context.Context, height *int64)
light/rpc/client.go:597
↓ 11 callers
Function
withBlockHash
Convenience: Return new vote with different blockHash
types/vote_set_test.go:548
↓ 10 callers
Method
ABCIQuery
(ctx context.Context, path string, data bytes.HexBytes)
rpc/client/interface.go:65
↓ 10 callers
Method
AddConn
(net.IP)
internal/p2p/conn_tracker.go:11
↓ 10 callers
Method
AddEvidence
AddEvidence checks the evidence is valid and adds it to the pool.
internal/evidence/pool.go:145
↓ 10 callers
Method
AddressString
IDAddressString returns id@hostPort. It strips the leading protocol from protocolHostPort if it exists.
types/node_id.go:33
↓ 10 callers
Function
BlockIDFromProto
FromProto sets a protobuf BlockID to the given pointer. It returns an error if the block id is invalid.
types/block.go:1244
↓ 10 callers
Method
ByteSize
()
types/part_set.go:252
↓ 10 callers
Method
Cleanup
(func())
rpc/client/mocks/client.go:806
↓ 10 callers
Method
Errored
Errored reports a peer error, causing the peer to be evicted if it's currently connected. FIXME: This should probably be replaced with a peer behavio
internal/p2p/peermanager.go:933
↓ 10 callers
Function
Fail
indexes Fail calls
internal/libs/fail/fail.go:28
↓ 10 callers
Function
GenFilePV
GenFilePV generates a new validator with randomly generated private key and sets the filePaths, but does not call Save().
privval/file.go:177
↓ 10 callers
Method
GetSelectionWithBias
Send a selection of addresses with bias
internal/p2p/pex/addrbook.go:75
↓ 10 callers
Method
ID
()
internal/p2p/mock/peer.go:55
↓ 10 callers
Method
LoadBlockCommit
(height int64)
internal/evidence/services.go:11
↓ 10 callers
Function
MakeHeader
MakeHeader fills the rest of the contents of the header such that it passes validate basic
internal/test/factory/block.go:51
↓ 10 callers
Method
Marshal
()
proto/tendermint/statesync/types.pb.go:677
↓ 10 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
proto/tendermint/types/evidence.pb.go:375
↓ 10 callers
Method
MaxPeerHeight
MaxPeerHeight returns the highest reported height.
internal/blocksync/v0/pool.go:294
↓ 10 callers
Function
NewCMap
()
libs/cmap/cmap.go:13
↓ 10 callers
Function
NewEventSink
(store dbm.DB)
internal/state/indexer/sink/kv/kv.go:26
↓ 10 callers
Method
Next
()
test/e2e/pkg/testnet.go:556
↓ 10 callers
Method
NodeKeyFile
NodeKeyFile returns the full path to the node_key.json file
config/config.go:283
↓ 10 callers
Method
Ping
(ctx context.Context, in *RequestPing, opts ...grpc.CallOption)
rpc/grpc/types.pb.go:243
↓ 10 callers
Method
RandomNode
RandomNode returns a random node.
internal/p2p/p2ptest/network.go:166
↓ 10 callers
Method
ReceiveMessage
ReceiveMessage returns the next message received on the connection, blocking until one is available. Returns io.EOF if closed.
internal/p2p/transport.go:92
↓ 10 callers
Function
RequireReceive
RequireReceive requires that the given envelope is received on the channel.
internal/p2p/p2ptest/require.go:26
↓ 10 callers
Method
SaveLightBlock
SaveSignedHeaderAndValidatorSet saves a SignedHeader (h: sh.Height) and a ValidatorSet (h: sh.Height). height must be > 0.
light/store/store.go:11
↓ 10 callers
Method
Score
Score calculates a score for the peer. Higher-scored peers will be preferred over lower scores.
internal/p2p/peermanager.go:1576
↓ 10 callers
Method
Size
Safe for concurrent use by multiple goroutines.
internal/mempool/v0/clist_mempool.go:144
↓ 10 callers
Function
Unmarshal
Unmarshal unmarshals JSON into the given value, using Amino-compatible JSON encoding (strings for 64-bit numbers, and type wrappers for registered typ
libs/json/decoder.go:13
↓ 10 callers
Method
Unmarshal
(dAtA []byte)
proto/tendermint/privval/types.pb.go:2528
↓ 10 callers
Method
Unmarshal
(dAtA []byte)
proto/tendermint/consensus/types.pb.go:2828
↓ 10 callers
Function
VerifyLightClientAttack
VerifyLightClientAttack verifies LightClientAttackEvidence against the state of the full node. This involves the following checks: - the common header
internal/evidence/verify.go:159
↓ 10 callers
Function
checkTxs
(t *testing.T, mp mempool.Mempool, count int, peerID uint16)
internal/mempool/v0/clist_mempool_test.go:78
↓ 10 callers
Function
createReactor
(t *testing.T, conf *ReactorConfig)
internal/p2p/pex/pex_reactor_test.go:620
↓ 10 callers
Method
done
Finished returns true when the block queue has has all light blocks retrieved, verified and stored. There is no more work left to be done
internal/statesync/block_queue.go:138
↓ 10 callers
Function
encodeVarintPex
(dAtA []byte, offset int, v uint64)
proto/tendermint/p2p/pex.pb.go:751
↓ 10 callers
Function
encodeVarintTypes
(dAtA []byte, offset int, v uint64)
proto/tendermint/blocksync/types.pb.go:697
↓ 10 callers
Method
enterNewRound
----------------------------------------------------------------------------- State functions Used internally by handleTimeout and handleMsg to make s
internal/consensus/state.go:1040
↓ 10 callers
Method
fail
(err error)
libs/pubsub/query/syntax/scanner.go:293
↓ 10 callers
Function
getSignerTestCases
(t *testing.T)
privval/signer_client_test.go:28
↓ 10 callers
Method
isConnected
(peerID types.NodeID)
internal/p2p/peermanager.go:443
↓ 10 callers
Function
makeIndexedEvent
makeIndexedEvent constructs an event from the specified composite key and value. If the key has the form "type.name", the event will have a single att
internal/state/indexer/sink/psql/psql.go:135
↓ 10 callers
Function
makeTestCommit
make a Commit with a single vote containing just the height and a timestamp
internal/store/store_test.go:31
↓ 10 callers
Function
printResponse
--------------------------------------------------------------------------------
abci/cmd/abci-cli/abci-cli.go:612
↓ 10 callers
Method
removePeer
(peerID types.NodeID)
internal/blocksync/v2/scheduler.go:240
↓ 10 callers
Function
requireConnect
(t testing.TB, addr string, retries int)
internal/inspect/inspect_test.go:573
↓ 10 callers
Function
skipTypes
(dAtA []byte)
proto/tendermint/consensus/types.pb.go:3372
↓ 10 callers
Function
testNode
testNode runs tests for testnet nodes. The callback function is given a single stateful node to test, running as a subtest in parallel with other subt
test/e2e/tests/e2e_test.go:41
↓ 10 callers
Function
toABCI
(s *snapshot)
internal/statesync/syncer_test.go:717
↓ 9 callers
Method
AddPart
(part *Part)
types/part_set.go:266
↓ 9 callers
Method
AddPeer
AddPeer is called by the switch after the peer is added and successfully started. Use it to start goroutines communicating with the peer.
internal/p2p/base_reactor.go:35
↓ 9 callers
Method
BroadcastEvidence
(context.Context, types.Evidence)
rpc/client/interface.go:157
↓ 9 callers
Method
BroadcastTxSync
(context.Context, types.Tx)
rpc/client/interface.go:72
↓ 9 callers
Method
Close
Close gracefully closes the Closer. A caller should only call Close once, but it is safe to call it successive times.
internal/libs/sync/closer.go:27
↓ 9 callers
Function
DefaultP2PConfig
DefaultP2PConfig returns a default configuration for the peer-to-peer layer
config/config.go:771
← previous
next →
401–500 of 9,600, ranked by callers