MCPcopy Create free account

hub / github.com/Gelembjuk/oursql / functions

Functions1,260 in github.com/Gelembjuk/oursql

↓ 5 callersMethodExecuteSQLSelectRow
get single row as a map
node/database/manager.go:418
↓ 5 callersMethodGetAddresses
GetAddresses returns an array of addresses stored in the wallet file
lib/remoteclient/wallets.go:133
↓ 5 callersMethodGetCount
()
node/database/interface.go:137
↓ 5 callersMethodGetInfoForTransactions
Return info about transaction settings
node/consensus/config.go:166
↓ 5 callersMethodGetTransactionsObject
()
node/database/interface.go:26
↓ 5 callersMethodHookNeworkOperationResult
Call this when network operation with some node failed. It will analise error and do some actios to remember state of this node
lib/net/nodesnetwork.go:246
↓ 5 callersMethodLogToStdout
Sets ogging to STDOUT
lib/utils/utils.go:153
↓ 5 callersFunctionNewSqlParser
()
node/dbquery/sqlparser/interface.go:31
↓ 5 callersMethodNewTransaction
New transaction appeared in a pool. Block maker should try to do new block if no anough transactions it will just send this TX to all known nodes
node/server/blocksmaker.go:91
↓ 5 callersMethodStop
()
lib/dbproxy/interface.go:15
↓ 5 callersMethodString
Convert to string in format host:port
lib/net/network.go:44
↓ 5 callersMethodTruncate
truncate table
node/database/connection.go:155
↓ 5 callersMethodcleanSQLValue
deescape value , remove quotes. returns only value that is set for column
node/dbquery/sqlparser/parser.go:573
↓ 5 callersMethodgetBlockMakerManager
()
node/consensus/querymanager.go:43
↓ 5 callersMethodgetDataReferencesTable
()
node/database/datareferences.go:10
↓ 5 callersMethodgetRecordFromChain
Read record from chain table.
node/database/blockchain.go:129
↓ 5 callersMethodgetTransactionsManager
Transaction operations and cache manager
node/consensus/blockmaker.go:41
↓ 5 callersMethodgetTransactionsOutputsTable
()
node/database/transactions.go:19
↓ 5 callersMethodgetTransactionsTable
()
node/database/transactions.go:12
↓ 5 callersMethodprocessQueryWithSignature
check if this pubkey can execute this query
node/consensus/querymanager.go:406
↓ 5 callersMethodreadFromConnection
Read given amount of bytes from connection
node/server/server.go:464
↓ 4 callersMethodAddBlock
Add new block to blockchain. It can be executed when new block was created locally or received from other node
node/nodemanager/node.go:458
↓ 4 callersMethodAddTransactionToPool
(tx *structures.Transaction, flags int)
node/consensus/interface.go:48
↓ 4 callersMethodBlockchainExist
Check if blockchain already exists. If no, we will not allow most of operations It is needed to create it first
node/nodemanager/node.go:188
↓ 4 callersMethodCancelTransaction
(txID []byte, sqlrollbacktoexecute bool)
node/transactions/interface.go:44
↓ 4 callersMethodExecuteSQLPrimaryKey
(table string)
node/database/interface.go:38
↓ 4 callersMethodGetAddressBalance
(address string)
node/transactions/interface.go:14
↓ 4 callersMethodGetNodesObject
()
node/database/interface.go:29
↓ 4 callersMethodGetSQLQueryManager
Init SQL transactions manager
node/nodemanager/node.go:128
↓ 4 callersMethodGetTXForRefID
(RefID []byte)
node/database/interface.go:107
↓ 4 callersMethodGetTopHash
()
node/database/interface.go:80
↓ 4 callersMethodGetTransactionFromBlock
GetTransactionFromBlock finds a transaction by its ID in given block If block is known . It worsk much faster then FindTransaction
node/blockchain/manager.go:295
↓ 4 callersMethodGetUnapprovedCount
()
node/transactions/interface.go:15
↓ 4 callersMethodInit
()
lib/dbproxy/interface.go:11
↓ 4 callersMethodIsUpdate
Info about a parsed query. Check if is update (insert, update, delete, create table, drop table)
node/dbquery/parsed.go:47
↓ 4 callersMethodLen
()
node/structures/manager.go:117
↓ 4 callersMethodLoadFromSimple
build independed transaction from normal output
node/structures/transaction_output.go:62
↓ 4 callersFunctionNewBlockchainIterator
Creates new Blockchain Iterator . Can be used to do something with blockchain from outside
node/blockchain/iterator.go:17
↓ 4 callersFunctionNewHashEmptyDBError
()
node/database/errors.go:65
↓ 4 callersFunctionNewWallets
(confdir string)
lib/remoteclient/wallets.go:33
↓ 4 callersMethodPutDataForTransaction
(txID []byte, txData []byte)
node/database/interface.go:131
↓ 4 callersMethodReferenceID
()
node/dbquery/parsed.go:26
↓ 4 callersMethodRemoveFromChain
(hash []byte)
node/database/interface.go:86
↓ 4 callersMethodSendInv
Send inventory. Blocks hashes or transactions IDs
lib/nodeclient/nodeclient.go:330
↓ 4 callersFunctionSignData
(privKey ecdsa.PrivateKey, dataToSign []byte)
lib/utils/crypt.go:13
↓ 4 callersMethodUpdateOnBlockAdd
* * New Block added * Input of all tranactions are removed from unspent * OUtput of all transactions are added to unspent * Update the UTXO set with t
node/transactions/unspent.go:467
↓ 4 callersMethodUpdateOnBlockCancel
This is executed when a block is canceled. All input transactions must be return to "unspent" And all output must be deleted from "unspent"
node/transactions/unspent.go:567
↓ 4 callersMethodgetBlockChainTable
()
node/database/blockchain.go:23
↓ 4 callersMethodgetLocalNetworkClient
Create Network Client object. We do this when a node server is running and we need to send command to it (indtead of accessing database directly)
node/nodecli.go:421
↓ 4 callersFunctiongetPacketType
(packet []byte)
lib/dbproxy/decoder.go:20
↓ 4 callersMethodgetQueryParser
make SQL query manager
node/transactions/manager.go:37
↓ 4 callersMethodload
(jsonStr []byte)
node/consensus/config.go:124
↓ 4 callersMethodprocessQuery
======================================================================================== this does all work. It checks query, decides if ll data are p
node/consensus/querymanager.go:274
↓ 4 callersFunctionreadLenEncodedInteger
ReadLenEncodedInteger returns parsed length-encoded integer and it's offset. See https://mariadb.com/kb/en/mariadb/protocol-data-types/#length-encoded
lib/dbproxy/decoder.go:507
↓ 4 callersMethodserializeOutputs
Serialize. We need this to store data in DB in bytes
node/transactions/unspent.go:30
↓ 4 callersFunctionskipPacketHeader
SkipPacketHeader rewinds reader to packet payload
lib/dbproxy/decoder.go:593
↓ 3 callersFunctionBase58Encode
Base58Encode encodes a byte array to Base58
lib/utils/base58.go:8
↓ 3 callersMethodBuildCommandDataWithAuth
Builds a command data. It prepares a slice of bytes from given data
lib/nodeclient/nodeclient.go:711
↓ 3 callersFunctionCancelTransaction
(datadir,txid)
tests/transactions.py:140
↓ 3 callersMethodCheckBlockExists
Checks if a block exists in the chain. It will go over blocks list
node/nodemanager/blockchain.go:32
↓ 3 callersMethodCheckHadInputConnects
Check if there were recent input connects
lib/net/nodesnetwork.go:129
↓ 3 callersMethodChooseHashUnderTip
Receive ist of hashes and return a hash that is in the chain defined by top hash This function is used for transactions. to understand if a transactio
node/blockchain/manager.go:815
↓ 3 callersMethodClone
Clone node
node/nodemanager/node.go:77
↓ 3 callersMethodCompleteBlock
returns list of transactions in prepared block
node/consensus/interface.go:46
↓ 3 callersMethodCreateNode
* * Createes node object. Node does all work related to acces to bockchain and DB */
node/nodecli.go:125
↓ 3 callersMethodDeleteDataForTransaction
(txID []byte)
node/database/interface.go:130
↓ 3 callersMethodDeleteFromBlock
* * Remove all transactions from this cache listed in a block. * Is used when new block added and transactions are approved now */
node/transactions/pending.go:654
↓ 3 callersMethodDeserializeHashes
Deserialize list of hashes
node/transactions/index.go:324
↓ 3 callersMethodDeserializeOutputs
Deserialize data from bytes loaded fom DB
node/transactions/index.go:298
↓ 3 callersMethodDoNewBlock
Send command to block builder to start doing new block. It will check if there are eenough transactions if no anough it will just continue to wait
node/server/blocksmaker.go:102
↓ 3 callersMethodDump
(file string)
node/database/interface.go:34
↓ 3 callersFunctionExecute
(command, verbose = False)
tests/_lib.py:158
↓ 3 callersMethodExecuteParsedQuery
(qp QueryParsed)
node/dbquery/interface.go:12
↓ 3 callersMethodGetAlternativeRefID
()
node/dbquery/interface.go:21
↓ 3 callersMethodGetBlockHashForTX
(txID []byte)
node/database/interface.go:94
↓ 3 callersFunctionGetDBCredentials
(testdatadir = "")
tests/_lib.py:86
↓ 3 callersMethodGetDataReferencesObject
()
node/database/interface.go:30
↓ 3 callersMethodGetTXSpentOutputs
(txID []byte)
node/database/interface.go:97
↓ 3 callersMethodGetTime
()
node/structures/transaction.go:348
↓ 3 callersMethodGetTopBlock
()
node/database/interface.go:73
↓ 3 callersMethodGetTranactionBlocks
(txID []byte)
node/transactions/index.go:336
↓ 3 callersMethodGetTransaction
(txID []byte)
node/database/interface.go:118
↓ 3 callersMethodHasOutAddress
Lock signs the output
node/structures/transaction_output.go:48
↓ 3 callersMethodInit
Init wallet client object. This will manage execution of tasks related to a wallet
lib/remoteclient/cli.go:43
↓ 3 callersMethodInitDatabase
()
node/database/interface.go:17
↓ 3 callersMethodIsCurrencyTransfer
Checks whether the transaction is currency transaction (sends money to somewhere)
node/structures/transaction.go:56
↓ 3 callersMethodLoadFromFile
LoadFromFile loads wallets from the file
lib/remoteclient/wallets.go:152
↓ 3 callersMethodLoadFromString
Parse from string
lib/net/network.go:88
↓ 3 callersMethodMakeWallet
MakeWallet creates Wallet. It generates new keys pair and assign to the object
lib/remoteclient/wallet.go:54
↓ 3 callersFunctionNewHashNotFoundDBError
(err string)
node/database/errors.go:58
↓ 3 callersFunctionNewProofOfWork
NewProofOfWork builds and returns a ProofOfWork object The object can be used to find a hash for the block
node/consensus/proofofwork.go:37
↓ 3 callersMethodOpenConnection
()
node/database/interface.go:21
↓ 3 callersMethodOpenConnectionIfNeeded
open connection if it is not yet opened
node/nodemanager/database.go:147
↓ 3 callersMethodPrepareConnection
(sessid string)
node/nodemanager/database.go:111
↓ 3 callersMethodPrepareSignData
prepare data to sign a transaction this return []bytes. it is bytes representation of a TX.
node/structures/transaction.go:123
↓ 3 callersMethodReceivedNewTransaction
Received new transaction . This must verify and if all ok it adds to the pool
node/nodemanager/node.go:626
↓ 3 callersMethodRemoveNodeFromKnown
(addr NodeAddr)
lib/net/nodesnetwork.go:15
↓ 3 callersMethodSendVersionToNodes
Send own version to all known node
node/nodemanager/node.go:272
↓ 3 callersMethodSetConfig
get QueryManager object
node/database/interface.go:12
↓ 3 callersMethodSetLogger
(logger *utils.LoggerMan)
node/database/interface.go:13
← previousnext →101–200 of 1,260, ranked by callers