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
↓ 162 callers
Method
Send
Send money . This adds a transaction directly to the DB. Can be executed when a node server is not running This creates currency transfer transaction
node/nodemanager/node.go:323
↓ 98 callers
Method
GetID
Return ID of transaction
node/structures/transaction.go:42
↓ 81 callers
Method
Error
()
node/database/errors.go:22
↓ 61 callers
Method
GetKind
()
node/dbquery/sqlparser/interface.go:17
↓ 58 callers
Method
Error
()
lib/net/errors.go:19
↓ 37 callers
Method
ExecuteSQL
(sql string)
node/database/interface.go:36
↓ 37 callers
Method
Write
data posted from client to server
lib/dbproxy/mysqlproxy.go:259
↓ 34 callers
Method
CreateWallet
CreateWallet adds a Wallet to Wallets
lib/remoteclient/wallets.go:42
↓ 33 callers
Method
NodeAddrToString
Convert to string in format host:port
lib/net/network.go:39
↓ 32 callers
Method
Error
()
node/transactions/error.go:48
↓ 31 callers
Method
GetNodes
()
lib/net/nodesnetwork.go:13
↓ 28 callers
Method
DB
()
node/nodemanager/database.go:18
↓ 25 callers
Method
Close
()
node/database/interface.go:66
↓ 25 callers
Method
GetTransactionsManager
Build transaction manager structure
node/nodemanager/node.go:108
↓ 24 callers
Method
getUnapprovedTransactionsManager
Create unapproved tx manage object to use in this package
node/transactions/manager.go:47
↓ 23 callers
Method
IsCoinbaseTransfer
check if TX is coin base
node/structures/transaction.go:74
↓ 21 callers
Method
BuildCommandData
Builds a command data. It prepares a slice of bytes from given data
lib/nodeclient/nodeclient.go:717
↓ 21 callers
Method
Next
Next returns next block starting from the tip
node/blockchain/iterator.go:41
↓ 20 callers
Method
GetTable
()
node/dbquery/sqlparser/interface.go:21
↓ 20 callers
Method
IsSQLCommand
IsCoinbase checks whether the transaction is coinbase
node/structures/transaction.go:69
↓ 20 callers
Method
parseRequestData
Reads and parses request from network data
node/server/handle.go:38
↓ 18 callers
Method
GetBlockchainObject
()
node/database/interface.go:25
↓ 16 callers
Function
NewMerkleNode
NewMerkleNode creates a new Merkle tree node
lib/utils/merkle_tree.go:54
↓ 16 callers
Method
SendDataWaitResponse
Send data to a node and wait for response
lib/nodeclient/nodeclient.go:794
↓ 15 callers
Method
QM
()
node/database/interface.go:10
↓ 14 callers
Method
CloseConnection
()
node/database/interface.go:22
↓ 14 callers
Method
CompareToAddress
Compare to other node address if is same
lib/net/network.go:73
↓ 13 callers
Method
GetLocationInChain
(hash []byte)
node/database/interface.go:84
↓ 12 callers
Method
DeserializeTransaction
DeserializeTransaction deserializes a transaction
node/structures/transaction.go:254
↓ 12 callers
Method
Parse
(sqlquery string)
node/dbquery/sqlparser/interface.go:14
↓ 12 callers
Method
ValidateAddress
ValidateAddress check if address is valid, has valid format
lib/remoteclient/wallet.go:139
↓ 12 callers
Function
copyConfig
(datadir, destfile,minter, port, port2, port3)
tests/_complex.py:519
↓ 12 callers
Method
getConnection
returns DB connection, creates it if needed .
node/database/manager.go:286
↓ 11 callers
Method
AddToChain
(hash, prevHash []byte)
node/database/interface.go:87
↓ 11 callers
Method
Error
()
lib/dbproxy/errors.go:14
↓ 11 callers
Function
GetNodes
(datadir)
tests/managenodes.py:195
↓ 11 callers
Method
GetState
Returns info about the top block. Hash and Height
node/blockchain/manager.go:366
↓ 11 callers
Method
Serialize
Serialize serializes the block
node/structures/block.go:189
↓ 11 callers
Method
getUnspentOutputsManager
Create unspent outputx manage object to use in this package
node/transactions/manager.go:63
↓ 10 callers
Method
CheckAddressKnown
Check if the address is known . If not then add to known and send list of all addresses to that node
node/nodemanager/node.go:290
↓ 10 callers
Method
Copy
Creates copy of a block
node/structures/block.go:120
↓ 10 callers
Method
GetBlock
GetBlock finds a block by its hash and returns i
node/blockchain/manager.go:401
↓ 10 callers
Method
Put
Put record in DB
node/database/connection.go:138
↓ 10 callers
Method
forwardCommandToWallet
Forwards a command to wallet object. This is needed for cases when a node does some operation with local wallets
node/nodecli.go:409
↓ 10 callers
Method
getServerPidFile
Build a pid file path
node/server/daemon.go:42
↓ 9 callers
Method
BlockInChain
(hash []byte)
node/database/interface.go:85
↓ 9 callers
Method
Delete
Delete record from DB
node/database/connection.go:147
↓ 9 callers
Method
ExecuteQuery
(sql string)
node/dbquery/interface.go:11
↓ 9 callers
Method
Get
Get record from DB
node/database/connection.go:83
↓ 9 callers
Method
GetIfExists
(txid []byte)
node/transactions/interface.go:20
↓ 9 callers
Method
GetUnspentOutputsObject
()
node/database/interface.go:28
↓ 9 callers
Method
SendData
Sends prepared command to a node. This doesn't wait any response
lib/nodeclient/nodeclient.go:759
↓ 9 callers
Method
forEachTransaction
(callback foreachFunction)
node/transactions/pending.go:107
↓ 8 callers
Method
CreateTable
create key value table
node/database/connection.go:161
↓ 8 callers
Function
Exit
()
tests/_lib.py:234
↓ 8 callers
Method
GetBCManager
()
node/nodemanager/blockchain.go:22
↓ 8 callers
Method
GetBlock
(hash []byte)
node/database/interface.go:74
↓ 8 callers
Method
GetCommunicationManager
Create communication object to do requests to othernodes
node/nodemanager/node.go:133
↓ 8 callers
Method
GetPublicKey
Returns public key of a wallet
lib/remoteclient/wallet.go:97
↓ 8 callers
Method
GetSQLBaseTX
returns base TX for this SQL update TX
node/structures/transaction.go:51
↓ 8 callers
Method
GetSQLQuery
returns SQL command as string
node/structures/transaction.go:363
↓ 8 callers
Method
GetUnapprovedTransactionsObject
()
node/database/interface.go:27
↓ 8 callers
Method
Lock
Lock signs the output
node/structures/transaction_output.go:36
↓ 8 callers
Function
NewBlockchainIteratorFrom
Creates new Blockchain Iterator from given block hash. Can be used to do something with blockchain from outside
node/blockchain/iterator.go:36
↓ 8 callers
Method
getBlocksTable
()
node/database/blockchain.go:16
↓ 8 callers
Method
getLengEncStr
Returns length encoded string for MySQL protocol
lib/dbproxy/encoder.go:143
↓ 8 callers
Method
getTableName
()
node/database/unapprovedtransactions.go:10
↓ 8 callers
Method
getWalletsCLI
Creates wallet object for operation related to wallets list management
node/nodecli.go:376
↓ 8 callers
Method
unlockCache
Unlock transactions cache access
node/transactions/pending.go:39
↓ 7 callers
Method
AddNodeToKnown
(addr NodeAddr)
lib/net/nodesnetwork.go:14
↓ 7 callers
Method
GetCanonicalQuery
()
node/dbquery/sqlparser/interface.go:16
↓ 7 callers
Method
GetUpdateColumns
()
node/dbquery/sqlparser/interface.go:24
↓ 7 callers
Method
GetWallet
GetWallet returns a Wallet by its address
lib/remoteclient/wallets.go:144
↓ 7 callers
Method
IsLockedWithKey
IsLockedWithKey checks if the output can be used by the owner of the pubkey
node/structures/transaction_output.go:52
↓ 7 callers
Method
UpdateConfig
()
node/config/config.go:388
↓ 7 callers
Method
getDataRowsAndTransacionsManager
Create unspent outputx manage object to use in this package
node/transactions/manager.go:68
↓ 7 callers
Method
getTableName
Get table name
node/database/unspentoutputs.go:11
↓ 7 callers
Method
loadPIDFile
Laads PID file.
node/server/daemon.go:413
↓ 6 callers
Method
ForEach
(callback ForEachKeyIteratorInterface)
node/database/interface.go:136
↓ 6 callers
Method
GetBCManager
Build BC manager structure
node/nodemanager/node.go:113
↓ 6 callers
Method
GetBlocksCount
(fromaddr net.NodeAddr)
node/server/transit.go:47
↓ 6 callers
Function
GetDBConnection
(testdatadir = "", usedb = False, proxy = False)
tests/_lib.py:139
↓ 6 callers
Method
GetPrivateKey
Reurns private key of a wallet
lib/remoteclient/wallet.go:102
↓ 6 callers
Method
GetShortCopy
Returns short copy of a block. It is just hash + prevhash
node/structures/block.go:94
↓ 6 callers
Function
GetUnapprovedTransactions
(datadir)
tests/transactions.py:137
↓ 6 callers
Method
InitDB
()
node/database/interface.go:135
↓ 6 callers
Method
ParseQuery
(sqlquery string, flags int)
node/dbquery/interface.go:10
↓ 6 callers
Method
completePacket
make a data to be a packet in a sequence
lib/dbproxy/encoder.go:103
↓ 6 callers
Method
deserializeOutputs
* * Deserialize data from bytes loaded fom DB */
node/transactions/unspent.go:44
↓ 6 callers
Method
getBlockchainManager
Blockchain DB manager.
node/consensus/blockmaker.go:46
↓ 6 callers
Function
getCurrentDir
()
tests/_lib.py:19
↓ 6 callers
Method
getIndexManager
Create tx index object to use in this package
node/transactions/manager.go:42
↓ 6 callers
Method
getTableName
()
node/database/nodes.go:11
↓ 6 callers
Method
lockCache
Lock Transactions Cache access
node/transactions/pending.go:31
↓ 6 callers
Function
readPacket
ReadPacket ...
lib/dbproxy/packet.go:175
↓ 5 callers
Method
BlockAdded
new block was created in blockchain DB. It must not be on top of primary blockchain
node/transactions/interface.go:36
↓ 5 callers
Method
CancelTransaction
* * Cancels unapproved transaction. * NOTE this can work only for local node. it a transaction was already sent to other nodes, it will not be cancele
node/transactions/manager.go:237
↓ 5 callers
Method
CheckBlockState
* * Checks state of a block by hashes * returns * -1 BCBState_error * 0 BCBState_canAdd if block doesn't exist and prev block exists * 1 BCBState_exis
node/nodemanager/blockchain.go:147
↓ 5 callers
Method
CompleteTransaction
Sets signatures for inputs. Signatures were created separately for data set prepared before in the function PrepareSignData
node/structures/transaction.go:151
↓ 5 callers
Function
DumpBCDB
(datadir, dumpfile)
tests/_complex.py:544
next →
1–100 of 1,260, ranked by callers