MCPcopy Create free account

hub / github.com/Gelembjuk/oursql / functions

Functions1,260 in github.com/Gelembjuk/oursql

↓ 1 callersFunctionImportBockchain
(datadir,host,port)
tests/initblockchain.py:35
↓ 1 callersMethodImportWallet
Import wallets from external file
lib/remoteclient/wallets.go:61
↓ 1 callersMethodInit
Init nodes network object
lib/net/nodesnetwork.go:35
↓ 1 callersMethodInit
()
node/dbquery/sqlupdatemanager.go:20
↓ 1 callersMethodInit
()
node/server/daemon.go:34
↓ 1 callersMethodInit
(l *utils.LoggerMan)
node/server/transit.go:19
↓ 1 callersMethodInitBlockchainFromOther
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 callersFunctionInitBlocksMaker
(s *NodeServer)
node/server/blocksmaker.go:17
↓ 1 callersFunctionInitBockchain
(datadir)
tests/startnode.py:24
↓ 1 callersMethodInitLocks
create locks object
node/nodemanager/node.go:102
↓ 1 callersFunctionInitQueryFilter
(proxyAddr, dbAddr string, node *nodemanager.Node, logger *utils.LoggerMan, bmo *blocksMaker)
node/server/queryfilter.go:31
↓ 1 callersMethodInputConnectFromNode
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 callersMethodIsDBProxyConfigError
()
lib/dbproxy/errors.go:25
↓ 1 callersMethodIsRowNotFound
()
node/database/errors.go:34
↓ 1 callersMethodIsSelect
Info about a parsed query. Check if is select
node/dbquery/parsed.go:38
↓ 1 callersMethodIsUpdateOther
()
node/dbquery/parsed.go:42
↓ 1 callersMethodLoadNodes
Loads list of nodes from storage
lib/net/nodesnetwork.go:45
↓ 1 callersFunctionMakeBlockchainWithBlocks
(port)
tests/blocksnodessql.py:125
↓ 1 callersFunctionMakeBlockchainWithBlocks
(port)
tests/blocksnodes.py:108
↓ 1 callersMethodMakeSQLUpdateStructure
(parsed QueryParsed)
node/dbquery/interface.go:15
↓ 1 callersMethodMakeSQLUpdateStructure
Builds SQL update structure. It fins ID of a record, and build rollback query
node/dbquery/queryprocessing.go:231
↓ 1 callersFunctionNewCustomErrorResponse
Custom responses constructors Make new Custom Error Response
lib/dbproxy/interface.go:47
↓ 1 callersMethodNewQuery
(sql string, pubKey []byte)
node/consensus/interface.go:52
↓ 1 callersMethodNewQueryByNode
(sql string, pubKey []byte, privKey ecdsa.PrivateKey)
node/consensus/interface.go:54
↓ 1 callersMethodNewQueryByNodeInit
(sql string, pubKey []byte, privKey ecdsa.PrivateKey)
node/consensus/interface.go:55
↓ 1 callersMethodNewQueryFromProxy
(sql string)
node/consensus/interface.go:56
↓ 1 callersFunctionNewQueryProcessor
(DB database.DBManager, Logger *utils.LoggerMan)
node/dbquery/interface.go:25
↓ 1 callersMethodNewQuerySigned
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 callersFunctionNewRowNotFoundDBError
(err string)
node/database/errors.go:73
↓ 1 callersFunctionNewTXNotFoundUOTError
(err string)
node/transactions/error.go:85
↓ 1 callersFunctionNewTXOutput
NewTXOutput create a new TXOutput
node/structures/transaction_output.go:73
↓ 1 callersFunctionNewTransaction
New "currency" transaction.
node/structures/manager.go:32
↓ 1 callersFunctionNodeState
(datadir)
tests/_node.py:22
↓ 1 callersMethodOpenConnection
open DB connection if it is not yet opened
node/nodemanager/database.go:97
↓ 1 callersMethodParseQuery
checks if this query is syntax correct , return altered query if needed
node/dbquery/queryprocessing.go:22
↓ 1 callersFunctionPrepareBlockchain
(datadir,port)
tests/blocksbasic.py:164
↓ 1 callersMethodPrepareNewCurrencyTransaction
(PubKey []byte, to string, amount float64)
node/transactions/interface.go:30
↓ 1 callersMethodPrepareNewCurrencyTransaction
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 callersMethodPrepareNewSQLTransaction
(PubKey []byte, sqlUpdate structures.SQLUpdate, amount float64, to string)
node/transactions/interface.go:32
↓ 1 callersMethodPrepareSQLTransactionSignatureData
(tx *structures.Transaction)
node/transactions/interface.go:33
↓ 1 callersMethodPutBlock
(hash []byte, blockdata []byte)
node/database/interface.go:76
↓ 1 callersMethodPutBlock
Add block record
node/database/blockchain.go:84
↓ 1 callersMethodPutBlockOnTop
(hash []byte, blockdata []byte)
node/database/interface.go:75
↓ 1 callersMethodPutNode
(nodeID []byte, nodeData []byte)
node/database/interface.go:139
↓ 1 callersMethodPutTransaction
(txID []byte, txdata []byte)
node/database/interface.go:119
↓ 1 callersMethodReceivedNewCurrencyTransactionData
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 callersMethodReindexData
()
node/transactions/interface.go:45
↓ 1 callersMethodRepeatTransactionsFromCanceledBlocks
(txList []structures.Transaction)
node/consensus/interface.go:57
↓ 1 callersMethodReportFailedConn
Notify this address got failed attempt to connect
lib/net/network.go:62
↓ 1 callersMethodReportSuccessConn
Notify this address got success attempt to connect
lib/net/network.go:49
↓ 1 callersMethodRequestCallback
(query string, sessionID string)
lib/dbproxy/interface.go:41
↓ 1 callersMethodRestoreBlockchain
Create new blockchain in empty DB using a DB dump
node/nodemanager/node.go:250
↓ 1 callersMethodRun
Run performs a proof-of-work
node/consensus/proofofwork.go:94
↓ 1 callersMethodSQLTransaction
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 callersMethodSaveFirstHash
(hash []byte)
node/database/interface.go:81
↓ 1 callersMethodSaveTopHash
Save top level block hash
node/database/blockchain.go:94
↓ 1 callersMethodSendAddNode
Request to add new node to contacts
lib/nodeclient/nodeclient.go:643
↓ 1 callersMethodSendAddrList
Send list of nodes addresses to other node
lib/nodeclient/nodeclient.go:283
↓ 1 callersMethodSendBlockToAllASync
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 callersMethodSendBlockToAllSync
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 callersMethodSendCheckBlock
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 callersMethodSendGetBlock
Request for a block full info form other node
lib/nodeclient/nodeclient.go:298
↓ 1 callersMethodSendGetBlocksUpper
Request for blocks but result must be upper from some starting block
lib/nodeclient/nodeclient.go:356
↓ 1 callersMethodSendGetConsensusData
Request for consensus information from a node
lib/nodeclient/nodeclient.go:389
↓ 1 callersMethodSendGetFirstBlocks
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 callersMethodSendGetHistory
Request for history of transaction from a wallet
lib/nodeclient/nodeclient.go:492
↓ 1 callersMethodSendGetNodes
Request for list of nodes in contacts
lib/nodeclient/nodeclient.go:628
↓ 1 callersMethodSendGetState
Get node blockchain height
lib/nodeclient/nodeclient.go:671
↓ 1 callersMethodSendGetTransaction
Get tranaction with sycn request. Wait response
lib/nodeclient/nodeclient.go:421
↓ 1 callersMethodSendGetUnspent
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 callersMethodSendGetUpdates
Get last updates
lib/nodeclient/nodeclient.go:686
↓ 1 callersMethodSendRemoveNode
Request to remove a node from contacts
lib/nodeclient/nodeclient.go:657
↓ 1 callersMethodSendRequestNewCurrencyTransaction
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 callersMethodSendRequestNewSQLTransaction
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 callersMethodSendVoid
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 callersFunctionSerializeTransaction
Serialize Transaction
node/structures/manager.go:65
↓ 1 callersMethodSetAuthStr
Check if node address looks fine
lib/nodeclient/nodeclient.go:250
↓ 1 callersMethodSetConfig
(config DatabaseConfig)
node/database/manager.go:38
↓ 1 callersMethodSetConfigFilePath
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 callersMethodSetDBManager
(DB database.DBManager)
node/consensus/interface.go:39
↓ 1 callersMethodSetExtraManager
Set extra storage for a nodes
lib/net/nodesnetwork.go:40
↓ 1 callersMethodSetFilter
(filterObj DBProxyFilter)
lib/dbproxy/interface.go:9
↓ 1 callersMethodSetLogger
(logger *utils.LoggerMan)
node/database/manager.go:43
↓ 1 callersMethodSetLoggers
(t *log.Logger, e *log.Logger)
lib/dbproxy/interface.go:10
↓ 1 callersMethodSetLoggers
(t *log.Logger, e *log.Logger)
lib/dbproxy/mysqlproxy.go:72
↓ 1 callersMethodSetPreparedBlock
(block *structures.Block)
node/consensus/interface.go:43
↓ 1 callersMethodSetSQLExplain
set explain info to return when requested
node/database/mocks.go:79
↓ 1 callersMethodSetSQLPart
(sql SQLUpdate)
node/structures/transaction.go:353
↓ 1 callersFunctionStartChangesChecker
(s *NodeServer)
node/server/changeschecker.go:19
↓ 1 callersFunctionStartNode
(datadir, address, port,comment = "", hostname = "localhost")
tests/startnode.py:54
↓ 1 callersFunctionStartNodeWithoutBlockchain
(datadir)
tests/startnode.py:19
↓ 1 callersFunctionStopNode
(datadir, comment = "")
tests/startnode.py:110
↓ 1 callersMethodStopServer
Stops a node daemon. Finds a process and kills it.
node/server/daemon.go:246
↓ 1 callersMethodString
()
node/transactions/index.go:30
↓ 1 callersMethodUpdateChainOnNewBranch
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 callersMethodValidate
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 callersMethodVerifyBlock
(block *structures.Block, flags int)
node/consensus/interface.go:47
↓ 1 callersMethodVerifyTransaction
(tx *structures.Transaction, prevtxs []structures.Transaction, tip []byte, flags int)
node/transactions/interface.go:23
↓ 1 callersMethodVerifyTransaction
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 callersMethodWasConnFailure
()
lib/net/errors.go:35
← previousnext →501–600 of 1,260, ranked by callers