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
SaveTransaction
SaveTransaction persist transaction to store
core/store/ledgerstore/block_store.go:355
↓ 2 callers
Method
SaveVersion
SaveVersion persist version to store
core/store/ledgerstore/block_store.go:443
↓ 2 callers
Method
Scheme
()
core/signature/signer.go:37
↓ 2 callers
Method
Send
Send tranfer buffer to peer
p2pserver/p2pserver.go:180
↓ 2 callers
Method
SendRaw
SendTo call sync link to send buffer
p2pserver/peer/peer.go:203
↓ 2 callers
Method
Serialization
(sink *common.ZeroCopySink)
core/states/storage_item.go:36
↓ 2 callers
Method
Serialization
(sink *common.ZeroCopySink)
smartcontract/service/native/gas/states.go:62
↓ 2 callers
Method
Serialize
(w io.Writer)
common/uint256.go:54
↓ 2 callers
Method
Serialize
()
consensus/vbft/msg_types.go:339
↓ 2 callers
Method
Serialize
Serialize the ChainConfig
consensus/vbft/config/config.go:95
↓ 2 callers
Function
SetBlockchainConfig
(ctx *cli.Context)
cmd/config.go:35
↓ 2 callers
Method
SetConn
set connection
p2pserver/link/link.go:101
↓ 2 callers
Method
SetDefaultAccount
Set a new account to default account
account/client.go:71
↓ 2 callers
Method
SetHttpInfoPort
SetHttpInfoPort set peer`s httpinfo port
p2pserver/peer/peer.go:305
↓ 2 callers
Method
SetID
SetID sets a peer's id
p2pserver/peer/peer.go:52
↓ 2 callers
Method
SetLabel
Set a new label to accont
account/client.go:73
↓ 2 callers
Method
SetNodeId
SetNodeId set a new node id
p2pserver/block_sync.go:173
↓ 2 callers
Function
SigMutilRawTransaction
(req *clisvrcom.CliRpcRequest, resp *clisvrcom.CliRpcResponse)
cmd/sigsvr/handlers/sig_mutil_raw_tx.go:46
↓ 2 callers
Function
Sign
Sign sign return the signature to the data of private key
cmd/utils/gas.go:416
↓ 2 callers
Method
Size
()
p2pserver/common/checksum.go:33
↓ 2 callers
Method
Start
InitListen start listening on the config port
p2pserver/net/netserver/netserver.go:129
↓ 2 callers
Method
Start
start a actor called net_server
p2pserver/actor/server/actor.go:47
↓ 2 callers
Method
StartTimer
(Idx uint32, timeout time.Duration)
consensus/vbft/event_timer.go:125
↓ 2 callers
Method
Subscribe
(topic string)
events/actor_event.go:100
↓ 2 callers
Method
Swap
(i, j int)
vm/neovm/common.go:33
↓ 2 callers
Method
Timeout
()
consensus/dbft/dbft_service.go:636
↓ 2 callers
Method
ToBEHex
to big endian hex string
common/int128.go:110
↓ 2 callers
Method
ToBigInt
()
common/int128.go:89
↓ 2 callers
Method
ToNeoBytes
()
vm/neovm/types/int_value.go:131
↓ 2 callers
Function
TransferFromTx
(gasPrice, gasLimit uint64, asset, sender, from, to string, amount uint64)
cmd/utils/gas.go:240
↓ 2 callers
Method
TreeSize
()
merkle/merkle_tree.go:68
↓ 2 callers
Function
Uint256FromHexString
(s string)
common/uint256.go:77
↓ 2 callers
Method
UnRegisterActor
UnRegisterActor cancels the actor with the actor type.
txnpool/proc/txnpool_server.go:394
↓ 2 callers
Method
VerifyBlock
(txs []*types.Transaction, height uint32)
consensus/actor/actor.go:52
↓ 2 callers
Function
VerifyTransaction
VerifyTransaction verifys received single transaction
core/validation/transaction_validator.go:40
↓ 2 callers
Method
VerifyType
()
validator/stateful/stateful_validator.go:111
↓ 2 callers
Method
VerifyType
()
validator/stateless/stateless_validator.go:92
↓ 2 callers
Method
Weight
Weight calculate node's weight for sort. Highest weight node will be accessed first for next request.
p2pserver/block_sync.go:112
↓ 2 callers
Function
WriteByte
(writer io.Writer, val byte)
common/serialization/serialize.go:297
↓ 2 callers
Method
Xmit
(msg types.Message)
p2pserver/net/protocol/server.go:66
↓ 2 callers
Method
_update
(tree_size uint32, hashes []common.Uint256)
merkle/merkle_tree.go:99
↓ 2 callers
Function
accumulateHash
(hasher hash.Hash, iter scom.StoreIterator)
core/store/ledgerstore/ledger_store.go:695
↓ 2 callers
Method
addAccountData
(accData *AccountData)
account/client.go:176
↓ 2 callers
Method
addBlockCache
(nodeID uint64, block *types.Block, merkleRoot common.Uint256)
p2pserver/block_sync.go:677
↓ 2 callers
Method
addErrorRespCnt
addErrorRespCnt incre a node's error resp count
p2pserver/block_sync.go:947
↓ 2 callers
Method
addFlightBlock
(nodeId uint64, height uint32, blockHash common.Uint256)
p2pserver/block_sync.go:799
↓ 2 callers
Method
addTimeoutCnt
addTimeoutCnt incre a node's timeout count
p2pserver/block_sync.go:939
↓ 2 callers
Function
appCallTransfer
(native *native.NativeService, contract common.Address, from common.Address, to common.Address, amount uint64)
smartcontract/service/native/governance/utils.go:134
↓ 2 callers
Function
appCallTransferFrom
(native *native.NativeService, contract common.Address, sender common.Address, from common.Address, to common.
smartcontract/service/native/governance/utils.go:167
↓ 2 callers
Function
appCallTransferFromOnt
(native *native.NativeService, sender common.Address, from common.Address, to common.Address, amount uint64)
smartcontract/service/native/governance/utils.go:151
↓ 2 callers
Function
arrayEqual
(a1, a2 []interface{})
cmd/utils/params_test.go:89
↓ 2 callers
Function
assertEqual
(t *testing.T, expect, actual types.VmValue)
vm/neovm/stack_opcode_test.go:53
↓ 2 callers
Function
authorizeForPeer
(native *native.NativeService, flag string)
smartcontract/service/native/governance/method.go:150
↓ 2 callers
Function
balanceOf
:param account: :return: the token balance of account
wasmtest/contracts-cplus/test_oep4.py:138
↓ 2 callers
Function
blackQuit
(native *native.NativeService, contract common.Address, peerPoolItem *PeerPoolItem)
smartcontract/service/native/governance/method.go:324
↓ 2 callers
Method
blockRange
()
validator/increment/increment.go:64
↓ 2 callers
Function
buildArray
(item []VmValue)
vm/neovm/types/neovm_value_test.go:44
↓ 2 callers
Method
buildParticipantConfig
call this method with metaLock locked
consensus/vbft/node_utils.go:197
↓ 2 callers
Function
bytesReverse
(u []byte)
common/bigint.go:26
↓ 2 callers
Function
calcGasByCodeLen
(codeLen int, codeGas uint64)
core/store/ledgerstore/tx_handler.go:180
↓ 2 callers
Function
calcParticipantPeers
(cfg *BlockParticipantConfig, chain *vconfig.ChainConfig)
consensus/vbft/node_utils.go:221
↓ 2 callers
Method
checkContexts
()
smartcontract/smart_contract.go:124
↓ 2 callers
Function
checkStorageContext
(service *NeoVmService, context *StorageContext)
smartcontract/service/neovm/storage.go:121
↓ 2 callers
Method
checkTx
checkTx checks whether a transaction is in the pending list or the transacton pool
txnpool/proc/txnpool_server.go:598
↓ 2 callers
Method
checkUpdateChainConfig
checkUpdateChainConfig query leveldb check is force update
consensus/vbft/service.go:2156
↓ 2 callers
Function
checksum
(data []byte)
account/identity.go:101
↓ 2 callers
Function
chooseCurve
(reader *bufio.Reader)
cmd/account.go:142
↓ 2 callers
Function
chooseKeyType
wait for user to choose options
cmd/account.go:111
↓ 2 callers
Function
chooseScheme
(reader *bufio.Reader)
cmd/account.go:126
↓ 2 callers
Function
cleanTestChainStore
()
consensus/vbft/chain_store_test.go:122
↓ 2 callers
Method
cleanTransactionList
cleanTransactionList cleans the txs in the block from the ledger
txnpool/proc/txnpool_server.go:531
↓ 2 callers
Function
compareIntOp
(t *testing.T, func1, func2 IntOp)
vm/neovm/int_value_test.go:86
↓ 2 callers
Method
compareTxHeight
compareTxHeight compares a verifed transaction's height with the next block height from consensus. If the height is less than the next block height, r
txnpool/common/transaction_pool.go:115
↓ 2 callers
Function
computeMerkleRootOld
input a []uint256, create a merkleTree & calc the root hash
common/merkle_tree_test.go:178
↓ 2 callers
Function
computeVrf
(sk keypair.PrivateKey, blkNum uint32, prevVrf []byte)
consensus/vbft/utils.go:101
↓ 2 callers
Function
concatDIDTokenKey
type(this.contractAddr.RoleP.ontID) = roleTokens
smartcontract/service/native/auth/utils.go:103
↓ 2 callers
Function
concatDelegateStatusKey
type(this.contractAddr.DelegateStatus.ontID)
smartcontract/service/native/auth/utils.go:137
↓ 2 callers
Function
concatRoleFuncKey
type(this.contractAddr.RoleFunc.role) = roleFuncs
smartcontract/service/native/auth/utils.go:69
↓ 2 callers
Function
consensusToConsensus
(native *native.NativeService, contract common.Address, peerPoolItem *PeerPoolItem)
smartcontract/service/native/governance/method.go:396
↓ 2 callers
Function
consensusToUnConsensus
(native *native.NativeService, contract common.Address, peerPoolItem *PeerPoolItem)
smartcontract/service/native/governance/method.go:482
↓ 2 callers
Method
constructBlock
(blkNum uint32, prevBlkHash common.Uint256, txs []*types.Transaction, consensusPayload []byte, blocktimestamp
consensus/vbft/msg_builder.go:189
↓ 2 callers
Function
constructConfig
()
consensus/vbft/config/genesis_test.go:32
↓ 2 callers
Method
constructEndorseMsg
(proposal *blockProposalMsg, forEmpty bool)
consensus/vbft/msg_builder.go:287
↓ 2 callers
Function
constructMsg
()
consensus/vbft/msg_builder_test.go:31
↓ 2 callers
Method
delFlightHeader
(height uint32)
p2pserver/block_sync.go:777
↓ 2 callers
Method
delHeaderCache
(blockHash common.Uint256)
core/store/ledgerstore/ledger_store.go:401
↓ 2 callers
Method
delete
Delete item from cache
smartcontract/storage/cachedb.go:143
↓ 2 callers
Function
deleteAttr
(srvc *native.NativeService, encID, path []byte)
smartcontract/service/native/did/attribute.go:157
↓ 2 callers
Function
deleteID
(srvc *native.NativeService, encID []byte)
smartcontract/service/native/did/utils.go:115
↓ 2 callers
Method
disconnectNotify
disconnectNotify push disconnect msg to channel
p2pserver/link/link.go:152
↓ 2 callers
Function
doubleSha256
(s []Uint256)
common/merkle_tree_test.go:88
↓ 2 callers
Method
endorsedForEmptyBlock
(blkNum uint32)
consensus/vbft/block_pool.go:218
↓ 2 callers
Function
execTxCheckRes
(tx *types.Transaction, testCase common3.TestCase, database *ledger.Ledger, addr common.Address, acct *account
wasmtest/wasm-test.go:201
↓ 2 callers
Function
executeCommitDpos
(native *native.NativeService, contract common.Address)
smartcontract/service/native/governance/method.go:683
↓ 2 callers
Method
fastForwardBlock
(block *Block)
consensus/vbft/service.go:2037
↓ 2 callers
Method
findLT
(key []byte)
core/store/overlaydb/memdb.go:243
↓ 2 callers
Function
formatCommand
(cmds []cli.Command)
cmd/usage.go:330
↓ 2 callers
Function
formatFlags
(flags []cli.Flag)
cmd/usage.go:353
↓ 2 callers
Function
fromTransfer
(native *native.NativeService, fromKey []byte, value uint64)
smartcontract/service/native/gas/utils.go:147
↓ 2 callers
Function
genBLInt
()
vm/neovm/int_value_test.go:54
← previous
next →
1,001–1,100 of 3,494, ranked by callers