Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cruzbit/cruzbit
/ functions
Functions
346 in github.com/cruzbit/cruzbit
⨍
Functions
346
◇
Types & classes
70
↓ 1 callers
Method
addToInboundSet
Helper to add peers to the inbound set if they'll fit
peer_manager.go:609
↓ 1 callers
Method
addToOutboundSet
Helper to add peers to the outbound set if they'll fit
peer_manager.go:592
↓ 1 callers
Function
checkBlock
Context-free block sanity checker
processor.go:438
↓ 1 callers
Method
checkHostConnectionLimit
Returns false if this host has too many inbound connections already.
peer_manager.go:638
↓ 1 callers
Function
computeBlockWork
Compute block work given its target
block.go:151
↓ 1 callers
Function
computeTargetBitcoin
Original target computation
processor.go:691
↓ 1 callers
Function
computeTargetBitcoinCash
Revised target computation
processor.go:749
↓ 1 callers
Function
computeTransactionSeries
Compute the series to use for a new transaction.
transaction.go:143
↓ 1 callers
Method
createFilterBlock
Called from the writer context
peer.go:1495
↓ 1 callers
Function
decodeChainTip
(ctBytes []byte)
ledger_disk.go:1039
↓ 1 callers
Function
decodeLastAttemptTimeKey
(key []byte)
peer_storage_disk.go:462
↓ 1 callers
Function
decodeLastSuccessTimeKey
(key []byte)
peer_storage_disk.go:488
↓ 1 callers
Function
decodePeerInfo
(encoded []byte, info *peerInfo)
peer_storage_disk.go:509
↓ 1 callers
Function
decodePrivateKeyDbKey
(key []byte)
wallet.go:612
↓ 1 callers
Function
decodeTransactionIndex
(indexBytes []byte)
ledger_disk.go:1072
↓ 1 callers
Method
disconnectBlock
Update the ledger and transaction queue and notify undo tip channels
processor.go:911
↓ 1 callers
Function
displayHistory
(bIDs []BlockID, indices []int, stopHeight int64, stopIndex int, blockStore BlockStorage)
inspector/main.go:262
↓ 1 callers
Function
displayTransaction
(txID TransactionID, header *BlockHeader, index int, tx *Transaction)
inspector/main.go:236
↓ 1 callers
Function
dnsQueryForPeers
Query DNS seeders
dns.go:128
↓ 1 callers
Method
dropRandomPeer
Drop a random peer. Used by seeders
peer_manager.go:707
↓ 1 callers
Function
encodePeerInfo
(info peerInfo)
peer_storage_disk.go:500
↓ 1 callers
Method
existsInOutboundSet
Helper to check if a peer address exists in the outbound set
peer_manager.go:673
↓ 1 callers
Function
generateChannelName
(genesisID BlockID, n int)
irc.go:113
↓ 1 callers
Function
generateRandomNick
()
irc.go:105
↓ 1 callers
Function
generateSalt
Generate a suitable salt for use with Argon2id
wallet.go:678
↓ 1 callers
Function
generateSelfSignedCertAndKey
Generate ephemeral x.509 certificate and private key pair. They're written to the -datadir
tls.go:61
↓ 1 callers
Method
getConnectedPeers
Helper to return a copy of the connected set
peer_storage_disk.go:339
↓ 1 callers
Method
getPublicKeyTransactionIndicesRangeForward
Iterate through transaction history going forward
ledger_disk.go:678
↓ 1 callers
Method
getPublicKeyTransactionIndicesRangeReverse
Iterate through transaction history in reverse
ledger_disk.go:740
↓ 1 callers
Method
getReadLimit
Returns the maximum allowed size of a network message
peer.go:1680
↓ 1 callers
Method
handleQuery
(m *dns.Msg, externalIP string)
dns.go:35
↓ 1 callers
Function
haveLocalIPMatch
Do any of our local IPs match our external IP?
peer_manager.go:761
↓ 1 callers
Method
inboundPeerCount
()
peer_manager.go:293
↓ 1 callers
Function
init_cl
opencl/ocl.cc:82
↓ 1 callers
Method
initializeFilter
Initialize the filter
wallet.go:574
↓ 1 callers
Function
loadBanList
(banListFile string)
client/main.go:301
↓ 1 callers
Function
loadPublicKeys
(pubKeyEncoded, keyFile string)
client/main.go:264
↓ 1 callers
Function
makeTestBlock
create a deterministic test block
block_header_hasher_test.go:16
↓ 1 callers
Function
num_devices_cl
opencl/ocl.cc:8
↓ 1 callers
Method
onBlock
Handle receiving a block from a peer. Returns true if the block was newly processed and accepted.
peer.go:873
↓ 1 callers
Method
onFilterAdd
Handle a request to add a set of public keys to the filter
peer.go:1418
↓ 1 callers
Method
onFilterLoad
Handle a request to set a transaction filter for the connection
peer.go:1377
↓ 1 callers
Method
onFindCommonAncestor
Handle a find common ancestor message from a peer
peer.go:1064
↓ 1 callers
Method
onGetBalance
Handle a request for a public key's balance
peer.go:1155
↓ 1 callers
Method
onGetBalances
Handle a request for a set of public key balances.
peer.go:1182
↓ 1 callers
Method
onGetBlock
Handle a request for a block from a peer
peer.go:809
↓ 1 callers
Method
onGetBlockByHeight
Handle a request for a block by height from a peer
peer.go:815
↓ 1 callers
Method
onGetBlockHeader
Handle a request for a block header from a peer
peer.go:1116
↓ 1 callers
Method
onGetBlockHeaderByHeight
Handle a request for a block header by ID from a peer
peer.go:1122
↓ 1 callers
Method
onGetFilterTransactionQueue
Send back a filtered view of the transaction queue
peer.go:1459
↓ 1 callers
Method
onGetPeerAddresses
Received a request for peer addresses
peer.go:1517
↓ 1 callers
Method
onGetPublicKeyTransactions
Handle a request for a public key's transactions over a given height range
peer.go:1214
↓ 1 callers
Method
onGetTipHeader
Handle a request for a block header of the tip of the main chain from a peer
peer.go:1329
↓ 1 callers
Method
onGetTransaction
Handle a request for a transaction
peer.go:1280
↓ 1 callers
Method
onGetWork
Called from the writer goroutine loop
peer.go:1556
↓ 1 callers
Method
onInvBlock
Handle a message from a peer indicating block inventory available for download
peer.go:759
↓ 1 callers
Method
onPeerAddresses
Received a list of addresses
peer.go:1533
↓ 1 callers
Method
onPushTransaction
Handle receiving a transaction from a peer
peer.go:1349
↓ 1 callers
Method
onSubmitWork
Handle a submission of mining work. Called from the writer goroutine loop.
peer.go:1626
↓ 1 callers
Method
processBlock
Process a block
processor.go:391
↓ 1 callers
Method
processTransaction
Process a transaction
processor.go:190
↓ 1 callers
Function
promptForConfirmation
(prompt string, defaultResponse bool, reader *bufio.Reader)
wallet/main.go:682
↓ 1 callers
Function
promptForNumber
(prompt string, rightJustify int, reader *bufio.Reader)
wallet/main.go:673
↓ 1 callers
Function
promptForPassphrase
secure passphrase prompt helper
wallet/main.go:790
↓ 1 callers
Function
promptForTransactionID
(prompt string, rightJustify int, reader *bufio.Reader)
wallet/main.go:718
↓ 1 callers
Method
pruneIndices
Prune transaction and public key transaction indices created by the block at the given height
ledger_disk.go:441
↓ 1 callers
Function
read_file
opencl/ocl.cc:61
↓ 1 callers
Method
reconnectTip
Try to reconnect the previous tip block when acceptBlockContinue fails for the new block
processor.go:955
↓ 1 callers
Method
removeFromInboundSet
Helper to remove peers from the inbound set
peer_manager.go:689
↓ 1 callers
Method
reprocessQueue
Rebuild the balance cache and remove transactions now in violation
transaction_queue_memory.go:110
↓ 1 callers
Method
restoreIndices
Restore transaction and public key transaction indices created by the block at the given height
ledger_disk.go:492
↓ 1 callers
Method
run
()
peer_manager.go:125
↓ 1 callers
Method
run
()
wallet.go:457
↓ 1 callers
Method
run
()
dns.go:82
↓ 1 callers
Method
run
()
peer.go:189
↓ 1 callers
Method
run
()
miner.go:71
↓ 1 callers
Method
run
()
miner.go:297
↓ 1 callers
Method
run
()
processor.go:95
↓ 1 callers
Function
sendTransaction
Prompt for transaction details and request the wallet to send it
wallet/main.go:576
↓ 1 callers
Function
sha3_final
cuda/sha3.cc:137
↓ 1 callers
Function
sha3_init
opencl/sha3.cc:98
↓ 1 callers
Function
sha3_init
cuda/sha3.cc:104
↓ 1 callers
Function
sha3_update
opencl/sha3.cc:112
↓ 1 callers
Function
sha3_update
cuda/sha3.cc:118
↓ 1 callers
Method
shouldDelete
Should we delete this peer?
peer_storage_disk.go:394
↓ 1 callers
Method
shouldRetry
Should we retry this connection?
peer_storage_disk.go:369
↓ 1 callers
Method
updateDevice
Handle mining with GPU devices
block_header_hasher.go:289
↓ 1 callers
Function
verify
(ledger Ledger, blockStore BlockStorage, pubKey ed25519.PublicKey, height int64)
inspector/main.go:293
Method
Add
Add adds the block ID to the back of the queue and records the address of the peer who pushed it if it didn't exist in the queue. If it did exist and
block_queue.go:38
Method
Add
Add adds the transaction to the queue. Returns true if the transaction was added to the queue on this call.
transaction_queue_memory.go:35
Method
AddBatch
AddBatch adds a batch of transactions to the queue (a block has been disconnected.) "height" is the block chain height after this disconnection.
transaction_queue_memory.go:62
Method
AddFilter
AddFilter sends a message to add a public key to the filter.
wallet.go:305
Method
Balance
Balance returns the total current ledger balance by summing the balance of all public keys. It's only used offline for verification purposes.
ledger_disk.go:804
Method
ConnectBlock
ConnectBlock connects a block to the tip of the block chain and applies the transactions to the ledger.
ledger_disk.go:126
Function
CudaInit
()
cuda_stubs.go:9
Function
CudaMinerMine
(minerNum int, startNonce int64)
cuda_stubs.go:17
Function
CudaMinerUpdate
(minerNum int, headerBytes []byte, headerBytesLen, startNonceOffset, endNonceOffset int, target BlockID)
cuda_stubs.go:13
Method
Delete
Delete is called to explicitly remove a peer address from storage.
peer_storage_disk.go:174
Method
DisconnectBlock
DisconnectBlock disconnects a block from the tip of the block chain and undoes the effects of the transactions on the ledger.
ledger_disk.go:292
Method
Exists
Exists returns true if the block ID exists in the queue.
block_queue.go:77
← previous
next →
201–300 of 346, ranked by callers