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
↓ 11 callers
Method
GetByIndex
(index int)
crypto/merkle/types.go:15
↓ 11 callers
Function
GetMinersForServiceType
GetMinersForServiceType retrieves the list of miners for a given service type from the database.
abci/example/kvstore/database.go:93
↓ 11 callers
Method
GetPubKey
Implements PrivValidator.
types/priv_validator.go:68
↓ 11 callers
Method
HasHeader
(header PartSetHeader)
types/part_set.go:218
↓ 11 callers
Function
HashFromByteSlices
HashFromByteSlices computes a Merkle tree where the leaves are the byte slice, in the provided order. It follows RFC-6962.
crypto/merkle/tree.go:9
↓ 11 callers
Method
InitPeer
InitPeer is called by the switch before the peer is started. Use it to initialize data for the peer (e.g. peer state). NOTE: The switch won't call Ad
p2p/base_reactor.go:31
↓ 11 callers
Method
Int64
()
libs/rand/random.go:208
↓ 11 callers
Function
LoadOrGenNodeKey
LoadOrGenNodeKey attempts to load the NodeKey from the given filePath. If the file does not exist, it generates and saves a new NodeKey.
p2p/key.go:50
↓ 11 callers
Function
LoadServiceRequests
(db db.DB)
abci/example/kvstore/database.go:448
↓ 11 callers
Function
New
Return CList with MaxLength. CList will panic if it goes beyond MaxLength.
libs/clist/clist.go:243
↓ 11 callers
Function
NewPersistentKVStoreApplication
(dbDir string)
abci/example/kvstore/persistent_kvstore.go:38
↓ 11 callers
Method
OnStop
()
libs/service/service.go:35
↓ 11 callers
Method
PendingEvidence
PendingEvidence is used primarily as part of block proposal and returns up to maxNum of uncommitted evidence.
evidence/pool.go:87
↓ 11 callers
Method
Reactor
Reactor returns the reactor with the given name. NOTE: Not goroutine safe.
p2p/switch.go:205
↓ 11 callers
Method
Receive
Receive is called by the switch when msgBytes is received from the peer. NOTE reactor can not keep msgBytes around after Receive completes without co
p2p/base_reactor.go:53
↓ 11 callers
Method
RemotePubKey
RemotePubKey returns authenticated remote pubkey
p2p/conn/secret_connection.go:183
↓ 11 callers
Method
RemovePeer
RemovePeer is called by the switch when the peer is stopped (due to error or other reason).
p2p/base_reactor.go:39
↓ 11 callers
Method
Unmarshal
(dAtA []byte)
proto/tendermint/p2p/conn.pb.go:914
↓ 11 callers
Method
UnsubscribeAll
UnsubscribeAll unsubscribes given subscriber from all the queries.
rpc/client/interface.go:130
↓ 11 callers
Method
Unwrap
Unwrap implements the p2p Wrapper interface and unwraps a wrapped PEX message.
proto/tendermint/p2p/pex.go:23
↓ 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
libs/autofile/group.go:213
↓ 11 callers
Function
abciResponses
(n int, code uint32)
mempool/v0/clist_mempool_test.go:699
↓ 11 callers
Function
createReactor
(conf *ReactorConfig)
p2p/pex/pex_reactor_test.go:666
↓ 11 callers
Function
genMockNode
( chainID string, blockSize int64, valSize int, valVariation float32, bTime time.Time)
light/helpers_test.go:230
↓ 11 callers
Method
handleMsg
state transitions on complete-proposal, 2/3-any, 2/3-one
consensus/state.go:799
↓ 11 callers
Function
makeBlockID
(hash []byte, partSetSize uint32, partSetHash []byte)
evidence/verify_test.go:573
↓ 11 callers
Function
newMultiplexTransport
newMultiplexTransport returns a tcp connected multiplexed peer using the default MConnConfig. It's a convenience function used for testing.
p2p/transport_test.go:28
↓ 11 callers
Function
sovValidator
(x uint64)
proto/tendermint/types/validator.pb.go:456
↓ 11 callers
Function
startConsensusNet
(t *testing.T, css []*State, n int)
consensus/reactor_test.go:50
↓ 11 callers
Function
timeoutWaitGroup
(t *testing.T, n int, f func(int), css []*State)
consensus/reactor_test.go:684
↓ 11 callers
Function
withBlockHash
Convenience: Return new vote with different blockHash
types/vote_set_test.go:519
↓ 10 callers
Method
AddPart
(part *Part)
types/part_set.go:266
↓ 10 callers
Method
ApplyBlock
ApplyBlock validates the block against the state, executes it against the app, fires the relevant events, commits the app, and saves the new state and
state/execution.go:131
↓ 10 callers
Method
Block
(ctx context.Context, height *int64)
rpc/client/interface.go:67
↓ 10 callers
Function
BlockFromProto
FromProto sets a protobuf Block to the given pointer. It returns an error if the block is invalid.
types/block.go:242
↓ 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:1235
↓ 10 callers
Method
Commit
(ctx context.Context, height *int64)
rpc/client/interface.go:70
↓ 10 callers
Method
Float64
()
proto/tendermint/types/params.pb.go:878
↓ 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:171
↓ 10 callers
Method
GetByIndex
(int32)
types/vote_set.go:687
↓ 10 callers
Method
GetSelectionWithBias
Send a selection of addresses with bias
p2p/pex/addrbook.go:76
↓ 10 callers
Method
ID
ID returns the peer's canonical ID - the hash of its public key.
p2p/key.go:33
↓ 10 callers
Method
ID
()
p2p/mock/peer.go:57
↓ 10 callers
Method
InitChain
Validate a tx for the mempool Consensus Connection
abci/types/application.go:21
↓ 10 callers
Method
LoadABCIResponses
LoadABCIResponses loads the abciResponse for a given height
state/store.go:64
↓ 10 callers
Method
LoadFromDBOrGenesisDoc
LoadFromDBOrGenesisDoc loads the most recent state. If the chain is new it will use the genesis doc as the current state.
state/store.go:58
↓ 10 callers
Function
LoadOrGenFilePV
LoadOrGenFilePV loads a FilePV from the given filePaths or else generates a new one and saves it to the filePaths.
privval/file.go:228
↓ 10 callers
Method
MakeCommit
-------------------------------------------------------------------------------- Commit MakeCommit constructs a Commit from the VoteSet. It only inclu
types/vote_set.go:612
↓ 10 callers
Method
Marshal
()
proto/tendermint/privval/types.pb.go:1061
↓ 10 callers
Method
Marshal
()
proto/tendermint/consensus/types.pb.go:1093
↓ 10 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
proto/tendermint/types/evidence.pb.go:375
↓ 10 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
proto/tendermint/state/types.pb.go:766
↓ 10 callers
Function
NewBpPeer
NewBpPeer creates a new peer.
blockchain/v1/peer.go:42
↓ 10 callers
Function
NewPeer
NewPeer creates and starts a new mock peer. If the ip is nil, random routable address is used.
p2p/mock/peer.go:23
↓ 10 callers
Function
NewVoteSet
Constructs a new VoteSet struct used to accumulate votes for given height/round.
types/vote_set.go:78
↓ 10 callers
Function
NewWALDecoder
NewWALDecoder returns a new decoder that reads from rd.
consensus/wal.go:360
↓ 10 callers
Method
Propose
Propose returns the amount of time to wait for a proposal
config/config.go:1002
↓ 10 callers
Method
Read
(buf []byte)
crypto/internal/benchmarking/bench.go:18
↓ 10 callers
Method
Read
CONTRACT: data smaller than dataMaxSize is read atomically.
p2p/conn/secret_connection.go:232
↓ 10 callers
Function
ReadMessage
ReadMessage reads a varint length-delimited protobuf message.
abci/types/messages.go:25
↓ 10 callers
Method
ReapMaxTxs
ReapMaxTxs reaps up to max transactions from the mempool. If max is negative, there is no cap on the size of all returned transactions (~ all availabl
mempool/mempool.go:50
↓ 10 callers
Method
Size
Safe for concurrent use by multiple goroutines.
mempool/v0/clist_mempool.go:144
↓ 10 callers
Method
State
State returns the current state of the evpool.
evidence/pool.go:253
↓ 10 callers
Method
Unmarshal
(dAtA []byte)
proto/tendermint/consensus/types.pb.go:2804
↓ 10 callers
Function
VerifyLightClientAttack
VerifyLightClientAttack verifies LightClientAttackEvidence against the state of the full node. This involves the following checks: - the common header
evidence/verify.go:113
↓ 10 callers
Function
WriteMessage
WriteMessage writes a varint length-delimited protobuf message.
abci/types/messages.go:16
↓ 10 callers
Function
checkTxs
(t *testing.T, mp mempool.Mempool, count int, peerID uint16)
mempool/v0/clist_mempool_test.go:99
↓ 10 callers
Method
createProposalBlock
Create the next block to propose and return it. Returns nil block upon error. We really only need to return the parts, but the block is returned for
consensus/state.go:1189
↓ 10 callers
Function
encodeVarintTypes
(dAtA []byte, offset int, v uint64)
proto/tendermint/blockchain/types.pb.go:698
↓ 10 callers
Method
enterNewRound
----------------------------------------------------------------------------- State functions Used internally by handleTimeout and handleMsg to make s
consensus/state.go:976
↓ 10 callers
Function
getSignerTestCases
(t *testing.T)
privval/signer_client_test.go:27
↓ 10 callers
Function
initializeValidatorState
(privVal types.PrivValidator, height int64)
evidence/pool_test.go:387
↓ 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
state/indexer/sink/psql/psql.go:130
↓ 10 callers
Function
mustEncode
mustEncode proto encodes a proto.message and panics if fails
store/store.go:497
↓ 10 callers
Function
randConsensusNet
(nValidators int, testName string, tickerFunc func() TimeoutTicker, appFunc func() abci.Application, configOp
consensus/common_test.go:716
↓ 10 callers
Method
removePeer
(peerID p2p.ID)
blockchain/v2/scheduler.go:241
↓ 10 callers
Function
skipTypes
(dAtA []byte)
proto/tendermint/privval/types.pb.go:2719
↓ 10 callers
Function
skipTypes
(dAtA []byte)
proto/tendermint/consensus/types.pb.go:3342
↓ 10 callers
Function
teardownReactor
(book AddrBook)
p2p/pex/pex_reactor_test.go:680
↓ 10 callers
Function
testNode
testNode runs tests for testnet nodes. The callback function is given a single node to test, running as a subtest in parallel with other subtests. Th
test/e2e/tests/e2e_test.go:40
↓ 10 callers
Function
toABCI
(s *snapshot)
statesync/syncer_test.go:688
↓ 9 callers
Method
Absent
Absent returns true if CommitSig is absent.
types/block.go:632
↓ 9 callers
Function
AddressHash
(bz []byte)
crypto/crypto.go:18
↓ 9 callers
Method
Base
()
test/loadtime/report/report.go:21
↓ 9 callers
Method
BlockAndPeerAtHeight
BlockAndPeerAtHeight retrieves the block and delivery peer at specified height. Returns errMissingBlock if a block was not found
blockchain/v1/pool.go:270
↓ 9 callers
Method
CheckTx
(context.Context, types.Tx)
rpc/client/interface.go:137
↓ 9 callers
Function
DialTCPFn
DialTCPFn dials the given tcp addr, using the given timeoutReadWrite and privKey for the authenticated encryption handshake.
privval/socket_dialers.go:23
↓ 9 callers
Method
Discard
Discard discards a chunk. It will be removed from the queue, available for allocation, and can be added and returned via Next() again. If the chunk is
statesync/chunks.go:147
↓ 9 callers
Method
EnableTxsAvailable
EnableTxsAvailable initializes the TxsAvailable channel, ensuring it will trigger once every height when transactions are available.
mempool/mempool.go:92
↓ 9 callers
Method
Get
TODO make it return an index
crypto/merkle/types.go:14
↓ 9 callers
Method
GetSelection
Send a selection of addresses to peers
p2p/pex/addrbook.go:74
↓ 9 callers
Method
GetSum
()
proto/tendermint/consensus/types.pb.go:703
↓ 9 callers
Method
IsComplete
IsComplete returns true if this is a valid BlockID of a non-nil block.
types/block.go:1205
↓ 9 callers
Function
IsVoteTypeValid
IsVoteTypeValid returns true if t is a valid vote type.
types/signed_msg_type.go:6
↓ 9 callers
Function
MakeSecretConnection
MakeSecretConnection performs handshake and returns a new authenticated SecretConnection. Returns nil if there is an error in handshake. Caller should
p2p/conn/secret_connection.go:92
↓ 9 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
proto/tendermint/blockchain/types.pb.go:576
↓ 9 callers
Function
MaxRetryAttempts
MaxRetryAttempts option can be used to set max attempts before replacing primary with a witness.
light/client.go:100
↓ 9 callers
Function
NewEventSwitch
()
libs/events/events.go:62
↓ 9 callers
Function
NewFilter
NewFilter wraps next and implements filtering. See the commentary on the Option functions for a detailed description of how to configure levels. If no
libs/log/filter.go:29
↓ 9 callers
Function
NewRPCFunc
NewRPCFunc wraps a function for introspection. f is the function, args are comma separated argument names
rpc/jsonrpc/server/rpc_func.go:64
← previous
next →
401–500 of 9,565, ranked by callers