MCPcopy Create free account

hub / github.com/Gelembjuk/oursql / functions

Functions1,260 in github.com/Gelembjuk/oursql

↓ 1 callersMethodhandleTx
* * Handle new transaction. Verify it before doing something (verify is done in the NodeTX object) * This is transaction received from other node. We
node/server/handle.go:801
↓ 1 callersMethodhandleTxCurRequest
Request for new currrency transaction from light client. Builds a transaction without sign. Returns also list of previous transactions selected for in
node/server/handle.go:292
↓ 1 callersMethodhandleTxData
Accepts new transaction data. It is prepared transaction without signatures Signatures are received too. Complete TX must be constructed and verified.
node/server/handle.go:177
↓ 1 callersMethodhandleTxSQLRequest
Prepares SQL transaction for a query
node/server/handle.go:325
↓ 1 callersMethodhandleVersion
* * Process version command. Other node sends own address and index of top block. * This node checks if index is bogger then request for a rest of blo
node/server/handle.go:938
↓ 1 callersMethodimportBlockchainConsensusInfo
Import blockchain consensus info. Config file, plugin etc
node/nodemanager/blockchain_create.go:189
↓ 1 callersMethodinitBlocksMaker
MySQL proxy server. It is in the middle between a DB server and DB client an reads requests
node/server/server.go:367
↓ 1 callersMethodinitWallets
Creates Wallets object and fills it from a file if it exists
lib/remoteclient/cli.go:56
↓ 1 callersFunctioninsertTest
(dbconn *database.MySQLDBManager, q dbquery.QueryProcessorInterface)
tests/packagestests/dbquery/main.go:163
↓ 1 callersMethodisInteractiveMode
Detects if this request is not related to node server management and must return response right now
node/nodecli.go:199
↓ 1 callersMethodisNodeManageMode
Detects if it is a node management command
node/nodecli.go:205
↓ 1 callersMethodmakeDeleteRollback
Build Delete operation rollback
node/dbquery/parsed.go:181
↓ 1 callersMethodmakeHash
Hash returns the hash of the Transaction
node/structures/transaction.go:84
↓ 1 callersMethodmakeInsertRollback
Build Insert operation rollback
node/dbquery/parsed.go:148
↓ 1 callersMethodmakeNewBlockFromTransactions
this builds a block object from given transactions list adds coinbase transacion (prize for miner)
node/consensus/blockmaker.go:233
↓ 1 callersMethodmakeUpdateRollback
Build Update operation rollback
node/dbquery/parsed.go:153
↓ 1 callersMethodmergeResults
Merge results from different nodes. This structure is used to return total result
node/nodemanager/communication.go:354
↓ 1 callersMethodnewKeyPair
Generate new key pair to create new wallet
lib/remoteclient/wallet.go:158
↓ 1 callersFunctionnewTXPoolCacheNoMemoryError
Generate when pool memory cache can not be used because no memory
node/transactions/error.go:93
↓ 1 callersMethodnewTransactionIndex
Create transaction index object
node/transactions/unspent.go:25
↓ 1 callersMethodnormalizeQuery
normalize a query. remove extra spaces (but not from texts inside) TODO this muts do similar work like "github.com/percona/go-mysql/query" but without
node/dbquery/sqlparser/parser.go:152
↓ 1 callersMethodparseComments
================== PARSERS ============================= extract comments from the query
node/dbquery/sqlparser/parser.go:127
↓ 1 callersMethodparseCondition
parse condition
node/dbquery/sqlparser/parser.go:365
↓ 1 callersMethodparseHandshake
extract protocol info from initial handshake this info will be needed to make custom responses later
lib/dbproxy/mysqlproxy.go:338
↓ 1 callersMethodparseHandshakeClientResponse
extract client capabilities from a response on handshake from server
lib/dbproxy/mysqlproxy.go:349
↓ 1 callersMethodparseInfoFromComments
Parse comments
node/dbquery/parsed.go:80
↓ 1 callersMethodparseKindAndTable
get query kind and table name
node/dbquery/sqlparser/parser.go:159
↓ 1 callersMethodparseUpdateColumns
parse update columns and values
node/dbquery/sqlparser/parser.go:228
↓ 1 callersMethodparseValueList
parse names and values from insert lists
node/dbquery/sqlparser/parser.go:325
↓ 1 callersMethodpatchRowInfo
return info for a row that will be affected by a query. If that is update or delete return a row if it is insert, try to get next autoincrement
node/dbquery/queryprocessing.go:76
↓ 1 callersMethodprepareGenesisBlock
BUilds a genesis block. It is used only to start new blockchain
node/nodemanager/blockchain_create.go:202
↓ 1 callersFunctionprintUsage
()
remoteclient/config.go:146
↓ 1 callersMethodprocessBlocksFromOtherNode
Process blocks list received from other node. Returns list of added blocks
node/nodemanager/communication.go:232
↓ 1 callersMethodprocessNodesFromPoolOnOtherNode
Process nodes addresses list received from other node
node/nodemanager/communication.go:331
↓ 1 callersMethodprocessResults
(res nodemanager.ChangesPullResults)
node/server/changeschecker.go:96
↓ 1 callersMethodprocessTransactionsFromPoolOnOtherNode
Process blocks list received from other node. Returns list of transactions added to a pool
node/nodemanager/communication.go:293
↓ 1 callersMethodpullUpdatesFromNode
Load updates from a node
node/nodemanager/communication.go:200
↓ 1 callersFunctionrandString
(n int)
lib/dbproxy/utils.go:9
↓ 1 callersFunctionreadEOFLengthString
ReadEOFLengthString returns parsed EOF-length string. EOF-length strings are those strings whose length will be calculated by the packet remaining len
lib/dbproxy/decoder.go:573
↓ 1 callersFunctionreadLenEncodedString
ReadLenEncodedString returns parsed length-encoded string and it's length. Length-encoded strings are prefixed by a length-encoded integer which descr
lib/dbproxy/decoder.go:559
↓ 1 callersMethodreadRequest
Reads and parses request from network data
node/server/server.go:402
↓ 1 callersFunctionreadResponse
ReadResponse ...
lib/dbproxy/packet.go:122
↓ 1 callersMethodrenewCacheIfNeeded
()
node/transactions/pending.go:47
↓ 1 callersMethodrollbackConflictingFromPool
find which transactions in a pool conflict with this list and remove if any conflicts
node/transactions/manager.go:381
↓ 1 callersMethodrun
* * The routine that tries to make blocks. * The routine reads last added transaction ID * The ID will be real tranaction ID only if this transaction
node/server/blocksmaker.go:51
↓ 1 callersMethodsaveBackToFile
Save a consensus config to same file from where it was loaded
node/consensus/config.go:155
↓ 1 callersMethodsendTransactionToAllASync
Send tranaction ID to all nodes in async mode. We expect nodes will call us back to get TX
node/nodemanager/communication.go:54
↓ 1 callersMethodsendTransactionToAllSync
Send tranaction ID to all nodes in sync mode. We just send full TX to all known nodes and they decide what to do
node/nodemanager/communication.go:69
↓ 1 callersMethodsendVersionToNodes
Send own version to all known nodes
node/nodemanager/communication.go:26
↓ 1 callersMethodsetOriginalRequest
(p []byte)
lib/dbproxy/interface.go:23
↓ 1 callersMethodsetProtocolInfo
(pi protocolInfo)
lib/dbproxy/interface.go:27
↓ 1 callersFunctionsignatureFromDER
Get R and S from DER formatted signature
lib/utils/crypt.go:48
↓ 1 callersFunctionsignatureToDER
Make DER format signature from r and s slices
lib/utils/crypt.go:29
↓ 1 callersMethodstartChangesChecker
MySQL proxy server. It is in the middle between a DB server and DB client an reads requests
node/server/server.go:359
↓ 1 callersMethodstartDatabaseProxy
MySQL proxy server. It is in the middle between a DB server and DB client an reads requests
node/server/server.go:338
↓ 1 callersMethodtryToRepeatTransactionResigned
check if this query must be added to transaction. all SELECT queries must be ignored. and some update queries can be ignored too. such queries are jus
node/consensus/querymanager.go:460
↓ 1 callersFunctionupdateConfig
(datadir string, c remoteclient.AppInput)
remoteclient/config.go:99
↓ 1 callersMethodverifyTransactionPaidSQL
Verify SQL paid transaction. This checks if output is locked to correct address and amount is vald for paid SQL
node/consensus/blockmaker.go:493
↓ 1 callersMethodverifyTransactionSQLPermissions
Verify SQL can be executed. This checks if there are permissions to execute this SQL at this point of blockchain
node/consensus/blockmaker.go:550
↓ 1 callersMethodwaitServerStarted
check while sever started
node/server/daemon.go:360
↓ 1 callersFunctionwritePacket
WritePacket ...
lib/dbproxy/packet.go:197
MethodAddBlock
Add block to blockchain Block is not yet verified
node/nodemanager/blockchain.go:97
MethodAddBlock
* * Add new block to the blockchain BCBAddState_error = 0 not added to the chain. Because of error BCBAddState_addedToTop = 1 a
node/blockchain/manager.go:54
FunctionAddMinterToConfig
(datadir, minter)
tests/_complex.py:552
MethodAddNodeToKnown
* * Checks if a node exists in list of known nodes and adds it if no * Returns true if was added */
lib/net/nodesnetwork.go:147
MethodAddNodeToKnown
Add node We need this for case when we want to do some more actions after node added
node/nodemanager/node.go:257
MethodAddNodeToKnown
(addr net.NodeAddr)
node/nodemanager/nodeslist.go:33
MethodAddToChain
add block to chain
node/database/blockchain.go:145
MethodAddTransactionToPool
Add transaction to a pool. This will call verification and if all is ok it adds to a poool of transactions
node/consensus/blockmaker.go:438
FunctionAddresToPubKeyHash
Converts address string to hash of pubkey
lib/utils/utils.go:191
MethodBlockAdded
to execute when new block added . the block must not be on top
node/transactions/manager.go:292
MethodBlockAddedToPrimaryChain
block is now added to primary chain. it existed in DB before
node/transactions/manager.go:331
MethodBlockInChain
(hash []byte)
node/database/blockchain.go:240
MethodBlockRemoved
Block was removed from the top of primary blockchain branch
node/transactions/manager.go:315
MethodBlockRemovedFromPrimaryChain
block is removed from primary chain. it continued to be in DB on side branch
node/transactions/manager.go:347
MethodBlocksAdded
(blocks []*structures.Block)
node/transactions/index.go:33
MethodBlocksRemoved
(blocks []*structures.Block)
node/transactions/index.go:128
FunctionBytesToCommand
Convert bytes back to command
lib/net/network.go:117
MethodCheckAllowsMultipleSubtransactions
(sqlUpdPrev *structures.SQLUpdate)
node/dbquery/interface.go:20
MethodCheckAllowsMultipleSubtransactions
Detects if this SQL TX allows to have multiple following TXs this is possible if the query is table create or table create is based on empty transacti
node/dbquery/sqlupdatemanager.go:102
MethodCheckBlockExists
Check if block exists by hash
node/database/blockchain.go:53
MethodCheckBlockExists
Check block exists
node/blockchain/manager.go:390
MethodCheckConnection
()
node/database/mocks.go:25
MethodCheckConnection
try to set up a connection to DB. and close it then
node/database/manager.go:50
MethodCheckConnection
check if connection to DB can be set
node/nodemanager/database.go:67
MethodCheckDBExists
()
node/database/mocks.go:40
MethodCheckDBExists
Check if database was already inited
node/database/manager.go:181
FunctionCheckPIDNotRunning
Check For the existence of a unix pid.
tests/_lib.py:273
FunctionCheckTXOutputValueToAddress
(tx *Transaction, PubKeyHash []byte, amount float64)
node/structures/verify.go:37
FunctionCheckTXOutputsAreOnlyToGivenAddresses
Check if all TXt currency outputs are only to given addresses
node/structures/verify.go:12
MethodCheckUpdateCanFollow
(sqlUpdPrev *structures.SQLUpdate)
node/dbquery/interface.go:19
MethodCheckUpdateCanFollow
Check if one SQL update can follow other update we allow: insert only after table create update only after insert or update delete only after insert o
node/dbquery/sqlupdatemanager.go:32
FunctionCleanTestFolders
()
tests/_lib.py:22
MethodCleanUnapprovedCache
Remove all unapproced transactions from the pool
node/transactions/pending.go:815
MethodCleanUnapprovedCache
Remove all transactions from unapproved cache (transactions pool)
node/transactions/manager.go:287
MethodClone
Clone database object. all is clonned except locker object. locker object is shared between all objects
node/nodemanager/database.go:45
MethodClose
close DB connection
node/database/connection.go:20
MethodCloseConnection
()
node/database/mocks.go:31
MethodCloseConnection
()
node/nodemanager/database.go:123
FunctionCommandToBytes
Converts a command to bytes in fixed length
lib/net/network.go:106
← previousnext →701–800 of 1,260, ranked by callers