Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gelembjuk/oursql
/ functions
Functions
1,260 in github.com/Gelembjuk/oursql
⨍
Functions
1,260
◇
Types & classes
172
↓ 1 callers
Method
addExistentTables
Add existent tables to blockchain
node/nodemanager/blockchain_create.go:301
↓ 1 callers
Method
buildRollbackSQL
prepares rollback query
node/dbquery/parsed.go:56
↓ 1 callers
Method
checkBaseTransaction
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 callers
Function
checkConfigUpdateNeeded
(c remoteclient.AppInput)
remoteclient/config.go:92
↓ 1 callers
Method
checkExecutePermissionsAsTable
check custom rule for the table about permissions
node/consensus/verifier.go:63
↓ 1 callers
Method
checkGoodTimeToMakeBlock
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 callers
Function
checkNeedsHelp
(c remoteclient.AppInput)
remoteclient/config.go:86
↓ 1 callers
Method
checkNodeAddress
()
lib/remoteclient/cli.go:85
↓ 1 callers
Method
checkQueryNeedsTransaction
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 callers
Method
checkQuerySyntax
checks if this query is syntax correct
node/dbquery/queryprocessing.go:58
↓ 1 callers
Method
checkUnapprovedCache
Check if there are abough unapproved transactions to make a block
node/consensus/blockmaker.go:101
↓ 1 callers
Function
cleanBeforeTest
(dbconn *database.MySQLDBManager)
tests/packagestests/dbquery/main.go:43
↓ 1 callers
Function
cleantestFile
()
lib/remoteclient/wallets_test.go:52
↓ 1 callers
Method
commandAddNode
Add a node to connections
node/nodecli.go:893
↓ 1 callers
Method
commandAddressHistory
Show history for a wallet
node/nodecli.go:639
↓ 1 callers
Method
commandAddressesBalance
Show all wallets and balances for each of them
node/nodecli.go:605
↓ 1 callers
Method
commandCancelTransaction
Cancel transaction if it is not yet in a block
node/nodecli.go:773
↓ 1 callers
Method
commandCreatewallet
Creates new wallet and saves it in a wallets file Wallet is a pare of keys
lib/remoteclient/cli.go:158
↓ 1 callers
Method
commandDropBlock
Drops last block from the top of blockchain
node/nodecli.go:792
↓ 1 callers
Method
commandDumpBlockchain
To create full dump of a blockchain
node/nodecli.go:498
↓ 1 callers
Method
commandExportConsensusConfig
Export consensus config to given destination. This can be used for distribution of an app
node/nodecli.go:1074
↓ 1 callers
Method
commandExportWallet
Exports wallets to given file path
lib/remoteclient/cli.go:188
↓ 1 callers
Method
commandGetBalance
Requests a node for balance and displays it. for given address
lib/remoteclient/cli.go:291
↓ 1 callers
Method
commandGetBalance
Display balance for address
node/nodecli.go:690
↓ 1 callers
Method
commandImportStartInteractive
Prepare wallet, import BC and start interactive. If BC exists we just start a server (do nothign before it)
node/nodecli.go:972
↓ 1 callers
Method
commandImportWallet
Imports wallets from given wallets file
lib/remoteclient/cli.go:171
↓ 1 callers
Method
commandInitIfNeededStartInteractive
()
node/nodecli.go:1021
↓ 1 callers
Method
commandListAddresses
List addresses (wallets) stored in the wallets file
lib/remoteclient/cli.go:201
↓ 1 callers
Method
commandListAddressesExt
Lists wallets and balance for each wallet
lib/remoteclient/cli.go:214
↓ 1 callers
Method
commandMakeBlock
Try to mine a block if there is anough unapproved transactions
node/nodecli.go:756
↓ 1 callers
Method
commandPrintChain
Print full blockchain
node/nodecli.go:521
↓ 1 callers
Method
commandPullUpdates
Pull updates from all other known nodes
node/nodecli.go:512
↓ 1 callers
Method
commandReindexCache
Reindex cache of transactions information
node/nodecli.go:744
↓ 1 callers
Method
commandRemoveNode
Remove a node from connections
node/nodecli.go:914
↓ 1 callers
Method
commandRestoreBlockchain
To restore blockchain from full dump to empty database
node/nodecli.go:483
↓ 1 callers
Method
commandSQL
Send money command. Connects to a node to do this operation
lib/remoteclient/cli.go:358
↓ 1 callers
Method
commandSQL
Execute new SQL command
node/nodecli.go:936
↓ 1 callers
Method
commandSend
Send money command. Connects to a node to do this operation
lib/remoteclient/cli.go:312
↓ 1 callers
Method
commandSend
Send money to other address
node/nodecli.go:709
↓ 1 callers
Method
commandShowHistory
Displays history for a wallet (address) . All transactions
lib/remoteclient/cli.go:234
↓ 1 callers
Method
commandShowNodes
Displays list of nodes (connections)
node/nodecli.go:867
↓ 1 callers
Method
commandShowState
Shows server state
node/nodecli.go:827
↓ 1 callers
Method
commandShowUnspent
Show unspent transactions outputs for address
node/nodecli.go:665
↓ 1 callers
Method
commandUnapprovedTransactions
Show contents of a cache of unapproved transactions (transactions pool)
node/nodecli.go:585
↓ 1 callers
Method
commandUnspentTransactions
Shows list of unspent transactions for an address
lib/remoteclient/cli.go:263
↓ 1 callers
Method
completeDBConfig
()
node/config/config.go:307
↓ 1 callers
Function
copyFile
(srcpath, dstpath string)
node/config/config.go:499
↓ 1 callers
Method
createServer
Create node server object. It will set tcp port and handle requests from other nodes
node/server/daemon.go:48
↓ 1 callers
Function
createTestTables
(dbconn *database.MySQLDBManager, q dbquery.QueryProcessorInterface)
tests/packagestests/dbquery/main.go:57
↓ 1 callers
Function
decodeErrResponse
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 callers
Function
decodeFieldTypeDouble
DecodeFieldTypeDouble decodes MYSQL_TYPE_DOUBLE field See https://mariadb.com/kb/en/mariadb/resultset/#field-types
lib/dbproxy/decoder.go:492
↓ 1 callers
Function
decodeFieldTypeLongLong
DecodeFieldTypeLongLong decodes MYSQL_TYPE_LONGLONG field See https://mariadb.com/kb/en/mariadb/resultset/#field-types
lib/dbproxy/decoder.go:480
↓ 1 callers
Function
decodeFieldTypeString
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 callers
Function
decodeQueryRequest
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 callers
Method
deleteRecordFromChain
Delete record from chain table
node/database/blockchain.go:140
↓ 1 callers
Method
detectConflictsForCurrentcy
(txs []structures.Transaction)
node/transactions/pending.go:750
↓ 1 callers
Method
doPrepareNewBlock
Makes new block, without a hash. Only finds transactions to add to a block
node/consensus/blockmaker.go:128
↓ 1 callers
Function
dropTestTables
(dbconn *database.MySQLDBManager, q dbquery.QueryProcessorInterface)
tests/packagestests/dbquery/main.go:143
↓ 1 callers
Method
encodeValue
encode value TODO maybe it is better to have base64 here ?
node/database/connection.go:179
↓ 1 callers
Method
filterTablesForManaged
return only tables that should be managed with blockchain. skip tables ignored in consensus config
node/nodemanager/blockchain_create.go:280
↓ 1 callers
Method
filterTranactionOutputsSpent
(outPuts []TransactionsIndexSpentOutputs, blockHash []byte, topHash []byte)
node/transactions/index.go:400
↓ 1 callers
Method
forEachUnapprovedTransaction
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 callers
Method
forEachUnspentOutput
execute callback function for every record in unspent outputs
node/transactions/unspent.go:188
↓ 1 callers
Method
getAddressPendingBalance
Calculates pending balance of address.
node/transactions/manager.go:959
↓ 1 callers
Method
getApplicationName
()
node/nodecli.go:172
↓ 1 callers
Method
getBaseTransactionInList
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 callers
Method
getBaseTransactionInSideChain
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 callers
Method
getBlockMakeManager
Init block maker object. It is used to make new blocks
node/nodemanager/blockchain_create.go:45
↓ 1 callers
Method
getCurrencyInputTransactionsState
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 callers
Function
getDBConfig
()
tests/packagestests/dbquery/main.go:235
↓ 1 callers
Method
getIndexManager
Create tx index object to use in this structure
node/transactions/rowsreferences.go:24
↓ 1 callers
Function
getNodeCLI
* * Creates a client object */
node/nodecli.go:87
↓ 1 callers
Method
getQueryParser
()
node/consensus/blockmaker.go:27
↓ 1 callers
Method
getQueryParser
()
node/consensus/querymanager.go:35
↓ 1 callers
Method
getRequestManager
Build requestPacketParser object
lib/dbproxy/mysqlproxy.go:218
↓ 1 callers
Method
getResponseManager
Build responsePacketParser object
lib/dbproxy/mysqlproxy.go:232
↓ 1 callers
Method
getRowData
Create row packet
lib/dbproxy/encoder.go:165
↓ 1 callers
Method
getSQLQueryManager
Init SQL transactions manager
node/nodemanager/blockchain_create.go:35
↓ 1 callers
Function
getTestDBManager
()
node/database/blockchain_test.go:34
↓ 1 callers
Method
handleAddNode
Add new node to list of nodes
node/server/handle.go:1004
↓ 1 callers
Method
handleAddr
Received the lst of nodes from some other node. add missed nodes to own nodes list
node/server/handle.go:444
↓ 1 callers
Method
handleBlock
Block received from other node
node/server/handle.go:481
↓ 1 callers
Method
handleCheckBlock
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 callers
Method
handleConnection
handleConnection ...
lib/dbproxy/mysqlproxy.go:174
↓ 1 callers
Method
handleConnection
handle received data. It can be one way command or a request for some data
node/server/server.go:51
↓ 1 callers
Method
handleGetBalance
Balance for address. Complex balance
node/server/handle.go:142
↓ 1 callers
Method
handleGetBlock
Returns block info. This is used for updates pulling
node/server/handle.go:707
↓ 1 callers
Method
handleGetBlocks
* * 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 callers
Method
handleGetBlocksUpper
* * 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 callers
Method
handleGetConsensusData
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 callers
Method
handleGetData
* * Response on request to get full body of a block or transaction */
node/server/handle.go:746
↓ 1 callers
Method
handleGetFirstBlocks
* * 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 callers
Method
handleGetHistory
Find and return history of transactions for wallet address
node/server/handle.go:99
↓ 1 callers
Method
handleGetNodes
Returns list of nodes from contacts on this node
node/server/handle.go:986
↓ 1 callers
Method
handleGetState
Return node state, including pending blocks to load
node/server/handle.go:1053
↓ 1 callers
Method
handleGetTransaction
Returns transaction from a pool in sync request
node/server/handle.go:209
↓ 1 callers
Method
handleGetUnspent
Find and return the list of unspent transactions
node/server/handle.go:53
↓ 1 callers
Method
handleGetUpdates
Other node requests for last changes on this server and expects to get response on real time
node/server/handle.go:865
↓ 1 callers
Method
handleInv
* * 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 callers
Method
handleRemoveNode
Remove node from list of nodes
node/server/handle.go:1027
← previous
next →
601–700 of 1,260, ranked by callers