MCPcopy Create free account

hub / github.com/tendermint/tendermint / functions

Functions9,600 in github.com/tendermint/tendermint

↓ 12 callersFunctioncdcEncode
cdcEncode returns nil if the input is nil, otherwise returns proto.Marshal(<type>Value{Value: item})
types/encoding_helper.go:11
↓ 12 callersMethodclose
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 callersFunctiondecideProposal
Create proposal block from cs1 but sign it with vs.
internal/consensus/common_test.go:227
↓ 12 callersFunctionfireEvents
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 callersFunctionmakeVote
( t *testing.T, val types.PrivValidator, chainID string, valIndex int32, height int64, round int32, step int
internal/evidence/verify_test.go:554
↓ 12 callersFunctionmustCheckTx
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 callersFunctionmustEncode
----------------------------------------------------------------------------- mustEncode proto encodes a proto.message and panics if fails
internal/store/store.go:649
↓ 12 callersFunctionsovPex
(x uint64)
proto/tendermint/p2p/pex.pb.go:904
↓ 12 callersFunctionsovTypes
(x uint64)
proto/tendermint/blocksync/types.pb.go:842
↓ 11 callersFunctionAddressHash
(bz []byte)
crypto/crypto.go:18
↓ 11 callersMethodAddresses
Addresses returns all known addresses for a peer, primarily for testing. The order is arbitrary.
internal/p2p/peermanager.go:1182
↓ 11 callersMethodBitArray
()
types/vote_set.go:687
↓ 11 callersMethodBlockchainInfo
(ctx context.Context, minHeight, maxHeight int64)
rpc/client/interface.go:111
↓ 11 callersMethodEncode
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 callersMethodGetPubKey
(ctx context.Context, in *PubKeyRequest, opts ...grpc.CallOption)
proto/tendermint/privval/service.pb.go:61
↓ 11 callersMethodInitChain
Validate a tx for the mempool Consensus Connection
abci/types/application.go:20
↓ 11 callersMethodIsSet
IsSet returns whether the Boolean is true.
libs/sync/atomic_bool.go:31
↓ 11 callersMethodLoadBlock
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 callersFunctionMakeNetwork
MakeNetwork creates a test network with the given number of nodes and connects them to each other.
internal/p2p/p2ptest/network.go:50
↓ 11 callersMethodMarshal
()
proto/tendermint/privval/types.pb.go:1119
↓ 11 callersMethodMarshal
()
proto/tendermint/consensus/types.pb.go:1093
↓ 11 callersFunctionNew
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 callersFunctionNewPartSetFromHeader
Returns an empty PartSet ready to be populated.
types/part_set.go:197
↓ 11 callersFunctionNewPersistentKVStoreApplication
(dbDir string)
abci/example/kvstore/persistent_kvstore.go:38
↓ 11 callersFunctionNewWALDecoder
NewWALDecoder returns a new decoder that reads from rd.
internal/consensus/wal.go:360
↓ 11 callersFunctionParallel
---------------------------------------- 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 callersMethodPendingEvidence
PendingEvidence is used primarily as part of block proposal and returns up to maxNum of uncommitted evidence.
internal/evidence/pool.go:91
↓ 11 callersFunctionProposalSignBytes
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 callersFunctionRandValidator
(randPower bool, minPower int64)
internal/test/factory/validator.go:12
↓ 11 callersMethodScores
Scores returns the peer scores for all known peers, primarily for testing.
internal/p2p/peermanager.go:1208
↓ 11 callersMethodSignProposal
(ctx context.Context, chainID string, proposal *tmproto.Proposal)
types/priv_validator.go:32
↓ 11 callersMethodStopPeerForError
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 callersMethodTrySend
(byte, []byte)
internal/p2p/peer.go:40
↓ 11 callersMethodTxsAvailable
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 callersMethodUnsubscribeAll
UnsubscribeAll unsubscribes given subscriber from all the queries.
rpc/client/interface.go:143
↓ 11 callersMethodWriteLine
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 callersFunctionabciResponses
(n int, code uint32)
internal/mempool/v0/clist_mempool_test.go:689
↓ 11 callersFunctioncheckTxs
(t *testing.T, txmp *TxMempool, numTxs int, peerID uint16)
internal/mempool/v1/mempool_test.go:110
↓ 11 callersFunctionexecCompose
execCompose runs a Docker Compose command for a testnet.
test/e2e/runner/exec.go:34
↓ 11 callersMethodhandleMsg
state transitions on complete-proposal, 2/3-any, 2/3-one
internal/consensus/state.go:864
↓ 11 callersMethodlbKey
(height int64)
light/store/db/db.go:289
↓ 11 callersFunctionskipTypes
(dAtA []byte)
proto/tendermint/privval/types.pb.go:2981
↓ 11 callersFunctionsovValidator
(x uint64)
proto/tendermint/types/validator.pb.go:456
↓ 11 callersMethodupdateLightClientIfNeededTo
(ctx context.Context, height *int64)
light/rpc/client.go:597
↓ 11 callersFunctionwithBlockHash
Convenience: Return new vote with different blockHash
types/vote_set_test.go:548
↓ 10 callersMethodABCIQuery
(ctx context.Context, path string, data bytes.HexBytes)
rpc/client/interface.go:65
↓ 10 callersMethodAddConn
(net.IP)
internal/p2p/conn_tracker.go:11
↓ 10 callersMethodAddEvidence
AddEvidence checks the evidence is valid and adds it to the pool.
internal/evidence/pool.go:145
↓ 10 callersMethodAddressString
IDAddressString returns id@hostPort. It strips the leading protocol from protocolHostPort if it exists.
types/node_id.go:33
↓ 10 callersFunctionBlockIDFromProto
FromProto sets a protobuf BlockID to the given pointer. It returns an error if the block id is invalid.
types/block.go:1244
↓ 10 callersMethodByteSize
()
types/part_set.go:252
↓ 10 callersMethodCleanup
(func())
rpc/client/mocks/client.go:806
↓ 10 callersMethodErrored
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 callersFunctionFail
indexes Fail calls
internal/libs/fail/fail.go:28
↓ 10 callersFunctionGenFilePV
GenFilePV generates a new validator with randomly generated private key and sets the filePaths, but does not call Save().
privval/file.go:177
↓ 10 callersMethodGetSelectionWithBias
Send a selection of addresses with bias
internal/p2p/pex/addrbook.go:75
↓ 10 callersMethodID
()
internal/p2p/mock/peer.go:55
↓ 10 callersMethodLoadBlockCommit
(height int64)
internal/evidence/services.go:11
↓ 10 callersFunctionMakeHeader
MakeHeader fills the rest of the contents of the header such that it passes validate basic
internal/test/factory/block.go:51
↓ 10 callersMethodMarshal
()
proto/tendermint/statesync/types.pb.go:677
↓ 10 callersMethodMarshalToSizedBuffer
(dAtA []byte)
proto/tendermint/types/evidence.pb.go:375
↓ 10 callersMethodMaxPeerHeight
MaxPeerHeight returns the highest reported height.
internal/blocksync/v0/pool.go:294
↓ 10 callersFunctionNewCMap
()
libs/cmap/cmap.go:13
↓ 10 callersFunctionNewEventSink
(store dbm.DB)
internal/state/indexer/sink/kv/kv.go:26
↓ 10 callersMethodNext
()
test/e2e/pkg/testnet.go:556
↓ 10 callersMethodNodeKeyFile
NodeKeyFile returns the full path to the node_key.json file
config/config.go:283
↓ 10 callersMethodPing
(ctx context.Context, in *RequestPing, opts ...grpc.CallOption)
rpc/grpc/types.pb.go:243
↓ 10 callersMethodRandomNode
RandomNode returns a random node.
internal/p2p/p2ptest/network.go:166
↓ 10 callersMethodReceiveMessage
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 callersFunctionRequireReceive
RequireReceive requires that the given envelope is received on the channel.
internal/p2p/p2ptest/require.go:26
↓ 10 callersMethodSaveLightBlock
SaveSignedHeaderAndValidatorSet saves a SignedHeader (h: sh.Height) and a ValidatorSet (h: sh.Height). height must be > 0.
light/store/store.go:11
↓ 10 callersMethodScore
Score calculates a score for the peer. Higher-scored peers will be preferred over lower scores.
internal/p2p/peermanager.go:1576
↓ 10 callersMethodSize
Safe for concurrent use by multiple goroutines.
internal/mempool/v0/clist_mempool.go:144
↓ 10 callersFunctionUnmarshal
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 callersMethodUnmarshal
(dAtA []byte)
proto/tendermint/privval/types.pb.go:2528
↓ 10 callersMethodUnmarshal
(dAtA []byte)
proto/tendermint/consensus/types.pb.go:2828
↓ 10 callersFunctionVerifyLightClientAttack
VerifyLightClientAttack verifies LightClientAttackEvidence against the state of the full node. This involves the following checks: - the common header
internal/evidence/verify.go:159
↓ 10 callersFunctioncheckTxs
(t *testing.T, mp mempool.Mempool, count int, peerID uint16)
internal/mempool/v0/clist_mempool_test.go:78
↓ 10 callersFunctioncreateReactor
(t *testing.T, conf *ReactorConfig)
internal/p2p/pex/pex_reactor_test.go:620
↓ 10 callersMethoddone
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 callersFunctionencodeVarintPex
(dAtA []byte, offset int, v uint64)
proto/tendermint/p2p/pex.pb.go:751
↓ 10 callersFunctionencodeVarintTypes
(dAtA []byte, offset int, v uint64)
proto/tendermint/blocksync/types.pb.go:697
↓ 10 callersMethodenterNewRound
----------------------------------------------------------------------------- State functions Used internally by handleTimeout and handleMsg to make s
internal/consensus/state.go:1040
↓ 10 callersMethodfail
(err error)
libs/pubsub/query/syntax/scanner.go:293
↓ 10 callersFunctiongetSignerTestCases
(t *testing.T)
privval/signer_client_test.go:28
↓ 10 callersMethodisConnected
(peerID types.NodeID)
internal/p2p/peermanager.go:443
↓ 10 callersFunctionmakeIndexedEvent
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 callersFunctionmakeTestCommit
make a Commit with a single vote containing just the height and a timestamp
internal/store/store_test.go:31
↓ 10 callersFunctionprintResponse
--------------------------------------------------------------------------------
abci/cmd/abci-cli/abci-cli.go:612
↓ 10 callersMethodremovePeer
(peerID types.NodeID)
internal/blocksync/v2/scheduler.go:240
↓ 10 callersFunctionrequireConnect
(t testing.TB, addr string, retries int)
internal/inspect/inspect_test.go:573
↓ 10 callersFunctionskipTypes
(dAtA []byte)
proto/tendermint/consensus/types.pb.go:3372
↓ 10 callersFunctiontestNode
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 callersFunctiontoABCI
(s *snapshot)
internal/statesync/syncer_test.go:717
↓ 9 callersMethodAddPart
(part *Part)
types/part_set.go:266
↓ 9 callersMethodAddPeer
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 callersMethodBroadcastEvidence
(context.Context, types.Evidence)
rpc/client/interface.go:157
↓ 9 callersMethodBroadcastTxSync
(context.Context, types.Tx)
rpc/client/interface.go:72
↓ 9 callersMethodClose
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 callersFunctionDefaultP2PConfig
DefaultP2PConfig returns a default configuration for the peer-to-peer layer
config/config.go:771
← previousnext →401–500 of 9,600, ranked by callers