MCPcopy Create free account

hub / github.com/Gelembjuk/oursql / functions

Functions1,260 in github.com/Gelembjuk/oursql

↓ 1 callersMethodaddExistentTables
Add existent tables to blockchain
node/nodemanager/blockchain_create.go:301
↓ 1 callersMethodbuildRollbackSQL
prepares rollback query
node/dbquery/parsed.go:56
↓ 1 callersMethodcheckBaseTransaction
Verify if base transaction is still valid. We verify transaction before to add it to a blockchain A transaction itself is in a pool at this monent Che
node/transactions/manager.go:1157
↓ 1 callersFunctioncheckConfigUpdateNeeded
(c remoteclient.AppInput)
remoteclient/config.go:92
↓ 1 callersMethodcheckExecutePermissionsAsTable
check custom rule for the table about permissions
node/consensus/verifier.go:63
↓ 1 callersMethodcheckGoodTimeToMakeBlock
Checks if this is good time for this node to make a block In this version it is always true
node/consensus/blockmaker.go:96
↓ 1 callersFunctioncheckNeedsHelp
(c remoteclient.AppInput)
remoteclient/config.go:86
↓ 1 callersMethodcheckNodeAddress
()
lib/remoteclient/cli.go:85
↓ 1 callersMethodcheckQueryNeedsTransaction
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:436
↓ 1 callersMethodcheckQuerySyntax
checks if this query is syntax correct
node/dbquery/queryprocessing.go:58
↓ 1 callersMethodcheckUnapprovedCache
Check if there are abough unapproved transactions to make a block
node/consensus/blockmaker.go:101
↓ 1 callersFunctioncleanBeforeTest
(dbconn *database.MySQLDBManager)
tests/packagestests/dbquery/main.go:43
↓ 1 callersFunctioncleantestFile
()
lib/remoteclient/wallets_test.go:52
↓ 1 callersMethodcommandAddNode
Add a node to connections
node/nodecli.go:893
↓ 1 callersMethodcommandAddressHistory
Show history for a wallet
node/nodecli.go:639
↓ 1 callersMethodcommandAddressesBalance
Show all wallets and balances for each of them
node/nodecli.go:605
↓ 1 callersMethodcommandCancelTransaction
Cancel transaction if it is not yet in a block
node/nodecli.go:773
↓ 1 callersMethodcommandCreatewallet
Creates new wallet and saves it in a wallets file Wallet is a pare of keys
lib/remoteclient/cli.go:158
↓ 1 callersMethodcommandDropBlock
Drops last block from the top of blockchain
node/nodecli.go:792
↓ 1 callersMethodcommandDumpBlockchain
To create full dump of a blockchain
node/nodecli.go:498
↓ 1 callersMethodcommandExportConsensusConfig
Export consensus config to given destination. This can be used for distribution of an app
node/nodecli.go:1074
↓ 1 callersMethodcommandExportWallet
Exports wallets to given file path
lib/remoteclient/cli.go:188
↓ 1 callersMethodcommandGetBalance
Requests a node for balance and displays it. for given address
lib/remoteclient/cli.go:291
↓ 1 callersMethodcommandGetBalance
Display balance for address
node/nodecli.go:690
↓ 1 callersMethodcommandImportStartInteractive
Prepare wallet, import BC and start interactive. If BC exists we just start a server (do nothign before it)
node/nodecli.go:972
↓ 1 callersMethodcommandImportWallet
Imports wallets from given wallets file
lib/remoteclient/cli.go:171
↓ 1 callersMethodcommandInitIfNeededStartInteractive
()
node/nodecli.go:1021
↓ 1 callersMethodcommandListAddresses
List addresses (wallets) stored in the wallets file
lib/remoteclient/cli.go:201
↓ 1 callersMethodcommandListAddressesExt
Lists wallets and balance for each wallet
lib/remoteclient/cli.go:214
↓ 1 callersMethodcommandMakeBlock
Try to mine a block if there is anough unapproved transactions
node/nodecli.go:756
↓ 1 callersMethodcommandPrintChain
Print full blockchain
node/nodecli.go:521
↓ 1 callersMethodcommandPullUpdates
Pull updates from all other known nodes
node/nodecli.go:512
↓ 1 callersMethodcommandReindexCache
Reindex cache of transactions information
node/nodecli.go:744
↓ 1 callersMethodcommandRemoveNode
Remove a node from connections
node/nodecli.go:914
↓ 1 callersMethodcommandRestoreBlockchain
To restore blockchain from full dump to empty database
node/nodecli.go:483
↓ 1 callersMethodcommandSQL
Send money command. Connects to a node to do this operation
lib/remoteclient/cli.go:358
↓ 1 callersMethodcommandSQL
Execute new SQL command
node/nodecli.go:936
↓ 1 callersMethodcommandSend
Send money command. Connects to a node to do this operation
lib/remoteclient/cli.go:312
↓ 1 callersMethodcommandSend
Send money to other address
node/nodecli.go:709
↓ 1 callersMethodcommandShowHistory
Displays history for a wallet (address) . All transactions
lib/remoteclient/cli.go:234
↓ 1 callersMethodcommandShowNodes
Displays list of nodes (connections)
node/nodecli.go:867
↓ 1 callersMethodcommandShowState
Shows server state
node/nodecli.go:827
↓ 1 callersMethodcommandShowUnspent
Show unspent transactions outputs for address
node/nodecli.go:665
↓ 1 callersMethodcommandUnapprovedTransactions
Show contents of a cache of unapproved transactions (transactions pool)
node/nodecli.go:585
↓ 1 callersMethodcommandUnspentTransactions
Shows list of unspent transactions for an address
lib/remoteclient/cli.go:263
↓ 1 callersMethodcompleteDBConfig
()
node/config/config.go:307
↓ 1 callersFunctioncopyFile
(srcpath, dstpath string)
node/config/config.go:499
↓ 1 callersMethodcreateServer
Create node server object. It will set tcp port and handle requests from other nodes
node/server/daemon.go:48
↓ 1 callersFunctioncreateTestTables
(dbconn *database.MySQLDBManager, q dbquery.QueryProcessorInterface)
tests/packagestests/dbquery/main.go:57
↓ 1 callersFunctiondecodeErrResponse
DecodeOkResponse decodes ERR_Packet from server. Part of basic packet structure shown below. int<3> PacketLength int<1> PacketNumber int<1> PacketTyp
lib/dbproxy/decoder.go:36
↓ 1 callersFunctiondecodeFieldTypeDouble
DecodeFieldTypeDouble decodes MYSQL_TYPE_DOUBLE field See https://mariadb.com/kb/en/mariadb/resultset/#field-types
lib/dbproxy/decoder.go:492
↓ 1 callersFunctiondecodeFieldTypeLongLong
DecodeFieldTypeLongLong decodes MYSQL_TYPE_LONGLONG field See https://mariadb.com/kb/en/mariadb/resultset/#field-types
lib/dbproxy/decoder.go:480
↓ 1 callersFunctiondecodeFieldTypeString
DecodeFieldTypeString decodes MYSQL_TYPE_VAR_STRING field (length-encoded string) See https://mariadb.com/kb/en/mariadb/resultset/#field-types
lib/dbproxy/decoder.go:467
↓ 1 callersFunctiondecodeQueryRequest
DecodeQueryRequest decodes COM_QUERY and COM_STMT_PREPARE requests from client. Basic packet structure shown below. See https://mariadb.com/kb/en/mari
lib/dbproxy/decoder.go:268
↓ 1 callersMethoddeleteRecordFromChain
Delete record from chain table
node/database/blockchain.go:140
↓ 1 callersMethoddetectConflictsForCurrentcy
(txs []structures.Transaction)
node/transactions/pending.go:750
↓ 1 callersMethoddoPrepareNewBlock
Makes new block, without a hash. Only finds transactions to add to a block
node/consensus/blockmaker.go:128
↓ 1 callersFunctiondropTestTables
(dbconn *database.MySQLDBManager, q dbquery.QueryProcessorInterface)
tests/packagestests/dbquery/main.go:143
↓ 1 callersMethodencodeValue
encode value TODO maybe it is better to have base64 here ?
node/database/connection.go:179
↓ 1 callersMethodfilterTablesForManaged
return only tables that should be managed with blockchain. skip tables ignored in consensus config
node/nodemanager/blockchain_create.go:280
↓ 1 callersMethodfilterTranactionOutputsSpent
(outPuts []TransactionsIndexSpentOutputs, blockHash []byte, topHash []byte)
node/transactions/index.go:400
↓ 1 callersMethodforEachUnapprovedTransaction
Is used for cases when it is needed to do something with all cached transactions. For example, to print them.
node/transactions/pending.go:670
↓ 1 callersMethodforEachUnspentOutput
execute callback function for every record in unspent outputs
node/transactions/unspent.go:188
↓ 1 callersMethodgetAddressPendingBalance
Calculates pending balance of address.
node/transactions/manager.go:959
↓ 1 callersMethodgetApplicationName
()
node/nodecli.go:172
↓ 1 callersMethodgetBaseTransactionInList
Finds a transaction where a refID was last updated or which can be used as a base Firstly looks in a pool of transactions ,if not found, looks in an i
node/transactions/manager.go:1030
↓ 1 callersMethodgetBaseTransactionInSideChain
Findbase TX based on TIP This is for case when a TX is created based on a block that is not in main chain of blocks (uncle block)
node/transactions/manager.go:1141
↓ 1 callersMethodgetBlockMakeManager
Init block maker object. It is used to make new blocks
node/nodemanager/blockchain_create.go:45
↓ 1 callersMethodgetCurrencyInputTransactionsState
Verifies transaction inputs. Check if that are real existent transactions. And that outputs are not yet used If some transaction is not in blockchain,
node/transactions/manager.go:622
↓ 1 callersFunctiongetDBConfig
()
tests/packagestests/dbquery/main.go:235
↓ 1 callersMethodgetIndexManager
Create tx index object to use in this structure
node/transactions/rowsreferences.go:24
↓ 1 callersFunctiongetNodeCLI
* * Creates a client object */
node/nodecli.go:87
↓ 1 callersMethodgetQueryParser
()
node/consensus/blockmaker.go:27
↓ 1 callersMethodgetQueryParser
()
node/consensus/querymanager.go:35
↓ 1 callersMethodgetRequestManager
Build requestPacketParser object
lib/dbproxy/mysqlproxy.go:218
↓ 1 callersMethodgetResponseManager
Build responsePacketParser object
lib/dbproxy/mysqlproxy.go:232
↓ 1 callersMethodgetRowData
Create row packet
lib/dbproxy/encoder.go:165
↓ 1 callersMethodgetSQLQueryManager
Init SQL transactions manager
node/nodemanager/blockchain_create.go:35
↓ 1 callersFunctiongetTestDBManager
()
node/database/blockchain_test.go:34
↓ 1 callersMethodhandleAddNode
Add new node to list of nodes
node/server/handle.go:1004
↓ 1 callersMethodhandleAddr
Received the lst of nodes from some other node. add missed nodes to own nodes list
node/server/handle.go:444
↓ 1 callersMethodhandleBlock
Block received from other node
node/server/handle.go:481
↓ 1 callersMethodhandleCheckBlock
Checks if block exists and returns True or False Other node requests to know if block exists before to send new block to this node
node/server/handle.go:251
↓ 1 callersMethodhandleConnection
handleConnection ...
lib/dbproxy/mysqlproxy.go:174
↓ 1 callersMethodhandleConnection
handle received data. It can be one way command or a request for some data
node/server/server.go:51
↓ 1 callersMethodhandleGetBalance
Balance for address. Complex balance
node/server/handle.go:142
↓ 1 callersMethodhandleGetBlock
Returns block info. This is used for updates pulling
node/server/handle.go:707
↓ 1 callersMethodhandleGetBlocks
* * Request to get list of blocks hashes . * It can contain a starting block hash to return data from it * If no that starting hash, then data from a
node/server/handle.go:638
↓ 1 callersMethodhandleGetBlocksUpper
* * Request to get all blocks up to given block. * Nodes use it to load missed blocks from other node. * If requested bock is not found in BC then TOP
node/server/handle.go:668
↓ 1 callersMethodhandleGetConsensusData
Handle request from a new node to get consensus information Returns consensus config if any and consensus module ( TODO )
node/server/handle.go:413
↓ 1 callersMethodhandleGetData
* * Response on request to get full body of a block or transaction */
node/server/handle.go:746
↓ 1 callersMethodhandleGetFirstBlocks
* * Handle request from a new node where a blockchain is not yet inted. * This s ed to get the first part of blocks to init local blockchain DB */
node/server/handle.go:378
↓ 1 callersMethodhandleGetHistory
Find and return history of transactions for wallet address
node/server/handle.go:99
↓ 1 callersMethodhandleGetNodes
Returns list of nodes from contacts on this node
node/server/handle.go:986
↓ 1 callersMethodhandleGetState
Return node state, including pending blocks to load
node/server/handle.go:1053
↓ 1 callersMethodhandleGetTransaction
Returns transaction from a pool in sync request
node/server/handle.go:209
↓ 1 callersMethodhandleGetUnspent
Find and return the list of unspent transactions
node/server/handle.go:53
↓ 1 callersMethodhandleGetUpdates
Other node requests for last changes on this server and expects to get response on real time
node/server/handle.go:865
↓ 1 callersMethodhandleInv
* * Other node posted info about new blocks or new transactions * This contains only a hash of a block or ID of a transaction * If such block or trans
node/server/handle.go:559
↓ 1 callersMethodhandleRemoveNode
Remove node from list of nodes
node/server/handle.go:1027
← previousnext →601–700 of 1,260, ranked by callers