Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeAI-Artist/Linkis
/ functions
Functions
9,565 in github.com/DeAI-Artist/Linkis
⨍
Functions
9,565
◇
Types & classes
1,236
↓ 36 callers
Method
Data
Data returns an original data published.
libs/pubsub/subscription.go:84
↓ 36 callers
Function
NewMockPV
()
types/priv_validator.go:56
↓ 36 callers
Method
Next
Nonblocking, may return nil if at the end.
libs/clist/clist.go:114
↓ 36 callers
Method
Update
Update informs the mempool that the given txs were committed and can be discarded. NOTE: 1. This should be called *after* block is committed by conse
mempool/mempool.go:65
↓ 36 callers
Method
ValidatorUpdates
XXX: panics on nil or unknown pubkey type
types/protobuf.go:92
↓ 36 callers
Function
newValidator
(address []byte, power int64)
types/validator_set_test.go:365
↓ 35 callers
Method
TwoThirdsMajority
If there was a +2/3 majority for blockID, return blockID and true. Else, return the empty BlockID{} and false.
types/vote_set.go:449
↓ 34 callers
Method
Size
()
types/vote_set.go:685
↓ 34 callers
Function
cleanup
(cfg TestHarnessConfig)
tools/tm-signer-harness/internal/test_harness_test.go:182
↓ 33 callers
Method
Equals
(PubKey)
crypto/crypto.go:26
↓ 33 callers
Function
Logger
Logger option can be used to set a logger for the client.
light/client.go:92
↓ 33 callers
Method
Next
Next returns the next chunk from the queue, or errDone if all chunks have been returned. It blocks until the chunk is available. Concurrent Next() cal
statesync/chunks.go:226
↓ 33 callers
Function
newTestScheduler
(params scTestParams)
blockchain/v2/scheduler_test.go:43
↓ 32 callers
Method
Addr
Addr returns the NetAddress for the rejected Peer.
p2p/errors.go:31
↓ 32 callers
Function
MustParse
MustParse turns the given string into a query or panics; for tests or others cases where you know the string is valid.
libs/pubsub/query/query.go:51
↓ 32 callers
Function
NewCommit
NewCommit returns a new Commit.
types/block.go:755
↓ 32 callers
Method
Prevotes
(round int32)
consensus/types/height_vote_set.go:139
↓ 32 callers
Method
Size
()
p2p/pex/addrbook.go:78
↓ 32 callers
Method
ToProto
()
crypto/merkle/proof.go:119
↓ 32 callers
Method
Unmarshal
(dAtA []byte)
rpc/grpc/types.pb.go:535
↓ 32 callers
Function
ensurePrecommit
(voteCh <-chan tmpubsub.Message, height int64, round int32)
consensus/common_test.go:651
↓ 31 callers
Method
AddAddress
Add and remove an address
p2p/pex/addrbook.go:48
↓ 31 callers
Method
Consensus
Consensus connection
proxy/multi_app_conn.go:27
↓ 31 callers
Method
NewReader
NewReader returns a new group reader. CONTRACT: Caller must close the returned GroupReader.
libs/autofile/group.go:331
↓ 31 callers
Method
Stop
Stop the service. If it's already stopped, will return an error. OnStop must never error.
libs/service/service.go:34
↓ 31 callers
Function
randState
(nValidators int)
consensus/common_test.go:461
↓ 30 callers
Method
AddListenerForEvent
(listenerID, event string, cb EventCallback)
libs/events/events.go:49
↓ 30 callers
Method
Height
hash of the evidence
types/evidence.go:26
↓ 30 callers
Method
Int
()
libs/rand/random.go:212
↓ 30 callers
Function
SendEnvelopeShim
EnvelopeSendShim implements a shim to allow the legacy peer type that does not implement SendEnvelope to be used in places where envelopes are being s
p2p/peer.go:66
↓ 30 callers
Method
Sub
Sub subtracts the two bit-arrays bitwise, without carrying the bits. Note that carryless subtraction of a - b is (a and not b). The output is the same
libs/bits/bit_array.go:182
↓ 30 callers
Function
ensureNewProposal
(proposalCh <-chan tmpubsub.Message, height int64, round int32)
consensus/common_test.go:565
↓ 30 callers
Function
ensureNewTimeout
(timeoutCh <-chan tmpubsub.Message, height int64, round int32, timeout int64)
consensus/common_test.go:559
↓ 30 callers
Method
queueRequest
----------------------------------------
abci/client/socket_client.go:422
↓ 29 callers
Method
ChainID
()
light/rpc/client.go:33
↓ 29 callers
Method
Precommits
(round int32)
consensus/types/height_vote_set.go:145
↓ 29 callers
Method
Size
()
state/services.go:21
↓ 29 callers
Method
SizeBytes
SizeBytes returns the total size of all txs in the mempool.
mempool/mempool.go:98
↓ 29 callers
Method
Start
Start the service. If it's already started or stopped, will return an error. If OnStart() returns an error, it's returned by Start()
libs/service/service.go:28
↓ 29 callers
Function
startTestRound
------------------------------------------------------------------------------- Functions for transitioning the consensus state
consensus/common_test.go:196
↓ 28 callers
Method
Has
(net.Conn)
p2p/conn_set.go:11
↓ 28 callers
Method
LightBlock
LightBlock returns the LightBlock that corresponds to the given height. height must be > 0. If LightBlock is not found, ErrLightBlockNotFound is ret
light/store/store.go:25
↓ 28 callers
Method
VerifyLightBlockAtHeight
VerifyLightBlockAtHeight fetches the light block at the given height and verifies it. It returns the block immediately if it exists in the trustedStor
light/client.go:474
↓ 28 callers
Function
bz
(s string)
crypto/merkle/proof_test.go:136
↓ 28 callers
Function
makeParams
( blockBytes, blockGas int64, blockTimeIotaMs int64, evidenceAge int64, maxEvidenceBytes int64, pubkeyTyp
types/params_test.go:54
↓ 28 callers
Function
signAddVote
(privVal PrivValidator, vote *Vote, voteSet *VoteSet)
types/test_util.go:40
↓ 27 callers
Method
Err
()
types/event_bus.go:27
↓ 27 callers
Method
Listen
(NetAddress)
p2p/transport.go:79
↓ 27 callers
Function
NewNopLogger
NewNopLogger returns a logger that doesn't do anything.
libs/log/nop_logger.go:9
↓ 27 callers
Method
RemoteAddr
remote IP of the connection
p2p/peer.go:29
↓ 27 callers
Method
Reset
Reset the service. Panics by default - must be overwritten to enable reset.
libs/service/service.go:39
↓ 27 callers
Method
SignProposal
(chainID string, proposal *tmproto.Proposal)
types/priv_validator.go:19
↓ 27 callers
Function
sStartFSMEv
()
blockchain/v1/reactor_fsm_test.go:73
↓ 27 callers
Function
sovTypes
(x uint64)
proto/tendermint/state/types.pb.go:1037
↓ 26 callers
Method
Cleanup
(func())
proxy/mocks/app_conn_query.go:101
↓ 26 callers
Method
IncrementProposerPriority
IncrementProposerPriority increments ProposerPriority of each validator and updates the proposer. Panics if validator set is empty. `times` must be po
types/validator_set.go:116
↓ 26 callers
Function
NewAppConns
NewAppConns calls NewMultiAppConn.
proxy/multi_app_conn.go:35
↓ 26 callers
Function
NewTMLogger
NewTMLogger returns a logger that encodes msg and keyvals to the Writer using go-kit's log as an underlying logger and our custom formatter. Note that
libs/log/tm_logger.go:27
↓ 26 callers
Function
NewValidator
NewValidator returns a new validator with the given pubkey and voting power.
types/validator.go:27
↓ 26 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
p2p/switch.go:367
↓ 26 callers
Method
VerifySignature
(msg []byte, sig []byte)
crypto/crypto.go:25
↓ 26 callers
Function
validatePrevote
(t *testing.T, cs *State, round int32, privVal *validatorStub, blockHash []byte)
consensus/common_test.go:247
↓ 25 callers
Method
Cleanup
(func())
light/rpc/mocks/light_client.go:105
↓ 25 callers
Method
Delete
(key string)
libs/cmap/cmap.go:39
↓ 25 callers
Function
MakeBlock
MakeBlock returns a new block with an empty header, except what can be computed from itself. It populates the same set of fields validated by Validate
types/test_util.go:87
↓ 25 callers
Function
NewAddrBook
NewAddrBook creates a new address book. Use Start to begin processing asynchronous address updates.
p2p/pex/addrbook.go:120
↓ 25 callers
Method
PrivValidatorStateFile
PrivValidatorFile returns the full path to the priv_validator_state.json file
config/config.go:276
↓ 25 callers
Method
Sign
(msg []byte)
crypto/crypto.go:32
↓ 25 callers
Method
Stop
()
p2p/conn/connection_test.go:622
↓ 25 callers
Function
TrySendEnvelopeShim
EnvelopeTrySendShim implements a shim to allow the legacy peer type that does not implement TrySendEnvelope to be used in places where envelopes are b
p2p/peer.go:88
↓ 25 callers
Function
encodeVarintTypes
(dAtA []byte, offset int, v uint64)
proto/tendermint/state/types.pb.go:889
↓ 25 callers
Function
incrementRound
(vss ...*validatorStub)
consensus/common_test.go:157
↓ 25 callers
Function
sBlockRespEv
(current, expected string, peerID p2p.ID, height int64, prevBlocks []int64)
blockchain/v1/reactor_fsm_test.go:137
↓ 25 callers
Function
validatePrecommit
( t *testing.T, cs *State, thisRound, lockRound int32, privVal *validatorStub, votedBlockHash, lockedBl
consensus/common_test.go:281
↓ 25 callers
Function
withValidator
Convenience: Return new vote with different validator address/index
types/vote_set_test.go:490
↓ 24 callers
Method
IsZero
IsZero returns true if this is the BlockID of a nil block.
types/block.go:1199
↓ 24 callers
Method
LoadBlockMeta
(height int64)
evidence/services.go:10
↓ 24 callers
Function
NewMockDuplicateVoteEvidenceWithValidator
assumes voting power to be 10 and validator to be the only one in the set
types/evidence.go:563
↓ 24 callers
Function
Now
Now returns the current time in UTC with no monotonic component.
types/time/time.go:9
↓ 24 callers
Method
RoundStateEvent
RoundStateEvent returns the H/R/S of the RoundState as an event.
consensus/types/round_state.go:165
↓ 24 callers
Method
WriteMsg
(proto.Message)
libs/protoio/io.go:40
↓ 23 callers
Method
AddSnapshot
AddSnapshot adds a snapshot to the snapshot pool. It returns true if a new, previously unseen snapshot was accepted and added.
statesync/syncer.go:113
↓ 23 callers
Method
FlushAndSync
()
consensus/wal.go:61
↓ 23 callers
Method
Front
()
libs/clist/clist.go:260
↓ 23 callers
Method
GenesisFile
GenesisFile returns the full path to the genesis.json file
config/config.go:266
↓ 23 callers
Method
HashesTo
HashesTo is a convenience function that checks if a block hashes to the given argument. Returns false if the block is nil or the hash is empty.
types/block.go:160
↓ 23 callers
Function
NewBlockStore
NewBlockStore returns a new BlockStore with the given DB, initialized to the last height that was committed to the DB.
store/store.go:48
↓ 23 callers
Function
NewNetAddressString
NewNetAddressString returns a new NetAddress using the provided address in the form of "ID@IP:Port". Also resolves the host if host is not an IP. Erro
p2p/netaddress.go:70
↓ 23 callers
Method
PrivValidatorKeyFile
PrivValidatorKeyFile returns the full path to the priv_validator_key.json file
config/config.go:271
↓ 23 callers
Function
PubKeyToID
PubKeyToID returns the ID corresponding to the given PubKey. It's the hex-encoding of the pubKey.Address().
p2p/key.go:44
↓ 23 callers
Method
Read
Read reads up to len(p) bytes into p without exceeding the current transfer rate limit. It returns (0, nil) immediately if r is non-blocking and no ne
libs/flowrate/io.go:44
↓ 23 callers
Method
SetIndex
SetIndex sets the bit at index i within the bit array. The behavior is undefined if i >= bA.Bits
libs/bits/bit_array.go:62
↓ 23 callers
Method
SetLogger
reset the timer
consensus/ticker.go:23
↓ 23 callers
Method
ToProto
ToProto converts Proposal to protobuf
types/proposal.go:121
↓ 23 callers
Method
ToValidators
GenSecpPrivKeys produces an array of secp256k1 private keys to generate commits. func GenSecpPrivKeys(n int) privKeys { res := make(privKeys, n) for
light/helpers_test.go:67
↓ 23 callers
Method
Uint32
()
proto/tendermint/types/params.pb.go:881
↓ 23 callers
Function
sovTypes
(x uint64)
proto/tendermint/privval/types.pb.go:1507
↓ 23 callers
Function
testValSet
(nVals int, power int64)
types/validator_set_test.go:946
↓ 22 callers
Method
Dial
Dial connects to the Peer for the address.
p2p/transport.go:69
↓ 22 callers
Function
GetClients
GetClients returns a slice of clients for table-driven tests
rpc/client/rpc_test.go:60
← previous
next →
101–200 of 9,565, ranked by callers