MCPcopy Create free account

hub / github.com/Gelembjuk/oursql / functions

Functions1,260 in github.com/Gelembjuk/oursql

FunctionMakeRandomRange
(min, max int)
lib/utils/utils.go:310
FunctionMakeWallet
()
tests/_lib.py:203
FunctionMintBlock
(datadir,minter)
tests/_blocks.py:49
MethodNeedsSignature
check if needs signatures. in case of coin base doesn't need it
node/structures/transaction.go:79
FunctionNewBlockFromBytes
Make Block object from bytes
node/structures/manager.go:21
FunctionNewBlockMakerManager
(config *ConsensusConfig, minter string, DB database.DBManager, Logger *utils.LoggerMan)
node/consensus/interface.go:60
FunctionNewBlockShortFromBytes
return BlockShort object from bytes
node/structures/manager.go:10
FunctionNewBlockchainManager
(DB database.DBManager, Logger *utils.LoggerMan)
node/blockchain/manager.go:34
FunctionNewBucketNotFoundDBError
()
node/database/errors.go:42
FunctionNewCanNotConnectError
(err string)
lib/net/errors.go:42
FunctionNewCanNotParseResponseError
(err string)
lib/net/errors.go:54
FunctionNewCanNotSendError
(err string)
lib/net/errors.go:46
FunctionNewCoinbaseTransaction
New "currency" Coin Base transaction. This transaction must be present in each new block
node/structures/manager.go:90
FunctionNewConfigDBError
(err string)
node/database/errors.go:76
FunctionNewConfigDefault
()
node/consensus/config.go:80
FunctionNewConfigFromFile
Load config from config file. Some config options an be missed missed options must be replaced with default values correctly
node/consensus/config.go:68
FunctionNewCustomDataKeyValueResponse
(rows []CustomResponseKeyValue)
lib/dbproxy/interface.go:53
FunctionNewCustomOKResponse
(ar uint)
lib/dbproxy/interface.go:59
FunctionNewCustomQueryRequest
(query string)
lib/dbproxy/interface.go:65
FunctionNewDBCursorStopError
()
node/database/errors.go:54
FunctionNewDBError
(err string, kind string)
node/database/errors.go:38
FunctionNewDBIsNotReadyError
()
node/database/errors.go:50
FunctionNewManager
(DB database.DBManager, Logger *utils.LoggerMan, ci structures.ConsensusInfo)
node/transactions/manager.go:28
FunctionNewMySQLProxy
(proxyHost, mysqlHost string)
lib/dbproxy/mysqlproxy.go:27
FunctionNewNoResponseError
(err string)
lib/net/errors.go:50
FunctionNewNodeAddr
(host string, port int)
lib/net/network.go:31
MethodNewQuery
New query from command line tool The method decides what to do next possible states: 0 and error . Query is wrong or execution failed or error when tr
node/consensus/querymanager.go:74
MethodNewQueryByNode
execute new query and create transaction if needed . This provided private key to sign transaction if needed return complete TX. it is added to the po
node/consensus/querymanager.go:88
MethodNewQueryByNodeInit
Create new transaction and add to pool. Don't execute a query.
node/consensus/querymanager.go:130
MethodNewQueryFromProxy
DB proxy received new query . The query can contains comments with some additional instructions . this function should parse If error is returned, pro
node/consensus/querymanager.go:174
MethodNewQuerySigned
(txEncoded []byte, signature []byte)
node/consensus/interface.go:53
FunctionNewSQLQueryManager
(config *ConsensusConfig, DB database.DBManager, Logger *utils.LoggerMan, pubKey []byte, privKey ecdsa.Private
node/consensus/interface.go:69
FunctionNewSQLTransaction
New "SQL" transaction.
node/structures/manager.go:42
FunctionNewSQLUpdate
(sql string, referenceID string, rollbackSQL string)
node/structures/manager.go:54
FunctionNewSQLUpdateManager
(SQLUpdate structures.SQLUpdate)
node/dbquery/interface.go:29
FunctionNewTXNotFoundError
(err string, kind string)
node/transactions/error.go:82
MethodOpenConnection
()
node/database/mocks.go:28
MethodParse
(sqlquery string)
node/dbquery/sqlparser/parser.go:29
MethodPrepareNewBlock
()
node/consensus/blockmaker.go:59
MethodPrepareNewSQLTransaction
Make new transaction for SQL command amount to pay for TX can be 0
node/transactions/manager.go:721
FunctionPrepareNodes
()
tests/_complex.py:23
FunctionPrepareNodesWithSQL
()
tests/_complex.py:247
MethodPrepareSQLTransactionSignatureData
Prepare transaction for rebuild. This generates new string to sign for modified transaction
node/transactions/manager.go:807
FunctionPubKeyHashToAddres
Converts hash of pubkey to address as a string
lib/utils/utils.go:207
FunctionPubKeyToAddres
Makes string adres from pub key
lib/utils/utils.go:222
MethodPutBlockOnTop
Add block to the top of block chain
node/database/blockchain.go:68
MethodPutDataForTransaction
(txID []byte, txData []byte)
node/database/unspentoutputs.go:44
MethodPutNode
Save node info
node/database/nodes.go:34
MethodPutTXSpentOutputs
Save spent outputs for TX
node/database/transactions.go:62
MethodPutTXToBlockLink
Save link between TX and block hash
node/database/transactions.go:47
MethodPutTransaction
Add transaction record
node/database/unapprovedtransactions.go:47
MethodQM
()
node/database/mocks.go:15
MethodQM
()
node/database/manager.go:34
FunctionQuote
(s string)
node/database/utinls.go:3
FunctionRandString
(n int)
lib/utils/utils.go:260
MethodReindex
Rebuilds the DB of unspent transactions NOTE . We don't really need this. Normal code should work without reindexing. TODO to remove this function in
node/transactions/unspent.go:319
MethodReindexData
Reindex caches
node/transactions/manager.go:73
FunctionReindexUTXO
(datadir)
tests/_transfers.py:86
FunctionRemoveAllNodes
(datadir)
tests/managenodes.py:235
MethodRemoveFromChain
remove block from chain
node/database/blockchain.go:192
MethodRemoveNodeFromKnown
Removes a node from known
lib/net/nodesnetwork.go:171
MethodRemoveNodeFromKnown
(addr net.NodeAddr)
node/nodemanager/nodeslist.go:54
FunctionRemoveTestFolder
(path)
tests/_lib.py:51
MethodRepeatTransactionsFromCanceledBlocks
this is executed to add a list of transactions back to unapproved list (pool) it is used to add transactions back to pool from canceled blocks in case
node/consensus/querymanager.go:230
MethodRequestCallback
(query string, sessionID string)
node/server/queryfilter.go:69
MethodRequiresBaseTransation
Checks if a query requires base transactions This will be false only for a table create SQL query, true for any other
node/dbquery/sqlupdatemanager.go:141
MethodResponseCallback
(sessionID string, err error)
node/server/queryfilter.go:118
MethodRestore
(file string)
node/database/mocks.go:71
MethodRestore
(file string)
node/database/manager.go:346
MethodRestore
restore from dump
node/nodemanager/database.go:175
FunctionReverseBlocksShortSlice
Reverce list of blocks for short info
node/structures/block.go:54
FunctionReverseBlocksSlice
Reverce list of blocks
node/structures/block.go:41
FunctionReverseBytes
ReverseBytes reverses a byte array
lib/utils/utils.go:184
MethodRun
run starts accepting TCP connection and forwarding it to MySQL server. Each incoming TCP connection is handled in own goroutine.
lib/dbproxy/mysqlproxy.go:79
MethodRun
Run function to request other nodes for changes regularly
node/server/changeschecker.go:36
FunctionSaveConfigFile
(datadir, contents)
tests/_lib.py:223
MethodSaveFirstHash
Save first (or genesis) block hash. It should be called when blockchain is created
node/database/blockchain.go:112
FunctionSend
(datadir,fromaddr,to,amount,host,port)
tests/_wallet.py:108
FunctionSend
(datadir,fromaddr,to,amount)
tests/_transfers.py:62
FunctionSendNoNode
(datadir,fromaddr,to,amount)
tests/_wallet.py:125
FunctionSendTooMuch
(datadir,fromaddr,to,amount,host,port)
tests/_wallet.py:142
FunctionSendTooMuch
(datadir,fromaddr,to,amount)
tests/_transfers.py:79
FunctionSendTooMuchNoNode
(datadir,fromaddr,to,amount)
tests/_wallet.py:147
MethodSerialize
Serialise BlockShort to bytes
node/structures/block.go:68
MethodSerialize
Serialize serializes TXOutputs
node/structures/transaction_output.go:86
MethodSetCallbacks
(requestCallback RequestQueryFilterCallback, responseCallback ResponseFilterCallback)
lib/dbproxy/interface.go:8
MethodSetCallbacks
Set filtering callback function
lib/dbproxy/mysqlproxy.go:62
MethodSetConfig
(config DatabaseConfig)
node/database/mocks.go:18
MethodSetConfig
(config database.DatabaseConfig)
node/nodemanager/database.go:62
MethodSetDBManager
(DB database.DBManager)
node/consensus/blockmaker.go:30
MethodSetFilter
Set query filter structure
lib/dbproxy/mysqlproxy.go:68
MethodSetLockerObject
(lockerobj DatabaseLocker)
node/database/mocks.go:66
MethodSetLockerObject
(lockerobj DatabaseLocker)
node/database/manager.go:312
MethodSetLogManager
(Logger *utils.LoggerMan)
node/consensus/interface.go:40
MethodSetLogManager
(Logger *utils.LoggerMan)
node/consensus/blockmaker.go:33
MethodSetLogger
(logger *utils.LoggerMan)
node/database/mocks.go:21
MethodSetLogger
(Logger *utils.LoggerMan)
node/nodemanager/database.go:58
MethodSetMinterAddress
(minter string)
node/consensus/interface.go:41
MethodSetMinterAddress
(minter string)
node/consensus/blockmaker.go:36
FunctionSetNodeConfig
(datadir,host,port)
tests/_wallet.py:152
← previousnext →1,001–1,100 of 1,260, ranked by callers