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
Function
MakeRandomRange
(min, max int)
lib/utils/utils.go:310
Function
MakeWallet
()
tests/_lib.py:203
Function
MintBlock
(datadir,minter)
tests/_blocks.py:49
Method
NeedsSignature
check if needs signatures. in case of coin base doesn't need it
node/structures/transaction.go:79
Function
NewBlockFromBytes
Make Block object from bytes
node/structures/manager.go:21
Function
NewBlockMakerManager
(config *ConsensusConfig, minter string, DB database.DBManager, Logger *utils.LoggerMan)
node/consensus/interface.go:60
Function
NewBlockShortFromBytes
return BlockShort object from bytes
node/structures/manager.go:10
Function
NewBlockchainManager
(DB database.DBManager, Logger *utils.LoggerMan)
node/blockchain/manager.go:34
Function
NewBucketNotFoundDBError
()
node/database/errors.go:42
Function
NewCanNotConnectError
(err string)
lib/net/errors.go:42
Function
NewCanNotParseResponseError
(err string)
lib/net/errors.go:54
Function
NewCanNotSendError
(err string)
lib/net/errors.go:46
Function
NewCoinbaseTransaction
New "currency" Coin Base transaction. This transaction must be present in each new block
node/structures/manager.go:90
Function
NewConfigDBError
(err string)
node/database/errors.go:76
Function
NewConfigDefault
()
node/consensus/config.go:80
Function
NewConfigFromFile
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
Function
NewCustomDataKeyValueResponse
(rows []CustomResponseKeyValue)
lib/dbproxy/interface.go:53
Function
NewCustomOKResponse
(ar uint)
lib/dbproxy/interface.go:59
Function
NewCustomQueryRequest
(query string)
lib/dbproxy/interface.go:65
Function
NewDBCursorStopError
()
node/database/errors.go:54
Function
NewDBError
(err string, kind string)
node/database/errors.go:38
Function
NewDBIsNotReadyError
()
node/database/errors.go:50
Function
NewManager
(DB database.DBManager, Logger *utils.LoggerMan, ci structures.ConsensusInfo)
node/transactions/manager.go:28
Function
NewMySQLProxy
(proxyHost, mysqlHost string)
lib/dbproxy/mysqlproxy.go:27
Function
NewNoResponseError
(err string)
lib/net/errors.go:50
Function
NewNodeAddr
(host string, port int)
lib/net/network.go:31
Method
NewQuery
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
Method
NewQueryByNode
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
Method
NewQueryByNodeInit
Create new transaction and add to pool. Don't execute a query.
node/consensus/querymanager.go:130
Method
NewQueryFromProxy
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
Method
NewQuerySigned
(txEncoded []byte, signature []byte)
node/consensus/interface.go:53
Function
NewSQLQueryManager
(config *ConsensusConfig, DB database.DBManager, Logger *utils.LoggerMan, pubKey []byte, privKey ecdsa.Private
node/consensus/interface.go:69
Function
NewSQLTransaction
New "SQL" transaction.
node/structures/manager.go:42
Function
NewSQLUpdate
(sql string, referenceID string, rollbackSQL string)
node/structures/manager.go:54
Function
NewSQLUpdateManager
(SQLUpdate structures.SQLUpdate)
node/dbquery/interface.go:29
Function
NewTXNotFoundError
(err string, kind string)
node/transactions/error.go:82
Method
OpenConnection
()
node/database/mocks.go:28
Method
Parse
(sqlquery string)
node/dbquery/sqlparser/parser.go:29
Method
PrepareNewBlock
()
node/consensus/blockmaker.go:59
Method
PrepareNewSQLTransaction
Make new transaction for SQL command amount to pay for TX can be 0
node/transactions/manager.go:721
Function
PrepareNodes
()
tests/_complex.py:23
Function
PrepareNodesWithSQL
()
tests/_complex.py:247
Method
PrepareSQLTransactionSignatureData
Prepare transaction for rebuild. This generates new string to sign for modified transaction
node/transactions/manager.go:807
Function
PubKeyHashToAddres
Converts hash of pubkey to address as a string
lib/utils/utils.go:207
Function
PubKeyToAddres
Makes string adres from pub key
lib/utils/utils.go:222
Method
PutBlockOnTop
Add block to the top of block chain
node/database/blockchain.go:68
Method
PutDataForTransaction
(txID []byte, txData []byte)
node/database/unspentoutputs.go:44
Method
PutNode
Save node info
node/database/nodes.go:34
Method
PutTXSpentOutputs
Save spent outputs for TX
node/database/transactions.go:62
Method
PutTXToBlockLink
Save link between TX and block hash
node/database/transactions.go:47
Method
PutTransaction
Add transaction record
node/database/unapprovedtransactions.go:47
Method
QM
()
node/database/mocks.go:15
Method
QM
()
node/database/manager.go:34
Function
Quote
(s string)
node/database/utinls.go:3
Function
RandString
(n int)
lib/utils/utils.go:260
Method
Reindex
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
Method
ReindexData
Reindex caches
node/transactions/manager.go:73
Function
ReindexUTXO
(datadir)
tests/_transfers.py:86
Function
RemoveAllNodes
(datadir)
tests/managenodes.py:235
Method
RemoveFromChain
remove block from chain
node/database/blockchain.go:192
Method
RemoveNodeFromKnown
Removes a node from known
lib/net/nodesnetwork.go:171
Method
RemoveNodeFromKnown
(addr net.NodeAddr)
node/nodemanager/nodeslist.go:54
Function
RemoveTestFolder
(path)
tests/_lib.py:51
Method
RepeatTransactionsFromCanceledBlocks
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
Method
RequestCallback
(query string, sessionID string)
node/server/queryfilter.go:69
Method
RequiresBaseTransation
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
Method
ResponseCallback
(sessionID string, err error)
node/server/queryfilter.go:118
Method
Restore
(file string)
node/database/mocks.go:71
Method
Restore
(file string)
node/database/manager.go:346
Method
Restore
restore from dump
node/nodemanager/database.go:175
Function
ReverseBlocksShortSlice
Reverce list of blocks for short info
node/structures/block.go:54
Function
ReverseBlocksSlice
Reverce list of blocks
node/structures/block.go:41
Function
ReverseBytes
ReverseBytes reverses a byte array
lib/utils/utils.go:184
Method
Run
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
Method
Run
Run function to request other nodes for changes regularly
node/server/changeschecker.go:36
Function
SaveConfigFile
(datadir, contents)
tests/_lib.py:223
Method
SaveFirstHash
Save first (or genesis) block hash. It should be called when blockchain is created
node/database/blockchain.go:112
Function
Send
(datadir,fromaddr,to,amount,host,port)
tests/_wallet.py:108
Function
Send
(datadir,fromaddr,to,amount)
tests/_transfers.py:62
Function
SendNoNode
(datadir,fromaddr,to,amount)
tests/_wallet.py:125
Function
SendTooMuch
(datadir,fromaddr,to,amount,host,port)
tests/_wallet.py:142
Function
SendTooMuch
(datadir,fromaddr,to,amount)
tests/_transfers.py:79
Function
SendTooMuchNoNode
(datadir,fromaddr,to,amount)
tests/_wallet.py:147
Method
Serialize
Serialise BlockShort to bytes
node/structures/block.go:68
Method
Serialize
Serialize serializes TXOutputs
node/structures/transaction_output.go:86
Method
SetCallbacks
(requestCallback RequestQueryFilterCallback, responseCallback ResponseFilterCallback)
lib/dbproxy/interface.go:8
Method
SetCallbacks
Set filtering callback function
lib/dbproxy/mysqlproxy.go:62
Method
SetConfig
(config DatabaseConfig)
node/database/mocks.go:18
Method
SetConfig
(config database.DatabaseConfig)
node/nodemanager/database.go:62
Method
SetDBManager
(DB database.DBManager)
node/consensus/blockmaker.go:30
Method
SetFilter
Set query filter structure
lib/dbproxy/mysqlproxy.go:68
Method
SetLockerObject
(lockerobj DatabaseLocker)
node/database/mocks.go:66
Method
SetLockerObject
(lockerobj DatabaseLocker)
node/database/manager.go:312
Method
SetLogManager
(Logger *utils.LoggerMan)
node/consensus/interface.go:40
Method
SetLogManager
(Logger *utils.LoggerMan)
node/consensus/blockmaker.go:33
Method
SetLogger
(logger *utils.LoggerMan)
node/database/mocks.go:21
Method
SetLogger
(Logger *utils.LoggerMan)
node/nodemanager/database.go:58
Method
SetMinterAddress
(minter string)
node/consensus/interface.go:41
Method
SetMinterAddress
(minter string)
node/consensus/blockmaker.go:36
Function
SetNodeConfig
(datadir,host,port)
tests/_wallet.py:152
← previous
next →
1,001–1,100 of 1,260, ranked by callers