MCPcopy Create free account

hub / github.com/cruzbit/cruzbit / functions

Functions346 in github.com/cruzbit/cruzbit

↓ 1 callersMethodaddToInboundSet
Helper to add peers to the inbound set if they'll fit
peer_manager.go:609
↓ 1 callersMethodaddToOutboundSet
Helper to add peers to the outbound set if they'll fit
peer_manager.go:592
↓ 1 callersFunctioncheckBlock
Context-free block sanity checker
processor.go:438
↓ 1 callersMethodcheckHostConnectionLimit
Returns false if this host has too many inbound connections already.
peer_manager.go:638
↓ 1 callersFunctioncomputeBlockWork
Compute block work given its target
block.go:151
↓ 1 callersFunctioncomputeTargetBitcoin
Original target computation
processor.go:691
↓ 1 callersFunctioncomputeTargetBitcoinCash
Revised target computation
processor.go:749
↓ 1 callersFunctioncomputeTransactionSeries
Compute the series to use for a new transaction.
transaction.go:143
↓ 1 callersMethodcreateFilterBlock
Called from the writer context
peer.go:1495
↓ 1 callersFunctiondecodeChainTip
(ctBytes []byte)
ledger_disk.go:1039
↓ 1 callersFunctiondecodeLastAttemptTimeKey
(key []byte)
peer_storage_disk.go:462
↓ 1 callersFunctiondecodeLastSuccessTimeKey
(key []byte)
peer_storage_disk.go:488
↓ 1 callersFunctiondecodePeerInfo
(encoded []byte, info *peerInfo)
peer_storage_disk.go:509
↓ 1 callersFunctiondecodePrivateKeyDbKey
(key []byte)
wallet.go:612
↓ 1 callersFunctiondecodeTransactionIndex
(indexBytes []byte)
ledger_disk.go:1072
↓ 1 callersMethoddisconnectBlock
Update the ledger and transaction queue and notify undo tip channels
processor.go:911
↓ 1 callersFunctiondisplayHistory
(bIDs []BlockID, indices []int, stopHeight int64, stopIndex int, blockStore BlockStorage)
inspector/main.go:262
↓ 1 callersFunctiondisplayTransaction
(txID TransactionID, header *BlockHeader, index int, tx *Transaction)
inspector/main.go:236
↓ 1 callersFunctiondnsQueryForPeers
Query DNS seeders
dns.go:128
↓ 1 callersMethoddropRandomPeer
Drop a random peer. Used by seeders
peer_manager.go:707
↓ 1 callersFunctionencodePeerInfo
(info peerInfo)
peer_storage_disk.go:500
↓ 1 callersMethodexistsInOutboundSet
Helper to check if a peer address exists in the outbound set
peer_manager.go:673
↓ 1 callersFunctiongenerateChannelName
(genesisID BlockID, n int)
irc.go:113
↓ 1 callersFunctiongenerateRandomNick
()
irc.go:105
↓ 1 callersFunctiongenerateSalt
Generate a suitable salt for use with Argon2id
wallet.go:678
↓ 1 callersFunctiongenerateSelfSignedCertAndKey
Generate ephemeral x.509 certificate and private key pair. They're written to the -datadir
tls.go:61
↓ 1 callersMethodgetConnectedPeers
Helper to return a copy of the connected set
peer_storage_disk.go:339
↓ 1 callersMethodgetPublicKeyTransactionIndicesRangeForward
Iterate through transaction history going forward
ledger_disk.go:678
↓ 1 callersMethodgetPublicKeyTransactionIndicesRangeReverse
Iterate through transaction history in reverse
ledger_disk.go:740
↓ 1 callersMethodgetReadLimit
Returns the maximum allowed size of a network message
peer.go:1680
↓ 1 callersMethodhandleQuery
(m *dns.Msg, externalIP string)
dns.go:35
↓ 1 callersFunctionhaveLocalIPMatch
Do any of our local IPs match our external IP?
peer_manager.go:761
↓ 1 callersMethodinboundPeerCount
()
peer_manager.go:293
↓ 1 callersFunctioninit_cl
opencl/ocl.cc:82
↓ 1 callersMethodinitializeFilter
Initialize the filter
wallet.go:574
↓ 1 callersFunctionloadBanList
(banListFile string)
client/main.go:301
↓ 1 callersFunctionloadPublicKeys
(pubKeyEncoded, keyFile string)
client/main.go:264
↓ 1 callersFunctionmakeTestBlock
create a deterministic test block
block_header_hasher_test.go:16
↓ 1 callersFunctionnum_devices_cl
opencl/ocl.cc:8
↓ 1 callersMethodonBlock
Handle receiving a block from a peer. Returns true if the block was newly processed and accepted.
peer.go:873
↓ 1 callersMethodonFilterAdd
Handle a request to add a set of public keys to the filter
peer.go:1418
↓ 1 callersMethodonFilterLoad
Handle a request to set a transaction filter for the connection
peer.go:1377
↓ 1 callersMethodonFindCommonAncestor
Handle a find common ancestor message from a peer
peer.go:1064
↓ 1 callersMethodonGetBalance
Handle a request for a public key's balance
peer.go:1155
↓ 1 callersMethodonGetBalances
Handle a request for a set of public key balances.
peer.go:1182
↓ 1 callersMethodonGetBlock
Handle a request for a block from a peer
peer.go:809
↓ 1 callersMethodonGetBlockByHeight
Handle a request for a block by height from a peer
peer.go:815
↓ 1 callersMethodonGetBlockHeader
Handle a request for a block header from a peer
peer.go:1116
↓ 1 callersMethodonGetBlockHeaderByHeight
Handle a request for a block header by ID from a peer
peer.go:1122
↓ 1 callersMethodonGetFilterTransactionQueue
Send back a filtered view of the transaction queue
peer.go:1459
↓ 1 callersMethodonGetPeerAddresses
Received a request for peer addresses
peer.go:1517
↓ 1 callersMethodonGetPublicKeyTransactions
Handle a request for a public key's transactions over a given height range
peer.go:1214
↓ 1 callersMethodonGetTipHeader
Handle a request for a block header of the tip of the main chain from a peer
peer.go:1329
↓ 1 callersMethodonGetTransaction
Handle a request for a transaction
peer.go:1280
↓ 1 callersMethodonGetWork
Called from the writer goroutine loop
peer.go:1556
↓ 1 callersMethodonInvBlock
Handle a message from a peer indicating block inventory available for download
peer.go:759
↓ 1 callersMethodonPeerAddresses
Received a list of addresses
peer.go:1533
↓ 1 callersMethodonPushTransaction
Handle receiving a transaction from a peer
peer.go:1349
↓ 1 callersMethodonSubmitWork
Handle a submission of mining work. Called from the writer goroutine loop.
peer.go:1626
↓ 1 callersMethodprocessBlock
Process a block
processor.go:391
↓ 1 callersMethodprocessTransaction
Process a transaction
processor.go:190
↓ 1 callersFunctionpromptForConfirmation
(prompt string, defaultResponse bool, reader *bufio.Reader)
wallet/main.go:682
↓ 1 callersFunctionpromptForNumber
(prompt string, rightJustify int, reader *bufio.Reader)
wallet/main.go:673
↓ 1 callersFunctionpromptForPassphrase
secure passphrase prompt helper
wallet/main.go:790
↓ 1 callersFunctionpromptForTransactionID
(prompt string, rightJustify int, reader *bufio.Reader)
wallet/main.go:718
↓ 1 callersMethodpruneIndices
Prune transaction and public key transaction indices created by the block at the given height
ledger_disk.go:441
↓ 1 callersFunctionread_file
opencl/ocl.cc:61
↓ 1 callersMethodreconnectTip
Try to reconnect the previous tip block when acceptBlockContinue fails for the new block
processor.go:955
↓ 1 callersMethodremoveFromInboundSet
Helper to remove peers from the inbound set
peer_manager.go:689
↓ 1 callersMethodreprocessQueue
Rebuild the balance cache and remove transactions now in violation
transaction_queue_memory.go:110
↓ 1 callersMethodrestoreIndices
Restore transaction and public key transaction indices created by the block at the given height
ledger_disk.go:492
↓ 1 callersMethodrun
()
peer_manager.go:125
↓ 1 callersMethodrun
()
wallet.go:457
↓ 1 callersMethodrun
()
dns.go:82
↓ 1 callersMethodrun
()
peer.go:189
↓ 1 callersMethodrun
()
miner.go:71
↓ 1 callersMethodrun
()
miner.go:297
↓ 1 callersMethodrun
()
processor.go:95
↓ 1 callersFunctionsendTransaction
Prompt for transaction details and request the wallet to send it
wallet/main.go:576
↓ 1 callersFunctionsha3_final
cuda/sha3.cc:137
↓ 1 callersFunctionsha3_init
opencl/sha3.cc:98
↓ 1 callersFunctionsha3_init
cuda/sha3.cc:104
↓ 1 callersFunctionsha3_update
opencl/sha3.cc:112
↓ 1 callersFunctionsha3_update
cuda/sha3.cc:118
↓ 1 callersMethodshouldDelete
Should we delete this peer?
peer_storage_disk.go:394
↓ 1 callersMethodshouldRetry
Should we retry this connection?
peer_storage_disk.go:369
↓ 1 callersMethodupdateDevice
Handle mining with GPU devices
block_header_hasher.go:289
↓ 1 callersFunctionverify
(ledger Ledger, blockStore BlockStorage, pubKey ed25519.PublicKey, height int64)
inspector/main.go:293
MethodAdd
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
MethodAdd
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
MethodAddBatch
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
MethodAddFilter
AddFilter sends a message to add a public key to the filter.
wallet.go:305
MethodBalance
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
MethodConnectBlock
ConnectBlock connects a block to the tip of the block chain and applies the transactions to the ledger.
ledger_disk.go:126
FunctionCudaInit
()
cuda_stubs.go:9
FunctionCudaMinerMine
(minerNum int, startNonce int64)
cuda_stubs.go:17
FunctionCudaMinerUpdate
(minerNum int, headerBytes []byte, headerBytesLen, startNonceOffset, endNonceOffset int, target BlockID)
cuda_stubs.go:13
MethodDelete
Delete is called to explicitly remove a peer address from storage.
peer_storage_disk.go:174
MethodDisconnectBlock
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
MethodExists
Exists returns true if the block ID exists in the queue.
block_queue.go:77
← previousnext →201–300 of 346, ranked by callers