Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DNAProject/DNA
/ functions
Functions
3,494 in github.com/DNAProject/DNA
⨍
Functions
3,494
◇
Types & classes
552
↓ 2 callers
Method
genBlockMerkleTreeKey
()
core/store/ledgerstore/state_store.go:383
↓ 2 callers
Function
genConsensusPayload
(cfg *config.VBFTConfig, txhash common.Uint256, height uint32)
consensus/vbft/config/genesis.go:69
↓ 2 callers
Function
genEventNotifyByBlockKey
(height uint32)
core/store/ledgerstore/event_store.go:182
↓ 2 callers
Function
genEventNotifyByTxKey
(txHash common.Uint256)
core/store/ledgerstore/event_store.go:189
↓ 2 callers
Function
genRandKeyVal
()
smartcontract/storage/cachedb_test.go:32
↓ 2 callers
Method
genStateMerkleRootKey
(height uint32)
core/store/ledgerstore/state_store.go:391
↓ 2 callers
Method
genStateMerkleTreeKey
()
core/store/ledgerstore/state_store.go:387
↓ 2 callers
Method
get
(prefix common.DataEntryPrefix, key []byte)
smartcontract/storage/cachedb.go:124
↓ 2 callers
Method
getActivePeerCount
()
consensus/vbft/peer_pool.go:108
↓ 2 callers
Function
getAttrKeys
(attr []attribute)
smartcontract/service/native/did/attribute.go:202
↓ 2 callers
Method
getBlockHashKey
(height uint32)
core/store/ledgerstore/block_store.go:487
↓ 2 callers
Method
getBookkeeperKey
()
core/store/ledgerstore/state_store.go:352
↓ 2 callers
Function
getController
(srvc *native.NativeService, encId []byte)
smartcontract/service/native/did/controller.go:309
↓ 2 callers
Method
getCurrentBlockKey
()
core/store/ledgerstore/state_store.go:348
↓ 2 callers
Method
getCurrentBlockKey
()
core/store/ledgerstore/block_store.go:494
↓ 2 callers
Method
getCurrentBlockKey
()
core/store/ledgerstore/event_store.go:178
↓ 2 callers
Method
getEventTimeout
(evtType TimerEventType)
consensus/vbft/event_timer.go:157
↓ 2 callers
Method
getExecWriteSet
(blkNum uint32)
consensus/vbft/block_pool.go:791
↓ 2 callers
Function
getGasPriceConfig
getGasPriceConfig returns the bigger one between global and cmd configured
txnpool/proc/txnpool_server.go:140
↓ 2 callers
Method
getHeaderCache
(blockHash common.Uint256)
core/store/ledgerstore/ledger_store.go:407
↓ 2 callers
Method
getMerkleTree
(key []byte)
core/store/ledgerstore/state_store.go:147
↓ 2 callers
Method
getNextAccountIndex
()
cmd/sigsvr/store/wallet_store.go:320
↓ 2 callers
Method
getNode
getNode returns the peer with the id
p2pserver/p2pserver.go:376
↓ 2 callers
Method
getNodeWithMinFailedTimes
(flightInfo *SyncFlightInfo, curBlockHeight uint32)
p2pserver/block_sync.go:890
↓ 2 callers
Function
getOngBalance
(native *native.NativeService, address common.Address)
smartcontract/service/native/governance/utils.go:181
↓ 2 callers
Method
getP2pId
(peerIdx uint32)
consensus/vbft/peer_pool.go:287
↓ 2 callers
Method
getParams
get request params
http/restful/restful/server.go:208
↓ 2 callers
Function
getParticipantSelectionSeed
(block *Block)
consensus/vbft/utils.go:80
↓ 2 callers
Method
getPath
(url string)
http/restful/restful/server.go:169
↓ 2 callers
Function
getPenaltyStake
(native *native.NativeService, contract common.Address, peerPubkey string)
smartcontract/service/native/governance/utils.go:544
↓ 2 callers
Function
getPreConfig
(native *native.NativeService, contract common.Address)
smartcontract/service/native/governance/utils.go:404
↓ 2 callers
Method
getProposerRank
(blockNum uint32, peerIdx uint32)
consensus/vbft/node_utils.go:100
↓ 2 callers
Method
getState
()
consensus/vbft/state_mgmt.go:105
↓ 2 callers
Function
getStoredHashNum
(tree_size uint32)
merkle/file_hash_store.go:71
↓ 2 callers
Function
getSubTreeSize
1 based n
merkle/merkle_tree.go:199
↓ 2 callers
Function
getTotalStake
(native *native.NativeService, contract common.Address, address common.Address)
smartcontract/service/native/governance/utils.go:579
↓ 2 callers
Method
getVersionKey
()
core/store/ledgerstore/block_store.go:502
↓ 2 callers
Method
handleBlockPersistCompleted
(block *types.Block)
consensus/vbft/service.go:208
↓ 2 callers
Function
hasAlreadySig
(data []byte, pk keypair.PublicKey, sigDatas [][]byte)
cmd/utils/gas.go:379
↓ 2 callers
Function
hashData
(data []byte)
consensus/vbft/utils.go:56
↓ 2 callers
Method
heartbeat
()
consensus/vbft/node_utils.go:372
↓ 2 callers
Function
initTestPeer
()
p2pserver/peer/peer_test.go:29
↓ 2 callers
Function
initVbftBlock
(block *types.Block, prevMerkleRoot common.Uint256)
consensus/vbft/types.go:141
↓ 2 callers
Method
isContractExist
(contractAddress common.Address)
smartcontract/service/wasmvm/contract.go:221
↓ 2 callers
Function
isContractParamValid
(engine *vm.Executor)
smartcontract/service/neovm/contract.go:147
↓ 2 callers
Method
loadRawHeader
(blockHash common.Uint256)
core/store/ledgerstore/block_store.go:239
↓ 2 callers
Function
makeBlock
(acc *account.Account, txs []*types.Transaction)
wasmtest/wasm-test.go:419
↓ 2 callers
Method
makeSealed
(proposal *blockProposalMsg, forEmpty bool)
consensus/vbft/service.go:2255
↓ 2 callers
Function
makeTransfer
(native *native.NativeService, from, to common.Address, value uint64)
smartcontract/service/native/testsuite/gas_suite_test.go:50
↓ 2 callers
Method
newBlockEndorsement
add endorsement msg to CandidateInfo
consensus/vbft/block_pool.go:297
↓ 2 callers
Function
newBlockPool
(server *Server, historyLen uint32, store *ChainStore)
consensus/vbft/block_pool.go:80
↓ 2 callers
Function
newParamContract
()
core/genesis/genesis.go:135
↓ 2 callers
Function
newParamInit
()
core/genesis/genesis.go:223
↓ 2 callers
Function
newStateMgr
(server *Server)
consensus/vbft/state_mgmt.go:95
↓ 2 callers
Function
newSyncer
(server *Server)
consensus/vbft/node_sync.go:86
↓ 2 callers
Function
newTestChainStore
(t *testing.T)
consensus/vbft/chain_store_test.go:74
↓ 2 callers
Function
newUtilityToken
()
core/genesis/genesis.go:122
↓ 2 callers
Function
normalQuit
(native *native.NativeService, contract common.Address, peerPoolItem *PeerPoolItem)
smartcontract/service/native/governance/method.go:272
↓ 2 callers
Method
onLiveTick
(evt *StateEvent)
consensus/vbft/state_mgmt.go:281
↓ 2 callers
Method
onPeerDisconnected
(peerIdx uint32)
consensus/vbft/state_mgmt.go:265
↓ 2 callers
Method
onPeerUpdate
(peerState *PeerState)
consensus/vbft/state_mgmt.go:182
↓ 2 callers
Function
parseNotify
input byte array should be the following format evt\0(4byte) + type(1byte) + usize( bytearray or list) (4 bytes) + data...
vm/crossvm_codec/notify_codec.go:69
↓ 2 callers
Function
parseRawParamValue
(pType string, pValue string)
cmd/utils/params.go:175
↓ 2 callers
Method
peerHandshake
(peerIdx uint32, msg *peerHandshakeMsg)
consensus/vbft/peer_pool.go:174
↓ 2 callers
Method
peerHeartbeat
(peerIdx uint32, msg *peerHeartbeatMsg)
consensus/vbft/peer_pool.go:188
↓ 2 callers
Method
pingTo
pings send pkgs to get pong msg from others
p2pserver/p2pserver.go:517
↓ 2 callers
Function
preExecCheck
preExecCheck checks whether preExec pass
txnpool/proc/txnpool_actor.go:77
↓ 2 callers
Function
pubKeysEqual
(pks1, pks2 []keypair.PublicKey)
cmd/utils/gas.go:389
↓ 2 callers
Function
pushEvent
(contractAddrs map[string]bool, txHash string, errcode int64, action string, result interface{})
http/websocket/server.go:94
↓ 2 callers
Method
put
(prefix common.DataEntryPrefix, key []byte, value []byte)
smartcontract/storage/cachedb.go:84
↓ 2 callers
Function
putDelegateStatus
(native *native.NativeService, contractAddr common.Address, DID []byte, status *Status)
smartcontract/service/native/auth/utils.go:164
↓ 2 callers
Function
putGlobalParam
(native *native.NativeService, contract common.Address, globalParam *GlobalParam)
smartcontract/service/native/governance/utils.go:262
↓ 2 callers
Function
putGovernanceView
(native *native.NativeService, contract common.Address, governanceView *GovernanceView)
smartcontract/service/native/governance/utils.go:101
↓ 2 callers
Function
putPromisePos
(native *native.NativeService, contract common.Address, promisePos *PromisePos)
smartcontract/service/native/governance/utils.go:729
↓ 2 callers
Function
putRecovery
(srvc *native.NativeService, encID, data []byte)
smartcontract/service/native/did/recovery.go:214
↓ 2 callers
Function
putSplitCurve
(native *native.NativeService, contract common.Address, splitCurve *SplitCurve)
smartcontract/service/native/governance/utils.go:626
↓ 2 callers
Function
putSplitFee
(native *native.NativeService, contract common.Address, splitFee uint64)
smartcontract/service/native/governance/utils.go:475
↓ 2 callers
Function
putSplitFeeAddress
(native *native.NativeService, contract common.Address, address common.Address, splitFeeAddress *SplitFeeAddre
smartcontract/service/native/governance/utils.go:502
↓ 2 callers
Function
putTotalStake
(native *native.NativeService, contract common.Address, totalStake *TotalStake)
smartcontract/service/native/governance/utils.go:600
↓ 2 callers
Method
reencrypt
(passwords [][]byte, param *keypair.ScryptParam)
account/file_store.go:184
↓ 2 callers
Function
regIdWithController
(srvc *native.NativeService)
smartcontract/service/native/did/controller.go:34
↓ 2 callers
Function
registerCandidate
(native *native.NativeService, flag string)
smartcontract/service/native/governance/method.go:37
↓ 2 callers
Method
response
response
http/restful/restful/server.go:315
↓ 2 callers
Function
revokeByCtrl
(n *native.NativeService, id string, s []Signer, addr []common.Address)
smartcontract/service/native/did/controller_test.go:426
↓ 2 callers
Function
revokePkByIndex
(srvc *native.NativeService, encID []byte, index uint32)
smartcontract/service/native/did/owner.go:165
↓ 2 callers
Method
saveBlockToEventStore
(block *types.Block)
core/store/ledgerstore/ledger_store.go:741
↓ 2 callers
Method
saveBlockToStateStore
(block *types.Block, result store.ExecuteResult)
core/store/ledgerstore/ledger_store.go:705
↓ 2 callers
Method
sendReq2StatefulV
sendReq2StatefulV sends a check request to the stateful validator
txnpool/proc/txnpool_worker.go:250
↓ 2 callers
Method
sendReq2Validator
sendReq2Validator sends a check request to the validators
txnpool/proc/txnpool_worker.go:231
↓ 2 callers
Method
setHeaderIndex
(height uint32, blockHash common.Uint256)
core/store/ledgerstore/ledger_store.go:326
↓ 2 callers
Method
setHeight
setHeight set current block height
txnpool/proc/txnpool_server.go:243
↓ 2 callers
Function
setOldRecovery
deprecated retain for conpatibility
smartcontract/service/native/did/recovery.go:345
↓ 2 callers
Method
setPendingTx
setPendingTx adds a transaction to the pending list, if the transaction is already in the pending list, just return false.
txnpool/proc/txnpool_server.go:302
↓ 2 callers
Function
splitCurve
(native *native.NativeService, contract common.Address, pos uint64, avg uint64, yita uint64)
smartcontract/service/native/governance/utils.go:193
↓ 2 callers
Function
splitNodeFee
(native *native.NativeService, contract common.Address, peerPubkey string, peerAddress common.Address, preIfCo
smartcontract/service/native/governance/method.go:1337
↓ 2 callers
Method
start
Start is the main event loop.
txnpool/proc/txnpool_worker.go:302
↓ 2 callers
Method
startNewProposal
(blkNum uint32)
consensus/vbft/service.go:746
↓ 2 callers
Method
stop
stop closes/releases channels and stops timer
txnpool/proc/txnpool_worker.go:334
↓ 2 callers
Function
stopAllTimers
(timers map[uint32]*time.Timer)
consensus/vbft/event_timer.go:104
↓ 2 callers
Method
stopTxTicker
(blockNum uint32)
consensus/vbft/event_timer.go:392
← previous
next →
1,101–1,200 of 3,494, ranked by callers