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
Function
ImportBockchain
(datadir,host,port)
tests/initblockchain.py:35
↓ 1 callers
Method
ImportWallet
Import wallets from external file
lib/remoteclient/wallets.go:61
↓ 1 callers
Method
Init
Init nodes network object
lib/net/nodesnetwork.go:35
↓ 1 callers
Method
Init
()
node/dbquery/sqlupdatemanager.go:20
↓ 1 callers
Method
Init
()
node/server/daemon.go:34
↓ 1 callers
Method
Init
(l *utils.LoggerMan)
node/server/transit.go:19
↓ 1 callers
Method
InitBlockchainFromOther
Creates new blockchain DB from given list of blocks This would be used when new empty node started and syncs with other nodes
node/nodemanager/node.go:218
↓ 1 callers
Function
InitBlocksMaker
(s *NodeServer)
node/server/blocksmaker.go:17
↓ 1 callers
Function
InitBockchain
(datadir)
tests/startnode.py:24
↓ 1 callers
Method
InitLocks
create locks object
node/nodemanager/node.go:102
↓ 1 callers
Function
InitQueryFilter
(proxyAddr, dbAddr string, node *nodemanager.Node, logger *utils.LoggerMan, bmo *blocksMaker)
node/server/queryfilter.go:31
↓ 1 callers
Method
InputConnectFromNode
Action on input connection from a node. We need to remember this node It is needed to know there are input connects from other nodes
lib/net/nodesnetwork.go:112
↓ 1 callers
Method
IsDBProxyConfigError
()
lib/dbproxy/errors.go:25
↓ 1 callers
Method
IsRowNotFound
()
node/database/errors.go:34
↓ 1 callers
Method
IsSelect
Info about a parsed query. Check if is select
node/dbquery/parsed.go:38
↓ 1 callers
Method
IsUpdateOther
()
node/dbquery/parsed.go:42
↓ 1 callers
Method
LoadNodes
Loads list of nodes from storage
lib/net/nodesnetwork.go:45
↓ 1 callers
Function
MakeBlockchainWithBlocks
(port)
tests/blocksnodessql.py:125
↓ 1 callers
Function
MakeBlockchainWithBlocks
(port)
tests/blocksnodes.py:108
↓ 1 callers
Method
MakeSQLUpdateStructure
(parsed QueryParsed)
node/dbquery/interface.go:15
↓ 1 callers
Method
MakeSQLUpdateStructure
Builds SQL update structure. It fins ID of a record, and build rollback query
node/dbquery/queryprocessing.go:231
↓ 1 callers
Function
NewCustomErrorResponse
Custom responses constructors Make new Custom Error Response
lib/dbproxy/interface.go:47
↓ 1 callers
Method
NewQuery
(sql string, pubKey []byte)
node/consensus/interface.go:52
↓ 1 callers
Method
NewQueryByNode
(sql string, pubKey []byte, privKey ecdsa.PrivateKey)
node/consensus/interface.go:54
↓ 1 callers
Method
NewQueryByNodeInit
(sql string, pubKey []byte, privKey ecdsa.PrivateKey)
node/consensus/interface.go:55
↓ 1 callers
Method
NewQueryFromProxy
(sql string)
node/consensus/interface.go:56
↓ 1 callers
Function
NewQueryProcessor
(DB database.DBManager, Logger *utils.LoggerMan)
node/dbquery/interface.go:25
↓ 1 callers
Method
NewQuerySigned
Complete query execution. Accepts TX prepared with a request NewQuery and signed data private key must be corresponding to pub key used in NewQuery. S
node/consensus/querymanager.go:82
↓ 1 callers
Function
NewRowNotFoundDBError
(err string)
node/database/errors.go:73
↓ 1 callers
Function
NewTXNotFoundUOTError
(err string)
node/transactions/error.go:85
↓ 1 callers
Function
NewTXOutput
NewTXOutput create a new TXOutput
node/structures/transaction_output.go:73
↓ 1 callers
Function
NewTransaction
New "currency" transaction.
node/structures/manager.go:32
↓ 1 callers
Function
NodeState
(datadir)
tests/_node.py:22
↓ 1 callers
Method
OpenConnection
open DB connection if it is not yet opened
node/nodemanager/database.go:97
↓ 1 callers
Method
ParseQuery
checks if this query is syntax correct , return altered query if needed
node/dbquery/queryprocessing.go:22
↓ 1 callers
Function
PrepareBlockchain
(datadir,port)
tests/blocksbasic.py:164
↓ 1 callers
Method
PrepareNewCurrencyTransaction
(PubKey []byte, to string, amount float64)
node/transactions/interface.go:30
↓ 1 callers
Method
PrepareNewCurrencyTransaction
Request to make new transaction and prepare data to sign This function should find good input transactions for this amount Including inputs from unapp
node/transactions/manager.go:708
↓ 1 callers
Method
PrepareNewSQLTransaction
(PubKey []byte, sqlUpdate structures.SQLUpdate, amount float64, to string)
node/transactions/interface.go:32
↓ 1 callers
Method
PrepareSQLTransactionSignatureData
(tx *structures.Transaction)
node/transactions/interface.go:33
↓ 1 callers
Method
PutBlock
(hash []byte, blockdata []byte)
node/database/interface.go:76
↓ 1 callers
Method
PutBlock
Add block record
node/database/blockchain.go:84
↓ 1 callers
Method
PutBlockOnTop
(hash []byte, blockdata []byte)
node/database/interface.go:75
↓ 1 callers
Method
PutNode
(nodeID []byte, nodeData []byte)
node/database/interface.go:139
↓ 1 callers
Method
PutTransaction
(txID []byte, txdata []byte)
node/database/interface.go:119
↓ 1 callers
Method
ReceivedNewCurrencyTransactionData
New transactions created. It is received in serialysed view and signatures separately This data is ready to be convertd to complete gransaction
node/nodemanager/node.go:632
↓ 1 callers
Method
ReindexData
()
node/transactions/interface.go:45
↓ 1 callers
Method
RepeatTransactionsFromCanceledBlocks
(txList []structures.Transaction)
node/consensus/interface.go:57
↓ 1 callers
Method
ReportFailedConn
Notify this address got failed attempt to connect
lib/net/network.go:62
↓ 1 callers
Method
ReportSuccessConn
Notify this address got success attempt to connect
lib/net/network.go:49
↓ 1 callers
Method
RequestCallback
(query string, sessionID string)
lib/dbproxy/interface.go:41
↓ 1 callers
Method
RestoreBlockchain
Create new blockchain in empty DB using a DB dump
node/nodemanager/node.go:250
↓ 1 callers
Method
Run
Run performs a proof-of-work
node/consensus/proofofwork.go:94
↓ 1 callers
Method
SQLTransaction
Execute SQL query This adds a transaction directly to the DB. Can be executed when a node server is not running This creates SQL transaction . Currenc
node/nodemanager/node.go:347
↓ 1 callers
Method
SaveFirstHash
(hash []byte)
node/database/interface.go:81
↓ 1 callers
Method
SaveTopHash
Save top level block hash
node/database/blockchain.go:94
↓ 1 callers
Method
SendAddNode
Request to add new node to contacts
lib/nodeclient/nodeclient.go:643
↓ 1 callers
Method
SendAddrList
Send list of nodes addresses to other node
lib/nodeclient/nodeclient.go:283
↓ 1 callers
Method
SendBlockToAllASync
Send block in async mode.For case when this node was contacted from outside This only sends new block hash to all known nodes and they should contact
node/nodemanager/communication.go:108
↓ 1 callers
Method
SendBlockToAllSync
Send block in sync mode. For each node firstly request if a node has this block If no it eill send a block body
node/nodemanager/communication.go:131
↓ 1 callers
Method
SendCheckBlock
Check if tranaction exists on other node. To know if to send TX to a node in sync mode
lib/nodeclient/nodeclient.go:444
↓ 1 callers
Method
SendGetBlock
Request for a block full info form other node
lib/nodeclient/nodeclient.go:298
↓ 1 callers
Method
SendGetBlocksUpper
Request for blocks but result must be upper from some starting block
lib/nodeclient/nodeclient.go:356
↓ 1 callers
Method
SendGetConsensusData
Request for consensus information from a node
lib/nodeclient/nodeclient.go:389
↓ 1 callers
Method
SendGetFirstBlocks
Request for list of first blocks in blockchain. This is used by new nodes TODO we can use SendGetBlocksUpper and empty hash. This will e same
lib/nodeclient/nodeclient.go:371
↓ 1 callers
Method
SendGetHistory
Request for history of transaction from a wallet
lib/nodeclient/nodeclient.go:492
↓ 1 callers
Method
SendGetNodes
Request for list of nodes in contacts
lib/nodeclient/nodeclient.go:628
↓ 1 callers
Method
SendGetState
Get node blockchain height
lib/nodeclient/nodeclient.go:671
↓ 1 callers
Method
SendGetTransaction
Get tranaction with sycn request. Wait response
lib/nodeclient/nodeclient.go:421
↓ 1 callers
Method
SendGetUnspent
Request for list of unspent transactions outputs It can be used by wallet to see a state of balance
lib/nodeclient/nodeclient.go:593
↓ 1 callers
Method
SendGetUpdates
Get last updates
lib/nodeclient/nodeclient.go:686
↓ 1 callers
Method
SendRemoveNode
Request to remove a node from contacts
lib/nodeclient/nodeclient.go:657
↓ 1 callers
Method
SendRequestNewCurrencyTransaction
Request to prepare new transaction by wallet. It returns a transaction without signature. Wallet has to sign it and then use SendNewTransaction to sen
lib/nodeclient/nodeclient.go:539
↓ 1 callers
Method
SendRequestNewSQLTransaction
Request to prepare new transaction by wallet. It returns a transaction without signature. Wallet has to sign it and then use SendNewTransaction to sen
lib/nodeclient/nodeclient.go:567
↓ 1 callers
Method
SendVoid
Send void commant to other node It is used by a node to send to itself only when we want to stop a node And unblock port listetining
lib/nodeclient/nodeclient.go:276
↓ 1 callers
Function
SerializeTransaction
Serialize Transaction
node/structures/manager.go:65
↓ 1 callers
Method
SetAuthStr
Check if node address looks fine
lib/nodeclient/nodeclient.go:250
↓ 1 callers
Method
SetConfig
(config DatabaseConfig)
node/database/manager.go:38
↓ 1 callers
Method
SetConfigFilePath
Set config file path. this defines a path where a config file should be, even if it is not yet here
node/consensus/config.go:253
↓ 1 callers
Method
SetDBManager
(DB database.DBManager)
node/consensus/interface.go:39
↓ 1 callers
Method
SetExtraManager
Set extra storage for a nodes
lib/net/nodesnetwork.go:40
↓ 1 callers
Method
SetFilter
(filterObj DBProxyFilter)
lib/dbproxy/interface.go:9
↓ 1 callers
Method
SetLogger
(logger *utils.LoggerMan)
node/database/manager.go:43
↓ 1 callers
Method
SetLoggers
(t *log.Logger, e *log.Logger)
lib/dbproxy/interface.go:10
↓ 1 callers
Method
SetLoggers
(t *log.Logger, e *log.Logger)
lib/dbproxy/mysqlproxy.go:72
↓ 1 callers
Method
SetPreparedBlock
(block *structures.Block)
node/consensus/interface.go:43
↓ 1 callers
Method
SetSQLExplain
set explain info to return when requested
node/database/mocks.go:79
↓ 1 callers
Method
SetSQLPart
(sql SQLUpdate)
node/structures/transaction.go:353
↓ 1 callers
Function
StartChangesChecker
(s *NodeServer)
node/server/changeschecker.go:19
↓ 1 callers
Function
StartNode
(datadir, address, port,comment = "", hostname = "localhost")
tests/startnode.py:54
↓ 1 callers
Function
StartNodeWithoutBlockchain
(datadir)
tests/startnode.py:19
↓ 1 callers
Function
StopNode
(datadir, comment = "")
tests/startnode.py:110
↓ 1 callers
Method
StopServer
Stops a node daemon. Finds a process and kills it.
node/server/daemon.go:246
↓ 1 callers
Method
String
()
node/transactions/index.go:30
↓ 1 callers
Method
UpdateChainOnNewBranch
NOTE . Operation is done in memory. On practice we don't expect to have million of hashes in different branch. it can be 1-5 . Depends on consensus c
node/blockchain/manager.go:159
↓ 1 callers
Method
Validate
Validate validates block's PoW It calculates hash from same data and check if it is equal to block hash
node/consensus/proofofwork.go:126
↓ 1 callers
Method
VerifyBlock
(block *structures.Block, flags int)
node/consensus/interface.go:47
↓ 1 callers
Method
VerifyTransaction
(tx *structures.Transaction, prevtxs []structures.Transaction, tip []byte, flags int)
node/transactions/interface.go:23
↓ 1 callers
Method
VerifyTransaction
Verify if currency transaction is correct. If it is build on correct outputs.This does checks agains blockchain. Needs more time NOTE Transaction can
node/transactions/manager.go:552
↓ 1 callers
Method
WasConnFailure
()
lib/net/errors.go:35
← previous
next →
501–600 of 1,260, ranked by callers