MCPcopy Create free account

hub / github.com/ChengHua926/rBTC / functions

Functions122 in github.com/ChengHua926/rBTC

↓ 42 callersMethodaddress
(&self)
src/tx.rs:21
↓ 19 callersMethodutxos
(&self)
src/chain.rs:113
↓ 17 callersMethodtransactions
(&self)
src/block.rs:47
↓ 15 callersFunctionregtest_chain
()
src/tests/protocol.rs:6
↓ 13 callersMethodcreate_transaction
( &self, utxos: &UtxoSet, to: Address, amount: Amount, )
src/wallet.rs:31
↓ 10 callersMethodmine
(&mut self)
src/block.rs:74
↓ 8 callersMethodchecked_add
(self, other: Self)
src/amount.rs:24
↓ 8 callersMethodlen
(&self)
src/utxo.rs:49
↓ 8 callersMethodnext_height
(&self)
src/chain.rs:98
↓ 7 callersMethodbuild_block
( &self, miner: Address, transactions: Vec<Transaction>, )
src/chain.rs:59
↓ 7 callersMethodnext
(self)
src/types.rs:45
↓ 7 callersMethodoutputs
(&self)
src/tx.rs:135
↓ 7 callersMethodoutputs_for
(&self, address: &Address)
src/utxo.rs:22
↓ 7 callersMethodsigned_transaction_from_refs
( &self, inputs: Vec<UtxoRef>, outputs: Vec<TxOutput>, )
src/wallet.rs:61
↓ 6 callersMethodinputs
(&self)
src/tx.rs:126
↓ 6 callersMethodis_empty
(&self)
src/utxo.rs:53
↓ 6 callersMethodtip_hash
(&self)
src/chain.rs:102
↓ 6 callersMethodvalue
(&self)
src/tx.rs:25
↓ 5 callersMethodapply_transaction
(&mut self, tx: &Transaction)
src/utxo.rs:34
↓ 5 callersFunctionchain_with_wallets
()
src/tests/invariants.rs:3
↓ 5 callersFunctionhash_bytes
(bytes: &[u8])
src/crypto.rs:5
↓ 5 callersMethodid
(&self)
src/tx.rs:118
↓ 5 callersMethodis_coinbase
(&self)
src/tx.rs:122
↓ 5 callersMethodrefresh_id_for_test
(&mut self)
src/tx.rs:145
↓ 5 callersMethodtransactions_mut_for_test
(&mut self)
src/block.rs:52
↓ 4 callersMethodcompute_hash
(&self)
src/block.rs:81
↓ 4 callersFunctionmine_payment
(chain: &mut Blockchain, miner: &Wallet, receiver: &Wallet, amount: Amount)
src/tests/invariants.rs:10
↓ 4 callersMethodoutputs_mut_for_test
(&mut self)
src/tx.rs:140
↓ 4 callersMethodrefresh_id
(&mut self)
src/tx.rs:149
↓ 3 callersMethodadd_block
(&mut self, block: Block)
src/chain.rs:74
↓ 3 callersMethodchecked_sub
(self, other: Self)
src/amount.rs:31
↓ 3 callersMethodcompute_id
(&self)
src/tx.rs:153
↓ 3 callersMethoddifficulty
(&self)
src/chain.rs:109
↓ 3 callersMethodget
(&self, reference: &UtxoRef)
src/utxo.rs:30
↓ 3 callersFunctionhash_pair
(left: TxId, right: TxId)
src/merkle.rs:89
↓ 3 callersFunctionlab_chain
()
src/main.rs:35
↓ 3 callersMethodstarts_with_target
(self, difficulty: Difficulty)
src/types.rs:99
↓ 3 callersFunctionvalidate_transaction_against
( tx: &Transaction, utxos: &mut UtxoSet, )
src/validation.rs:92
↓ 3 callersMethodwork
(self)
src/types.rs:72
↓ 2 callersMethodbalance
(&self, address: &Address)
src/utxo.rs:15
↓ 2 callersMethodblocks
(&self)
src/chain.rs:125
↓ 2 callersMethodbytes
(self)
src/types.rs:64
↓ 2 callersMethodcanonical_bytes
(&self, include_signatures: bool)
src/tx.rs:161
↓ 2 callersMethodinputs_mut_for_test
(&mut self)
src/tx.rs:131
↓ 2 callersFunctionnext_merkle_level
(level: &[TxId])
src/merkle.rs:78
↓ 2 callersFunctionprint_status
(chain: &Blockchain, miner: &Wallet)
src/main.rs:114
↓ 2 callersFunctionregtest_chain
()
tests/public_api.rs:3
↓ 2 callersMethodroot
(&self)
src/merkle.rs:24
↓ 2 callersMethodsighash
(&self)
src/tx.rs:157
↓ 2 callersMethodsignature_mut_for_test
(&mut self)
src/tx.rs:44
↓ 2 callersFunctionsum_outputs
(outputs: &[TxOutput])
src/validation.rs:146
↓ 2 callersFunctionvalidate_block_header
( block: &Block, expected_previous_hash: BlockHash, expected_difficulty: Difficulty, )
src/validation.rs:11
↓ 2 callersMethodvalidate_block_template
(&self, block: &Block)
src/chain.rs:181
↓ 2 callersFunctionvalidate_block_transactions
( block: &Block, starting_utxos: &UtxoSet, subsidy: Amount, )
src/validation.rs:34
↓ 1 callersMethodaddress
(&self)
src/wallet.rs:23
↓ 1 callersMethodas_str
(&self)
src/types.rs:30
↓ 1 callersMethodforce_invalid_pow_for_test
(&mut self)
src/block.rs:63
↓ 1 callersMethodforce_nonce_for_test
(&mut self, nonce: u64)
src/block.rs:57
↓ 1 callersMethodheader
(&self)
src/block.rs:43
↓ 1 callersMethodheight
(&self)
src/chain.rs:91
↓ 1 callersFunctionmerkle_root
(leaves: &[TxId])
src/merkle.rs:67
↓ 1 callersMethodproof
(&self, tx_index: usize)
src/merkle.rs:28
↓ 1 callersFunctionrun_attack
()
src/main.rs:82
↓ 1 callersFunctionrun_demo
()
src/main.rs:48
↓ 1 callersFunctionrun_status
()
src/main.rs:42
↓ 1 callersMethodshort
(self)
src/types.rs:103
↓ 1 callersMethodtarget_prefix
(self)
src/types.rs:68
↓ 1 callersMethodto_hex
(self)
src/types.rs:87
↓ 1 callersMethodunits
(self)
src/amount.rs:20
↓ 1 callersMethodvalidate_block
(&self, block: &Block)
src/chain.rs:174
↓ 1 callersMethodvalidate_candidate_chain
(&self, blocks: &[Block])
src/chain.rs:129
↓ 1 callersMethodvalidate_transaction
(&self, tx: &Transaction)
src/chain.rs:86
↓ 1 callersMethodvalidate_transactions_progressively
( &self, transactions: &[Transaction], )
src/chain.rs:194
↓ 1 callersMethodverify
(&self, expected_tx_id: TxId, expected_root: TxId)
src/merkle.rs:51
Methodaccumulated_work
(&self)
src/chain.rs:121
Methodadd
(self, rhs: Self)
src/amount.rs:42
Methodbalance
(&self, address: &Address)
src/chain.rs:117
Functionblock_with_fake_pow_is_rejected
()
src/tests/protocol.rs:109
Functionblock_with_tampered_body_is_rejected
()
src/tests/protocol.rs:89
Methodcoinbase
(height: Height, miner: Address, reward: Amount)
src/tx.rs:58
Methodcoinbase_with_inputs_for_test
( height: Height, miner: Address, reward: Amount, inputs: Vec<TxInput>, )
src/tx.rs:99
Functioncoinbase_with_inputs_is_rejected
()
src/tests/protocol.rs:274
Methodcoins
(coins: u64)
src/amount.rs:16
Functiondifferent_genesis_candidate_chain_is_rejected
()
src/tests/invariants.rs:87
Functionduplicate_input_inside_one_transaction_is_rejected
()
src/tests/protocol.rs:161
Functionempty_non_coinbase_transaction_is_rejected
()
src/tests/protocol.rs:181
Functionequal_work_candidate_chain_is_not_adopted
()
src/tests/invariants.rs:58
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/types.rs:36
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/amount.rs:56
Functionforged_signature_is_rejected
()
src/tests/protocol.rs:38
Methodfrom_public_key
(public_key: &[u8; PUBKEY_LEN])
src/types.rs:25
Methodfrom_units
(units: u64)
src/amount.rs:12
Functioninflationary_transaction_is_rejected
()
src/tests/protocol.rs:192
Functionintrablock_double_spend_is_rejected
()
src/tests/protocol.rs:143
Functioninvalid_difficulty_values_are_rejected
()
src/tests/protocol.rs:14
Functioninvalid_longer_candidate_chain_is_rejected_before_adoption
()
src/tests/invariants.rs:70
Functionmain
()
src/main.rs:26
Functionmalformed_addresses_are_rejected
()
src/tests/protocol.rs:26
Functionmalformed_zero_amount_output_is_rejected
()
src/tests/protocol.rs:307
Methodmaybe_replace_chain
(&mut self, blocks: Vec<Block>)
src/chain.rs:156
next →1–100 of 122, ranked by callers