MCPcopy Create free account

hub / github.com/cruzbit/cruzbit / functions

Functions346 in github.com/cruzbit/cruzbit

↓ 2 callersFunctionaddCoinbaseToHashListRoot
Add the coinbase to the hash list root
block.go:126
↓ 2 callersFunctioncheckTransaction
Context-free transaction sanity checker
processor.go:281
↓ 2 callersFunctioncomputeChainWork
Compute cumulative chain work given a block's target and the previous chain work
block.go:164
↓ 2 callersFunctioncomputeHashListRoot
Compute a hash list root of all transaction hashes
block.go:107
↓ 2 callersFunctioncomputeTarget
Compute expected target of the current block
processor.go:683
↓ 2 callersFunctioncreateNextBlock
Called by the miner as well as the peer to support get_work.
miner.go:255
↓ 2 callersMethodcreateNextBlock
Create a new block off of the given tip block.
miner.go:248
↓ 2 callersFunctiondecodeBlockHeader
(encodedHeader []byte)
block_storage_disk.go:242
↓ 2 callersMethoddeletePeer
Helper to delete a peer
peer_storage_disk.go:318
↓ 2 callersFunctiondetermineExternalIP
Determine external IP address
peer_manager.go:788
↓ 2 callersFunctiondisplayBlock
(id BlockID, block *Block)
inspector/main.go:205
↓ 2 callersFunctionencodeBlockHeader
leveldb schema: {bid} -> {timestamp}{gob encoded header}
block_storage_disk.go:230
↓ 2 callersFunctionencodeChainTip
(id BlockID, height int64)
ledger_disk.go:1028
↓ 2 callersFunctionencodeNumber
(num int64)
ledger_disk.go:1052
↓ 2 callersFunctionencodeTransactionIndex
(height int64, index int)
ledger_disk.go:1060
↓ 2 callersMethodgetBlock
(id BlockID, outChan chan<- Message)
peer.go:831
↓ 2 callersMethodgetBlockHeader
(id BlockID, outChan chan<- Message)
peer.go:1138
↓ 2 callersFunctiongetChainTip
Sometimes we call this with *leveldb.DB or *leveldb.Snapshot
ledger_disk.go:40
↓ 2 callersMethodinitBuffer
Initialize the buffer to be hashed
block_header_hasher.go:82
↓ 2 callersMethodlistenForPeers
Check to see if it's time to start accepting connections and do so if necessary
peer_manager.go:432
↓ 2 callersMethodparsePeerAddress
Parse, resolve and validate peer addreses
peer_manager.go:724
↓ 2 callersFunctionpromptForPublicKey
(prompt string, rightJustify int, reader *bufio.Reader)
wallet/main.go:638
↓ 2 callersFunctionpromptForString
(prompt, defaultResponse string, reader *bufio.Reader)
wallet/main.go:702
↓ 2 callersFunctionpromptForValue
(prompt string, rightJustify int, reader *bufio.Reader)
wallet/main.go:655
↓ 2 callersMethodremoveFromOutboundSet
Helper to remove peers from the outbound set
peer_manager.go:681
↓ 2 callersFunctionsha3_keccakf
opencl/sha3.cc:12
↓ 2 callersFunctionsha3_keccakf
cuda/sha3.cc:12
↓ 2 callersFunctionstretchPassphrase
Strecth passphrase into a 32 byte key with Argon2id
wallet.go:687
↓ 2 callersFunctiontransactionIsRelevant
Catch filter false-positives
wallet/main.go:776
↓ 2 callersMethodupdateReadLimit
Update the read limit if necessary
peer.go:1660
↓ 1 callersMethodAddBatch
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.go:13
↓ 1 callersMethodAddKey
AddKey adds an existing key pair to the database.
wallet.go:137
↓ 1 callersMethodBalance
Balance returns the total current ledger balance by summing the balance of all public keys. It's only used offline for verification purposes.
ledger.go:66
↓ 1 callersMethodCheckPOW
CheckPOW verifies the block's proof-of-work satisfies the declared target.
block.go:81
↓ 1 callersFunctionCheckpointCheck
CheckpointCheck returns an error if the passed height is a checkpoint and the passed block ID does not match the given checkpoint block ID.
checkpoints.go:23
↓ 1 callersMethodCompare
Compare returns true if the header indicates it is a better chain than "theirHeader" up to both points. "thisWhen" is the timestamp of when we stored
block.go:192
↓ 1 callersMethodConnect
Connect connects to a peer for transaction history, balance information, and sending new transactions. The threat model assumes the peer the wallet is
wallet.go:202
↓ 1 callersMethodConnect
Connect connects the IRC bootstrapper to the IRC network. port is our local cruzbit port. If it's set to 0 we won't be used for inbound connections.
irc.go:36
↓ 1 callersMethodConnect
Connect connects outbound to a peer.
peer.go:91
↓ 1 callersMethodConnectBlock
ConnectBlock connects a block to the tip of the block chain and applies the transactions to the ledger.
ledger.go:41
↓ 1 callersFunctionCudaInit
CudaInit is called on startup.
cuda.go:25
↓ 1 callersFunctionCudaMinerMine
CudaMinerMine is called on every solution attempt by a miner goroutine. It will perform N hashing attempts where N is the maximum number of threads yo
cuda.go:39
↓ 1 callersFunctionCudaMinerUpdate
CudaMinerUpdate is called by a miner goroutine when the underlying header changes.
cuda.go:30
↓ 1 callersMethodDisconnectBlock
DisconnectBlock disconnects a block from the tip of the block chain and undoes the effects of the transactions on the ledger.
ledger.go:45
↓ 1 callersMethodExistsSigned
ExistsSigned returns true if the given transaction is in the queue and contains the given signature.
transaction_queue.go:27
↓ 1 callersMethodGetBalance
GetBalance returns a public key's balance as well as the current block height.
wallet.go:232
↓ 1 callersMethodGetBlockBytes
GetBlockBytes returns the referenced block as a byte slice.
block_storage.go:15
↓ 1 callersMethodGetPrivateKey
Retrieve a private key for a given public key
wallet.go:183
↓ 1 callersMethodGetPublicKeyBalance
GetPublicKeyBalance returns the current balance of a given public key.
ledger_disk.go:547
↓ 1 callersMethodGetPublicKeyBalanceAt
GetPublicKeyBalanceAt returns the public key balance at the given height. It's only used offline for historical and verification purposes. This is onl
ledger_disk.go:830
↓ 1 callersMethodGetPublicKeyBalanceAt
GetPublicKeyBalanceAt returns the public key balance at the given height. It's only used offline for historical and verification purposes. This is onl
ledger.go:71
↓ 1 callersMethodGetPublicKeyTransactionIndicesRange
GetPublicKeyTransactionIndicesRange returns transaction indices involving a given public key over a range of heights. If startHeight > endHeight this
ledger_disk.go:662
↓ 1 callersMethodGetPublicKeyTransactionIndicesRange
GetPublicKeyTransactionIndicesRange returns transaction indices involving a given public key over a range of heights. If startHeight > endHeight this
ledger.go:60
↓ 1 callersMethodGetPublicKeyTransactions
GetPublicKeyTransactions retrieves information about historic transactions involving the given public key.
wallet.go:393
↓ 1 callersMethodGetTransaction
GetTransaction retrieves information about a historic transaction.
wallet.go:379
↓ 1 callersMethodGetTransaction
GetTransaction returns a transaction within a block and the block's header.
block_storage_disk.go:193
↓ 1 callersMethodGetTransactionIndex
GetTransactionIndex returns the index of a processed transaction.
ledger_disk.go:623
↓ 1 callersMethodGetTransactionRelayPolicy
GetTransactionRelayPolicy returns the peer's transaction relay policy.
wallet.go:274
↓ 1 callersMethodID
ID computes an ID for a given block header.
block.go:173
↓ 1 callersFunctionNewBlockHeaderHasher
NewBlockHeaderHasher returns a newly initialized BlockHeaderHasher
block_header_hasher.go:66
↓ 1 callersFunctionNewDNSSeeder
NewDNSSeeder creates a new DNS seeder given a PeerStorage interface.
dns.go:27
↓ 1 callersFunctionNewHashrateMonitor
NewHashrateMonitor returns a new HashrateMonitor instance.
miner.go:58
↓ 1 callersFunctionNewIRC
NewIRC returns a new IRC bootstrapper.
irc.go:30
↓ 1 callersFunctionNewMiner
NewMiner returns a new Miner instance.
miner.go:39
↓ 1 callersFunctionNewPeerManager
NewPeerManager returns a new PeerManager instance.
peer_manager.go:58
↓ 1 callersFunctionNewPeerStorageDisk
NewPeerStorageDisk returns a new PeerStorageDisk instance.
peer_storage_disk.go:28
↓ 1 callersFunctionNewProcessor
NewProcessor returns a new Processor instance.
processor.go:70
↓ 1 callersFunctionNewTransactionQueueMemory
NewTransactionQueueMemory returns a new NewTransactionQueueMemory instance.
transaction_queue_memory.go:23
↓ 1 callersFunctionNewWallet
NewWallet returns a new Wallet instance.
wallet.go:41
↓ 1 callersMethodOnConnectAttempt
OnConnectAttempt is called prior to attempting to connect to the peer.
peer_storage.go:21
↓ 1 callersMethodOnConnectFailure
OnConnectFailure is called upon connection failure.
peer_storage.go:27
↓ 1 callersFunctionOpenCLInit
OpenCLInit is called on startup.
opencl.go:25
↓ 1 callersFunctionOpenCLMinerMine
OpenCLMinerMine is called on every solution attempt by a miner goroutine. It will perform N hashing attempts where N is the maximum number of threads
opencl.go:39
↓ 1 callersFunctionOpenCLMinerUpdate
OpenCLMinerUpdate is called by a miner goroutine when the underlying header changes.
opencl.go:30
↓ 1 callersMethodProcessTransaction
ProcessTransaction is called to process a new candidate transaction for the transaction queue.
processor.go:149
↓ 1 callersMethodRemoveBatch
RemoveBatch removes a batch of transactions from the queue (a block has been connected.) "height" is the block chain height after this connection. "mo
transaction_queue.go:18
↓ 1 callersMethodRun
Run executes the PeerManager's main loop in its own goroutine. It determines our connectivity and manages sourcing peer addresses from seed sources as
peer_manager.go:120
↓ 1 callersMethodRun
Run executes the Wallet's main loop in its own goroutine. It manages reading and writing to the peer WebSocket.
wallet.go:452
↓ 1 callersMethodRun
Run executes the main loop for the DNSSeeder in its own goroutine.
dns.go:77
↓ 1 callersMethodRun
Run executes the IRC bootstrapper's main loop in its own goroutine.
irc.go:89
↓ 1 callersMethodRun
Run executes the miner's main loop in its own goroutine.
miner.go:66
↓ 1 callersMethodRun
Run executes the hashrate monitor's main loop in its own goroutine.
miner.go:292
↓ 1 callersMethodRun
Run executes the Processor's main loop in its own goroutine. It verifies and processes blocks and transactions.
processor.go:90
↓ 1 callersMethodSend
Send creates, signs and pushes a transaction out to the network.
wallet.go:321
↓ 1 callersMethodSetBranchType
SetBranchType sets the branch type for the given block.
ledger.go:34
↓ 1 callersMethodSetFilterBlockCallback
SetFilterBlockCallback sets a callback to receive new filter blocks with confirmed transactions relevant to this wallet.
wallet.go:227
↓ 1 callersMethodSetPassphrase
(passphrase string)
wallet.go:60
↓ 1 callersMethodSetTransactionCallback
SetTransactionCallback sets a callback to receive new transactions relevant to the wallet.
wallet.go:222
↓ 1 callersMethodShutdown
Shutdown is called to shutdown the wallet synchronously.
wallet.go:560
↓ 1 callersMethodShutdown
Shutdown shuts down the DNS seeder server.
dns.go:111
↓ 1 callersMethodShutdown
Shutdown stops the IRC bootstrapper.
irc.go:98
↓ 1 callersMethodShutdown
Shutdown is called to shutdown the underlying WebSocket synchronously.
peer.go:138
↓ 1 callersMethodShutdown
Shutdown stops the miner synchronously.
miner.go:241
↓ 1 callersMethodShutdown
Shutdown stops the hashrate monitor synchronously.
miner.go:323
↓ 1 callersMethodString
String implements the Stringer interface.
transaction.go:119
↓ 1 callersMethodUndo
Undo undoes the effects of a transaction on the invovled parties' cached balances.
balance_cache.go:75
↓ 1 callersMethodUpdate
Update is called everytime the header is updated and the caller wants its new hash value/ID.
block_header_hasher.go:152
↓ 1 callersMethodVerifyKey
VerifyKey verifies that the private key associated with the given public key is intact in the database.
wallet.go:419
↓ 1 callersMethodacceptBlock
Attempt to extend the chain with the new block
processor.go:559
↓ 1 callersMethodacceptConnections
Accept incoming peer connections
peer_manager.go:490
← previousnext →101–200 of 346, ranked by callers