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
↓ 3 callers
Method
StartServerInteractive
Runs a node server without a daemon. This can help to debug a node
node/server/daemon.go:207
↓ 3 callers
Method
String
String returns a human-readable representation of a transaction
node/structures/transaction.go:371
↓ 3 callers
Method
TruncateDB
()
node/database/interface.go:92
↓ 3 callers
Method
Verify
Verify verifies signatures of Transaction inputs And total amount of inputs and outputs TODO in future to replace coinstoadd with some Config structur
node/structures/transaction.go:162
↓ 3 callers
Function
VerifySignature
(signature []byte, message []byte, PubKey []byte)
lib/utils/crypt.go:74
↓ 3 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:297
↓ 3 callers
Function
checkPacketLength
checkPacketLength checks if packet length meets expected value
lib/dbproxy/decoder.go:602
↓ 3 callers
Method
cleanSQLColumnName
Clean column name. remove quotes, trim spaces etc
node/dbquery/sqlparser/parser.go:600
↓ 3 callers
Method
completeSettings
set default settingf if not provided from outside
node/consensus/proofofwork.go:158
↓ 3 callers
Method
createDaemonManager
* * Creates node server daemon manager */
node/nodecli.go:315
↓ 3 callers
Method
decodeValue
decode value from string
node/database/connection.go:184
↓ 3 callers
Function
destroyTestDB
(man *BoltDBManager)
node/database/blockchain_test.go:59
↓ 3 callers
Method
encodeKey
encode bytes to string
node/database/connection.go:167
↓ 3 callers
Method
forEachInTable
execute callback function for each record in a table
node/database/connection.go:31
↓ 3 callers
Method
getBlockMakeManager
Init block maker object. It is used to make new blocks
node/nodemanager/node.go:123
↓ 3 callers
Method
getCountInTable
get number of rows in a table
node/database/connection.go:68
↓ 3 callers
Method
getTransactionNumbersLimits
Get minimum and maximum number of transaction allowed in block for current chain
node/consensus/blockmaker.go:458
↓ 3 callers
Method
getTransactionsManager
Transactions manager object
node/nodemanager/blockchain_create.go:40
↓ 3 callers
Method
initNewTX
execute when new tranaction object is created
node/structures/transaction.go:32
↓ 3 callers
Function
newTransactionIndex
(DB database.DBManager, Logger *utils.LoggerMan)
node/transactions/index.go:26
↓ 3 callers
Method
parseKeyValueSet
parse update columns and values
node/dbquery/sqlparser/parser.go:297
↓ 3 callers
Function
proxyPacket
ProxyPacket ...
lib/dbproxy/packet.go:207
↓ 3 callers
Method
savePIDFile
Save PID file for a process
node/server/daemon.go:380
↓ 3 callers
Method
saveRecordToChain
Save record to chain table
node/database/blockchain.go:135
↓ 3 callers
Method
sendErrorBack
response error to a client
node/server/server.go:208
↓ 3 callers
Method
sendTransactionToAll
Send transaction to all known nodes. This wil send only hash and node hash to check if hash exists or no
node/nodemanager/communication.go:41
↓ 3 callers
Method
setNodeProxyKeys
Check if there is internal keys pair to sign DB proxy transactions. Attach if it is set
node/nodecli.go:178
↓ 2 callers
Method
Add
Add new transaction for the list of unapproved Before to call this function we checked that transaction is valid Now we need to check if there are no
node/transactions/pending.go:546
↓ 2 callers
Method
AddBlocks
(fromaddr net.NodeAddr, blocks [][]byte)
node/server/transit.go:25
↓ 2 callers
Function
Base58Decode
Base58Decode decodes Base58-encoded data
lib/utils/base58.go:15
↓ 2 callers
Method
BlockAdded
Block added. We need to update index of transactions
node/transactions/index.go:47
↓ 2 callers
Method
BlockRemoved
block was removed from blockchain DB from top
node/transactions/interface.go:38
↓ 2 callers
Method
CheckBlockExists
(hash []byte)
node/database/interface.go:77
↓ 2 callers
Method
CheckConnection
()
node/database/interface.go:20
↓ 2 callers
Method
CheckConnectionIsOpen
check if connection was opened
node/nodemanager/database.go:162
↓ 2 callers
Method
CheckExecutePermissions
check if this pubkey can execute this query
node/consensus/verifier.go:21
↓ 2 callers
Method
CheckForChangesOnOtherNodes
Check for updates on other nodes
node/nodemanager/communication.go:169
↓ 2 callers
Method
CheckNodeAddress
Check if node address looks fine
lib/nodeclient/nodeclient.go:255
↓ 2 callers
Method
CheckQueryNeedsPayment
check if this query requires payment for execution. return number
node/consensus/verifier.go:108
↓ 2 callers
Function
Checksum
Checksum generates a checksum for a public key
lib/utils/utils.go:239
↓ 2 callers
Method
CleanBlocks
(fromaddr net.NodeAddr)
node/server/transit.go:39
↓ 2 callers
Method
CleanConnection
clean connection object
node/nodemanager/database.go:142
↓ 2 callers
Method
CleanUnapprovedCache
()
node/transactions/interface.go:46
↓ 2 callers
Method
CommandNeedsConfig
check if this commands really needs a config file
node/config/config.go:344
↓ 2 callers
Function
CopyBlockchainWithBlocks
(suffix = "")
tests/_complex.py:561
↓ 2 callers
Method
CountUnspentOutputs
Returns toal number of transactions outputs in a cache
node/transactions/unspent.go:290
↓ 2 callers
Function
CreateWallet
(datadir)
tests/transactions.py:111
↓ 2 callers
Method
CreatedByPubKeyHash
UsesKey checks whether the address initiated the transaction
node/structures/transaction.go:341
↓ 2 callers
Method
DaemonizeServer
Makes a daemon process. It starts node server and waits for interrupt signal when to exit.
node/server/daemon.go:283
↓ 2 callers
Method
Delete
* * Delete transaction from a cache. When transaction becomes part ofa block */
node/transactions/pending.go:594
↓ 2 callers
Method
DeleteBlock
(hash []byte)
node/database/interface.go:78
↓ 2 callers
Method
DeleteRefID
(RefID []byte)
node/database/interface.go:108
↓ 2 callers
Method
DetectConflictsForNew
Check if this new transaction conflicts with any other transaction in the cache It is not allowed 2 prepared transactions have same inputs we return f
node/transactions/pending.go:696
↓ 2 callers
Method
EnableLogs
change enabled logs state
lib/utils/utils.go:70
↓ 2 callers
Method
ExecuteCommand
Executes the client command in interactive mode
node/nodecli.go:214
↓ 2 callers
Method
ExecuteRollbackQueryFromTX
(sql structures.SQLUpdate)
node/dbquery/interface.go:14
↓ 2 callers
Method
Export
Exports config to JSON string
node/consensus/config.go:184
↓ 2 callers
Method
ExtendInsert
(column string, value string, coltype string)
node/dbquery/sqlparser/interface.go:15
↓ 2 callers
Method
ForEachUnspentOutput
(address string, callback UnspentTransactionOutputCallbackInterface)
node/transactions/interface.go:25
↓ 2 callers
Method
GetAddress
GetAddress returns wallet address
lib/remoteclient/wallet.go:126
↓ 2 callers
Method
GetAddressHistory
Returns history of transactions for given address
node/nodemanager/blockchain.go:70
↓ 2 callers
Method
GetAll
()
node/database/interface.go:116
↓ 2 callers
Method
GetBestHeight
Returns height of the chain. Index of top block
node/nodemanager/blockchain.go:44
↓ 2 callers
Method
GetBestHeight
GetBestHeight returns the height of the latest block
node/blockchain/manager.go:343
↓ 2 callers
Method
GetBlock
Get block data by hash. It returns just []byte and and must be deserialised on ther place
node/database/blockchain.go:79
↓ 2 callers
Method
GetBlockChainIterator
Creates iterator to go over blockchain
node/nodemanager/node.go:118
↓ 2 callers
Method
GetBlockchainObject
returns BlockChain Database structure. does all init
node/database/manager.go:203
↓ 2 callers
Method
GetBlocksShortInfo
Returns a list of blocks short info stating from given block or from a top
node/blockchain/manager.go:431
↓ 2 callers
Method
GetComments
()
node/dbquery/sqlparser/interface.go:28
↓ 2 callers
Method
GetConfig
()
node/config/config.go:350
↓ 2 callers
Method
GetCurrencyTXsPreparedBy
Returns pending transations info prepared by address Return contains: List of all inputs used by this PubKeyHash in his pending TXs List of Outputs th
node/transactions/pending.go:254
↓ 2 callers
Method
GetCurrencyTransactionAllInfo
Get full TX, spending status and block hash for TX by ID
node/transactions/index.go:428
↓ 2 callers
Method
GetDataForTransaction
(txID []byte)
node/database/interface.go:129
↓ 2 callers
Method
GetIDString
()
node/structures/transaction.go:46
↓ 2 callers
Method
GetIfExists
Check if transaction exists in a cache of unapproved
node/transactions/pending.go:361
↓ 2 callers
Method
GetIfUnapprovedExists
(txid []byte)
node/transactions/interface.go:21
↓ 2 callers
Method
GetLockerObject
()
node/database/interface.go:14
↓ 2 callers
Method
GetMySQLConnString
()
node/database/config.go:31
↓ 2 callers
Method
GetNextBlocks
returns a list of hashes of all the blocks in the chain
node/blockchain/manager.go:544
↓ 2 callers
Method
GetNodeState
Get node state
node/nodemanager/node.go:655
↓ 2 callers
Method
GetOneColumnCondition
()
node/dbquery/sqlparser/interface.go:27
↓ 2 callers
Method
GetPrivateKeyEncoded
Encode PrivateKey to string.
lib/remoteclient/wallet.go:113
↓ 2 callers
Method
GetPublicKeyEncoded
Encode PubKey to string. We will use this for easy storing in a file
lib/remoteclient/wallet.go:108
↓ 2 callers
Method
GetSimpler
Returns simpler copy of a block. This is the version for easy print TODO . not sure we really need this
node/structures/block.go:105
↓ 2 callers
Method
GetTranactionOutputsSpent
Get list of spent outputs for TX It uses the block and top block hashes to find a range of blocks where a spending can be This index can contains spen
node/transactions/index.go:368
↓ 2 callers
Function
GetUnapprovedTransactionsEmpty
(datadir)
tests/transactions.py:131
↓ 2 callers
Method
Init
Init node. Init interfaces of all DBs, blockchain, unspent transactions, unapproved transactions
node/nodemanager/node.go:49
↓ 2 callers
Method
InitClient
Init network client object. It is used to communicate with other nodes
node/nodemanager/node.go:154
↓ 2 callers
Method
InitNodes
Load list of other nodes addresses
node/nodemanager/node.go:170
↓ 2 callers
Method
IsEmpty
()
node/structures/sqlpart.go:11
↓ 2 callers
Method
IsKind
(kind string)
node/database/errors.go:30
↓ 2 callers
Method
LogToFiles
Changes logging to files
lib/utils/utils.go:108
↓ 2 callers
Function
MakeWalletFromEncoded
(pubkeyenc, prikeyenc string)
lib/remoteclient/wallet.go:30
↓ 2 callers
Function
NewConfigDBProxyError
(err string)
lib/dbproxy/errors.go:33
↓ 2 callers
Function
NewHashDBError
(err string)
node/database/errors.go:69
↓ 2 callers
Function
NewMerkleTree
NewMerkleTree creates a new Merkle tree from a sequence of data
lib/utils/merkle_tree.go:20
↓ 2 callers
Function
NewNotFoundDBError
(kind string)
node/database/errors.go:46
↓ 2 callers
Function
NewTXNoEnoughFundsdError
(err string)
node/transactions/error.go:88
↓ 2 callers
Function
NewTXVerifyError
(err string, kind string, TX []byte)
node/transactions/error.go:74
↓ 2 callers
Function
NewTXVerifySQLBaseError
(err string, TX []byte)
node/transactions/error.go:78
← previous
next →
201–300 of 1,260, ranked by callers