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
↓ 2 callers
Method
OpenConnection
set status of connection to open
node/database/manager.go:68
↓ 2 callers
Method
PrepareNewBlock
Fills a block with transactions. But without signatures
node/structures/block.go:148
↓ 2 callers
Method
PrepareNewBlock
()
node/consensus/interface.go:42
↓ 2 callers
Method
PrintUsage
()
node/config/config.go:514
↓ 2 callers
Method
PutTXSpentOutputs
(txID []byte, outputs []byte)
node/database/interface.go:96
↓ 2 callers
Method
PutTXToBlockLink
(txID []byte, blockHash []byte)
node/database/interface.go:93
↓ 2 callers
Method
ReceivedBlockFromOtherNode
New block info received from oher node. It is only Hash and PrevHash, not full block Check if this is new block and if previous block is fine returns
node/nodemanager/node.go:562
↓ 2 callers
Method
ReceivedFullBlockFromOtherNode
* * New block info received from oher node * Check if this is new block and if previous block is fine * returns state of processing. if a block data w
node/nodemanager/node.go:589
↓ 2 callers
Method
Reindex
Reindex cach of trsnactions pointers to block
node/transactions/index.go:236
↓ 2 callers
Function
RemoveNode
(datadir, nodehost,nodeport)
tests/managenodes.py:225
↓ 2 callers
Method
RequiresBaseTransation
()
node/dbquery/interface.go:22
↓ 2 callers
Method
ResponseCallback
(sessionID string, err error)
lib/dbproxy/interface.go:42
↓ 2 callers
Method
Restore
(file string)
node/database/interface.go:35
↓ 2 callers
Method
Run
()
lib/dbproxy/interface.go:12
↓ 2 callers
Method
SaveToFile
SaveToFile saves wallets to a file
lib/remoteclient/wallets.go:193
↓ 2 callers
Method
SaveTopHash
(hash []byte)
node/database/interface.go:79
↓ 2 callers
Method
SendBlock
Send block to other node
lib/nodeclient/nodeclient.go:318
↓ 2 callers
Method
SendBlockToAll
Send block to all known nodes This is used in case when new block was received from other node or created by this node. We will notify our network abo
node/nodemanager/communication.go:96
↓ 2 callers
Method
SendGetBalance
Request for list of unspent transactions outputs It can be used by wallet to see a state of balance
lib/nodeclient/nodeclient.go:611
↓ 2 callers
Method
SendGetBlocks
Sedn request to get list of blocks on other node.
lib/nodeclient/nodeclient.go:343
↓ 2 callers
Method
SendGetData
Request for a transaction or a block to get full info by ID or Hash
lib/nodeclient/nodeclient.go:407
↓ 2 callers
Method
SendNewTransactionData
Send new transaction from a wallet to a node
lib/nodeclient/nodeclient.go:513
↓ 2 callers
Method
SendTx
Send Transaction to other node
lib/nodeclient/nodeclient.go:467
↓ 2 callers
Method
SendVersion
Send own version and blockchain state to other node
lib/nodeclient/nodeclient.go:479
↓ 2 callers
Method
SerializeHashes
Serialise list of hashes
node/transactions/index.go:311
↓ 2 callers
Method
SerializeOutputs
Serialize. We need this to store data in DB in bytes
node/transactions/index.go:285
↓ 2 callers
Method
SetLockerObject
(lockerobj DatabaseLocker)
node/database/interface.go:15
↓ 2 callers
Method
SetNodeAddress
Set currrent node address , to include itin requests to other nodes
lib/nodeclient/nodeclient.go:269
↓ 2 callers
Method
SetNodes
Set nodes list. This can be used to do initial nodes loading from config or so
lib/net/nodesnetwork.go:67
↓ 2 callers
Method
SetSQLPreviousTX
set ID of previous TX where SQL item was updated
node/structures/transaction.go:358
↓ 2 callers
Method
SetTXForRefID
(RefID []byte, txID []byte)
node/database/interface.go:106
↓ 2 callers
Method
ShiftNextBlock
(fromaddr net.NodeAddr)
node/server/transit.go:54
↓ 2 callers
Method
Start
Run function to request other nodes for changes regularly
node/server/blocksmaker.go:33
↓ 2 callers
Function
StartNodeAndImport
(port, importport, title, dbproxyport, suffix = "", host = "localhost")
tests/pullsync.py:140
↓ 2 callers
Function
StartNodeAndImport
(port, importport, title, dbproxyport, suffix = "")
tests/blocksnodes.py:84
↓ 2 callers
Method
StartServer
Starts a node in daemon mode. Creates new process and this process exists
node/server/daemon.go:145
↓ 2 callers
Method
ToBytes
converts transaction to slice of bytes this will be used to do a hash of transactions
node/structures/transaction.go:267
↓ 2 callers
Method
ToBytes
()
node/structures/sqlpart.go:18
↓ 2 callers
Method
TryToMakeBlock
Try to make a block. If no enough transactions, send new transaction to all other nodes
node/nodemanager/node.go:368
↓ 2 callers
Method
VerifyTransaction
Verify transaction against all rules
node/consensus/blockmaker.go:358
↓ 2 callers
Method
addFirstBlock
Create new blockchain from given genesis block
node/nodemanager/blockchain_create.go:230
↓ 2 callers
Method
addNonceToPrepared
(data []byte, nonce int)
node/consensus/proofofwork.go:87
↓ 2 callers
Method
checkArgumentsAreFine
Help function to ferify input arguments on start
node/server/daemon.go:113
↓ 2 callers
Method
checkPIDFile
Check state of pid file. To know if a node server is running or not
node/server/daemon.go:80
↓ 2 callers
Method
checkProcessExists
(pid int)
node/server/daemon.go:477
↓ 2 callers
Method
commandImportBlockchain
To init blockchain loaded from other node. Is executed for new nodes if blockchain already exists
node/nodecli.go:454
↓ 2 callers
Method
commandInitBlockchain
To create new blockchain from scratch
node/nodecli.go:429
↓ 2 callers
Method
completeNewTX
execute when new TX is ready. all is set. do last action
node/structures/transaction.go:37
↓ 2 callers
Function
decodeHandshakeResponse41
DecodeHandshakeResponse41 decodes handshake response packet send by client. TODO: Add packet struct comment TODO: Add packet length check
lib/dbproxy/decoder.go:226
↓ 2 callers
Function
decodeHandshakeV10
DecodeHandshakeV10 decodes initial handshake request from server. Basic packet structure shown below. See http://imysql.com/mysql-internal-manual/conn
lib/dbproxy/decoder.go:128
↓ 2 callers
Method
decodeKey
decode bytes from string
node/database/connection.go:172
↓ 2 callers
Method
deprecateEOFSet
====================================================== Protocol detection functions
lib/dbproxy/encoder.go:175
↓ 2 callers
Method
doBuildCommandData
Builds a command data. It prepares a slice of bytes from given data
lib/nodeclient/nodeclient.go:722
↓ 2 callers
Method
getBaseTransaction
Finds a transaction where a refID was last updated or which can be used as a base Firstly looks in a pool of transactions ,if not found, looks in an i
node/transactions/manager.go:1011
↓ 2 callers
Method
getBaseTransactionInChain
Finds a transaction where a refID was last updated or which can be used as a base Looks in current blockchain, not in a pool. Also starts from given T
node/transactions/manager.go:1078
↓ 2 callers
Method
getColumnDefPacket
(schema, table, column string)
lib/dbproxy/encoder.go:116
↓ 2 callers
Method
getCreateManager
Init block maker object. It is used to make new blocks
node/nodemanager/node.go:143
↓ 2 callers
Method
getPacket
()
lib/dbproxy/interface.go:19
↓ 2 callers
Method
getTableCustomConfig
check custom rule for the table about permissions
node/consensus/config.go:318
↓ 2 callers
Function
getTestDBManagerInited
()
node/database/blockchain_test.go:13
↓ 2 callers
Function
getTextCases
()
lib/utils/base58_test.go:9
↓ 2 callers
Method
getTransactionsManager
()
node/consensus/querymanager.go:39
↓ 2 callers
Method
getVerifyManager
(prevBlockNumber int)
node/consensus/blockmaker.go:51
↓ 2 callers
Method
getVerifyManager
(prevBlockNumber int)
node/consensus/querymanager.go:52
↓ 2 callers
Method
hasAnyNonDefaut
Returns trus if a Const structure has any values more 0. False if no any payments required
node/consensus/config.go:371
↓ 2 callers
Method
helperCheckTXInList
helper function to check if a TX is in the list of TXs
node/transactions/pending.go:937
↓ 2 callers
Method
initNodeClient
Inits nodeclient object. It is used to communicate with a node
lib/remoteclient/cli.go:72
↓ 2 callers
Method
loadFromFile
Load consensus config JSON from file and parse
node/consensus/config.go:104
↓ 2 callers
Method
makeNewInitialBlock
Make new initial block from prepared SQLs
node/nodemanager/blockchain_create.go:384
↓ 2 callers
Function
makeTestTX
()
node/structures/transaction_test.go:11
↓ 2 callers
Method
parseConditionDetails
parse condition details
node/dbquery/sqlparser/parser.go:405
↓ 2 callers
Method
parseConditionString
parse condition details to columns. NOTE we don't care about logic if there are AND,OR,NOT . We don't need it at this place NOTE this function can not
node/dbquery/sqlparser/parser.go:460
↓ 2 callers
Function
parseConfig
Parses input
node/config/config.go:113
↓ 2 callers
Method
parseQueryFromTX
(tx *structures.Transaction, flags int)
node/consensus/blockmaker.go:480
↓ 2 callers
Function
parseWalletBalance
(res, address)
tests/_wallet.py:4
↓ 2 callers
Method
prepareData
Prepares data for next iteration of PoW this will be hashed
node/consensus/proofofwork.go:67
↓ 2 callers
Method
prepareNewCurrencyTransactionComplete
(PubKey []byte, to string, amount float64, inputs []structures.TXCurrencyInput, totalamount float64, prevTXs
node/transactions/manager.go:895
↓ 2 callers
Method
prepareNewCurrencyTransactionStart
(PubKey []byte, to string, amount float64)
node/transactions/manager.go:844
↓ 2 callers
Function
readNullTerminatedString
ReadNullTerminatedString reads bytes from reader until 0x00 byte See https://mariadb.com/kb/en/mariadb/protocol-data-types/#null-terminated-strings
lib/dbproxy/decoder.go:579
↓ 2 callers
Method
renewCache
Loads all Txs from DB to memory
node/transactions/pending.go:60
↓ 2 callers
Method
serialize
Serialize returns a serialized Transaction
node/structures/transaction.go:239
↓ 2 callers
Method
stopAllSubroutines
Stop all sub routines on server stop
node/server/server.go:375
↓ 2 callers
Method
transactionsFromAddedBlock
check every TX from a block if SQL should be executed when block added to top of chain
node/transactions/manager.go:441
↓ 1 callers
Method
AddFromCanceled
Is used for case when a block canceled. all transactions from a block are back to unapproved cache
node/transactions/pending.go:797
↓ 1 callers
Function
AddInternalKeyToConfig
(datadir, address)
tests/_complex.py:558
↓ 1 callers
Method
AddNewTransaction
(tx *structures.Transaction, flags int)
node/transactions/interface.go:31
↓ 1 callers
Method
AddNewTransaction
New transaction reveived from other node. There is no verify. We presume it was verified before this separately
node/transactions/manager.go:521
↓ 1 callers
Function
AddNode
(datadir, nodehost,nodeport)
tests/managenodes.py:230
↓ 1 callers
Function
AddProxyToConfig
(datadir, proxhost)
tests/_complex.py:555
↓ 1 callers
Function
AddresBToPubKeyHash
(address []byte)
lib/utils/utils.go:194
↓ 1 callers
Method
AnyChangesPulled
Detects if there were any changes pulled
node/nodemanager/communication.go:416
↓ 1 callers
Function
Assert
(cond,comment)
tests/_lib.py:323
↓ 1 callers
Function
AssertStr
(s1,s2,comment)
tests/_lib.py:295
↓ 1 callers
Function
AssertSubstr
(s1,s2,comment)
tests/_lib.py:306
↓ 1 callers
Method
BlockAddedToPrimaryChain
block was not in primary chain and now is
node/transactions/interface.go:40
↓ 1 callers
Method
BlockRemoved
(block *structures.Block)
node/transactions/index.go:140
↓ 1 callers
Method
BlockRemovedFromPrimaryChain
block was in primary chain and now is not
node/transactions/interface.go:42
↓ 1 callers
Method
CheckBlockIsInRange
Receive ist of hashes and return a hash that is in the chain defined by top hash
node/blockchain/manager.go:947
↓ 1 callers
Method
CheckConfigUpdateNeeded
()
node/config/config.go:381
↓ 1 callers
Method
CheckCurrencyInputsWereBefore
Check if transaction inputs are pointed to some non approved transactions. That are listed in a block before this transactions Receives list of inputs
node/transactions/pending.go:202
← previous
next →
301–400 of 1,260, ranked by callers