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
↓ 3 callers
Function
startActor
startActor starts an actor with the proxy and unique id, and return the pid.
txnpool/server.go:39
↓ 3 callers
Function
startActor
(obj interface{})
txnpool/test/txnpool_test.go:112
↓ 3 callers
Method
startNewRound
()
consensus/vbft/service.go:668
↓ 3 callers
Method
startTxTicker
(blockNum uint32)
consensus/vbft/event_timer.go:385
↓ 3 callers
Method
submitBlock
saveBlock do the job of execution samrt contract and commit block to store.
core/store/ledgerstore/ledger_store.go:778
↓ 3 callers
Function
triggerRegisterEvent
(srvc *native.NativeService, id []byte)
smartcontract/service/native/did/event.go:39
↓ 3 callers
Function
validateDeployCode
(dep *DeployCode)
core/payload/deploy_code.go:190
↓ 3 callers
Function
verifyGroupCtrl
(n *native.NativeService, id string, s []Signer, addr []common.Address)
smartcontract/service/native/did/controller_test.go:417
↓ 3 callers
Method
verifyHeader
(header *types.Header, vbftPeerInfo map[string]uint32)
core/store/ledgerstore/ledger_store.go:417
↓ 3 callers
Method
verifyPrevBlockHash
(blkNum uint32, proposal *blockProposalMsg)
consensus/vbft/service.go:2477
↓ 3 callers
Function
verifyThreshold
(g *Group, signers []Signer)
smartcontract/service/native/did/group.go:189
↓ 3 callers
Function
withdrawTotalStake
(native *native.NativeService, contract common.Address, address common.Address, stake uint64)
smartcontract/service/native/governance/method.go:595
↓ 2 callers
Method
AddHeaders
(headers []*types.Header)
core/store/store.go:46
↓ 2 callers
Method
AddTransaction
AddTransaction add transaction to block cache
core/store/ledgerstore/block_cache.go:86
↓ 2 callers
Method
AddrValid
AddrValid whether the addr could be connect or accept
p2pserver/net/netserver/netserver.go:609
↓ 2 callers
Function
AddressFromHexString
AddressParseFromHexString returns parsed Address
common/address.go:85
↓ 2 callers
Function
ApproveTx
(gasPrice, gasLimit uint64, asset string, from, to string, amount uint64)
cmd/utils/gas.go:177
↓ 2 callers
Method
AsBigInt
urgly hack: only used in cmp opcode to lift the 32byte limit of integer
vm/neovm/types/neovm_value.go:572
↓ 2 callers
Method
AttachChan
AttachChan set msg chan to sync link
p2pserver/peer/peer.go:273
↓ 2 callers
Function
BigIntZip
(ints1 *big.Int, ints2 *big.Int, op OpCode)
vm/neovm/common.go:102
↓ 2 callers
Function
BuildWasmVMInvokeCode
build param bytes for wasm contract
core/utils/transaction_builder.go:190
↓ 2 callers
Method
CallingContext
CallingContext return smart contract caller context
smartcontract/smart_contract.go:81
↓ 2 callers
Method
CancelTxBlockTimeout
(blockNum uint32)
consensus/vbft/event_timer.go:346
↓ 2 callers
Method
CheckExpectedView
(viewNumber byte)
consensus/dbft/dbft_service.go:165
↓ 2 callers
Method
CheckSignatures
()
consensus/dbft/dbft_service.go:195
↓ 2 callers
Method
CheckSubmitBlock
(blkNum uint32, stateRoot common.Uint256)
consensus/vbft/service.go:235
↓ 2 callers
Method
CheckUseGas
(gas uint64)
smartcontract/context/context.go:45
↓ 2 callers
Function
CheckVBFTConfig
(configuration *config.VBFTConfig)
smartcontract/service/native/governance/utils.go:315
↓ 2 callers
Method
CleanTransactionList
CleanTransactionList cleans the transaction list included in the ledger.
txnpool/common/transaction_pool.go:83
↓ 2 callers
Function
ClosePrintLog
()
common/log/log.go:402
↓ 2 callers
Method
CloseSession
(session *Session)
http/websocket/session/sessionlist.go:57
↓ 2 callers
Method
ConsistencyProof
ConsistencyProof returns consistency proof
merkle/merkle_tree.go:245
↓ 2 callers
Method
ContainBlock
ContainBlock return whether block is in cache
core/store/ledgerstore/block_cache.go:81
↓ 2 callers
Method
ContainsFunc
(fn string)
smartcontract/service/native/auth/state.go:44
↓ 2 callers
Method
CopyTo
(stack *ValueStack)
vm/neovm/value_stack.go:173
↓ 2 callers
Function
CreateID
(nonce []byte)
account/identity.go:53
↓ 2 callers
Function
DataReqHandle
DataReqHandle handles the data req(block/Transaction) from peer
p2pserver/message/utils/msg_handler.go:429
↓ 2 callers
Method
Delete
Delete removes all items from the set.
p2pserver/common/set/string_set.go:61
↓ 2 callers
Method
DeleteAccount
DeleteAccount delete account
account/client.go:63
↓ 2 callers
Method
Deserialization
(source *common.ZeroCopySource)
core/states/storage_key.go:39
↓ 2 callers
Method
Deserialization
(source *common.ZeroCopySource)
core/states/bookkeeper.go:51
↓ 2 callers
Method
Deserialization
(source *common.ZeroCopySource)
core/states/validator_state.go:42
↓ 2 callers
Method
Deserialization
(source *common.ZeroCopySource)
core/states/vote_state.go:46
↓ 2 callers
Method
Deserialization
note: InvokeCode.Code has data reference of param source
core/payload/invoke_code.go:36
↓ 2 callers
Method
Deserialization
note: DeployCode.Code has data reference of param source
core/payload/deploy_code.go:143
↓ 2 callers
Method
Deserialization
(source *common.ZeroCopySource)
smartcontract/service/native/global_params/states.go:96
↓ 2 callers
Method
Deserialization
(source *common.ZeroCopySource)
smartcontract/service/native/governance/param.go:235
↓ 2 callers
Method
Deserialization
(source *common.ZeroCopySource)
smartcontract/service/native/governance/states.go:105
↓ 2 callers
Method
Deserialization
`ContractInvokeParam.Args` has reference of `source`
smartcontract/states/wasmContract.go:41
↓ 2 callers
Function
DeserializeCallParam
input byte array should be the following format version(1byte) + type(1byte) + data...
vm/crossvm_codec/vmcall_codec.go:32
↓ 2 callers
Function
DeserializeVbftMsg
(msgPayload []byte)
consensus/vbft/msg_builder.go:44
↓ 2 callers
Function
EncodeAddress
(sink *common.ZeroCopySink, addr common.Address)
vm/crossvm_codec/codec.go:210
↓ 2 callers
Function
EncodeH256
(sink *common.ZeroCopySink, hash common.Uint256)
vm/crossvm_codec/codec.go:224
↓ 2 callers
Function
EncodeMultiPubKeyProgramInto
(sink *common.ZeroCopySink, pubkeys []keypair.PublicKey, m int)
core/program/program.go:103
↓ 2 callers
Function
EncodeNotify
(t *testing.T, value interface{})
vm/crossvm_codec/codec_test.go:39
↓ 2 callers
Function
EncodeSinglePubKeyProgramInto
(sink *common.ZeroCopySink, pubkey keypair.PublicKey)
core/program/program.go:97
↓ 2 callers
Function
EncodeString
(sink *common.ZeroCopySink, buf string)
vm/crossvm_codec/codec.go:204
↓ 2 callers
Method
EntryContext
()
smartcontract/context/context.go:40
↓ 2 callers
Method
Error
()
core/store/overlaydb/iterator.go:195
↓ 2 callers
Method
ExecuteOp
(opcode OpCode, context *ExecutionContext)
vm/neovm/executor.go:116
↓ 2 callers
Method
ExpectEOF
()
core/program/program.go:174
↓ 2 callers
Method
Finish
()
core/program/program.go:83
↓ 2 callers
Method
Flush
()
merkle/file_hash_store.go:35
↓ 2 callers
Function
FormatAssetAmount
FormatAssetAmount return asset amount multiplied by math.Pow10(precision) to raw float string For example 1000000000123456789 => 1000000000.123456789
cmd/utils/utils.go:43
↓ 2 callers
Function
GasPrice
(gasTable map[string]uint64, engine *vm.Executor, name string)
smartcontract/service/neovm/gas_cost.go:45
↓ 2 callers
Function
GenDataTransactionKey
(hash common.Uint256)
validator/db/key_prefix.go:59
↓ 2 callers
Function
GenesisChainConfig
GenesisChainConfig return chainconfig
consensus/vbft/config/genesis.go:119
↓ 2 callers
Method
Get
if key is deleted, value == nil
core/store/overlaydb/overlaydb.go:61
↓ 2 callers
Method
GetAccountAddress
(index uint32)
cmd/sigsvr/store/wallet_store.go:369
↓ 2 callers
Function
GetAccountBalance
(address, asset string)
cmd/utils/gas.go:84
↓ 2 callers
Method
GetAccountByAddress
(address string)
account/file_store.go:128
↓ 2 callers
Method
GetAccountDataByAddress
(address string)
cmd/sigsvr/store/wallet_store.go:331
↓ 2 callers
Function
GetAccountIndexKey
(index uint32)
cmd/sigsvr/store/common.go:59
↓ 2 callers
Method
GetAccountMetadataByLabel
GetAccountMetadataByLabel return account Metadata info by label
account/client.go:55
↓ 2 callers
Method
GetAccountNumber
()
cmd/sigsvr/store/wallet_store.go:386
↓ 2 callers
Function
GetAccountPassword
GetPassword gets node's wallet password from command line or user input
common/password/password.go:72
↓ 2 callers
Function
GetAttributes
(srvc *native.NativeService)
smartcontract/service/native/did/query.go:164
↓ 2 callers
Function
GetBalance
Return balance of address in base58 code
cmd/utils/gas.go:67
↓ 2 callers
Function
GetBalanceValue
(native *native.NativeService, flag byte)
smartcontract/service/native/gas/gas.go:204
↓ 2 callers
Function
GetBlock
(hashOrHeight interface{})
cmd/utils/gas.go:502
↓ 2 callers
Method
GetBlock
GetBlock return block by block hash
core/store/ledgerstore/block_store.go:110
↓ 2 callers
Function
GetBlockCount
()
cmd/utils/gas.go:548
↓ 2 callers
Method
GetBookkeeperState
()
core/store/store.go:67
↓ 2 callers
Function
GetBytesUint32
(b []byte)
smartcontract/service/native/governance/utils.go:220
↓ 2 callers
Method
GetConnectionCnt
GetConnectionCnt return the total number of valid connections
p2pserver/net/netserver/netserver.go:195
↓ 2 callers
Method
GetConnectionState
Todo: remove it if no use
p2pserver/p2pserver.go:217
↓ 2 callers
Method
GetCurrentBlock
GetCurrentBlock return current block height and current hash in state store
core/store/ledgerstore/state_store.go:319
↓ 2 callers
Method
GetCurrentBlock
GetCurrentBlock return the current block height, and block hash. Current block means the latest block in store.
core/store/ledgerstore/ledger_store.go:375
↓ 2 callers
Function
GetDDO
(srvc *native.NativeService)
smartcontract/service/native/did/query.go:64
↓ 2 callers
Method
GetData
()
common/fixed64.go:56
↓ 2 callers
Method
GetErrorRespCnt
GetErrorRespCnt get the error response count
p2pserver/block_sync.go:95
↓ 2 callers
Method
GetEventNotifyByTx
(tx common.Uint256)
core/store/store.go:71
↓ 2 callers
Function
GetGID
()
common/log/log.go:82
↓ 2 callers
Method
GetHeader
GetHeader return the header specified by block hash
core/store/ledgerstore/block_store.go:189
↓ 2 callers
Method
GetHeaderByHeight
GetHeaderByHash return the block header by block height
core/store/ledgerstore/ledger_store.go:956
↓ 2 callers
Method
GetHeaderIndexList
GetHeaderIndexList return the head index store in header index list
core/store/ledgerstore/block_store.go:291
↓ 2 callers
Function
GetHeadersFromHash
get blk hdrs from starthash to stophash
p2pserver/message/utils/msg_handler.go:599
↓ 2 callers
Method
GetIpCountInInConnRecord
GetIpCountInInConnRecord return count of in connections with single ip
p2pserver/net/netserver/netserver.go:565
↓ 2 callers
Function
GetJsonObjectFromFile
(filePath string, jsonObject interface{})
cmd/utils/utils.go:99
↓ 2 callers
Method
GetNbrNodeCnt
GetNbrNodeCnt return count of establish peers in nbrlist
p2pserver/peer/nbr_peers.go:180
← previous
next →
801–900 of 3,494, ranked by callers