MCPcopy Create free account

hub / github.com/JoshOrndorff/blockchain-from-scratch / functions

Functions239 in github.com/JoshOrndorff/blockchain-from-scratch

Functionsm_4_transfer
()
src/c1_state_machine/p4_accounted_currency.rs:312
Functionsm_5_empty_receive_fails
()
src/c1_state_machine/p5_digital_cash.rs:184
Functionsm_5_empty_spend_fails
()
src/c1_state_machine/p5_digital_cash.rs:158
Functionsm_5_mint_new_cash
()
src/c1_state_machine/p5_digital_cash.rs:102
Functionsm_5_output_value_0_fails
()
src/c1_state_machine/p5_digital_cash.rs:207
Functionsm_5_overflow_receives_fails
()
src/c1_state_machine/p5_digital_cash.rs:121
Functionsm_5_receiving_bill_with_incorrect_serial_fails
()
src/c1_state_machine/p5_digital_cash.rs:297
Functionsm_5_serial_number_already_seen_fails
()
src/c1_state_machine/p5_digital_cash.rs:237
Functionsm_5_spending_and_receiving_same_bill_fails
()
src/c1_state_machine/p5_digital_cash.rs:267
Functionsm_5_spending_bill_with_incorrect_amount_fails
()
src/c1_state_machine/p5_digital_cash.rs:334
Functionsm_5_spending_from_alice_to_all
()
src/c1_state_machine/p5_digital_cash.rs:506
Functionsm_5_spending_from_bob_to_all
()
src/c1_state_machine/p5_digital_cash.rs:561
Functionsm_5_spending_from_charlie_to_all
()
src/c1_state_machine/p5_digital_cash.rs:616
Functionsm_5_spending_more_than_bill_fails
()
src/c1_state_machine/p5_digital_cash.rs:413
Functionsm_5_spending_non_existent_bill_fails
()
src/c1_state_machine/p5_digital_cash.rs:476
Functionsm_5_spending_same_bill_fails
()
src/c1_state_machine/p5_digital_cash.rs:364
Methodsubmit_transaction
Submit a transaction to the client's transaction pool to hopefully be included in a future block.
src/c4_client/p4_transaction_pool.rs:48
Functiontrivial_always_valid_pow
Create an instance of the PoW Consensus that behaves identically to the trivial consensus implementation for `()` from the module level.
src/c3_consensus/p1_pow.rs:40
Methodtry_from
(_: PowOrPoaDigest)
src/c3_consensus/p5_interleave.rs:30
Methodtry_insert
(&mut self, t: <SM as StateMachine>::Transition)
src/c4_client/p4_transaction_pool.rs:68
Methodvalidate
(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>)
src/c3_consensus/p5_interleave.rs:52
Methodvalidate
Check that the header is signed by the dictator
src/c3_consensus/p2_dictator.rs:23
Methodvalidate
(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>)
src/c3_consensus/p3_poa.rs:22
Methodvalidate
All blocks are considered valid
src/c3_consensus/mod.rs:96
Methodvalidate
(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>)
src/c3_consensus/p4_even_only.rs:19
Methodvalidate
Check that the provided header's hash is below the required threshold. This does not rely on the parent digest at all.
src/c3_consensus/p1_pow.rs:21
Methodvalidate
(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>)
src/c3_consensus/p6_forking.rs:31
Methodverify_child
Verify a single child header.
src/c4_client/p1_data_structure.rs:36
Methodverify_child
Verify a single child header. This is a slightly different interface from the previous units. Rather than verify an entire sub-chain, this function c
src/c2_blockchain/p4_batched_extrinsics.rs:53
Methodverify_child
Verify a single child header.
src/c2_blockchain/p6_rich_state.rs:62
Methodverify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip.
src/c4_client/p1_data_structure.rs:41
Methodverify_sub_chain
Verify that all the given headers are valid according to the consensus rules. This method assumes that the parent_digest is valid, and verifies all t
src/c3_consensus/mod.rs:74
Methodverify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip. In addition to the consecutive heights and linked hashes, we now ne
src/c2_blockchain/p2_extrinsic_state.rs:50
Methodverify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip. We can now trivially write the old verification function in terms o
src/c2_blockchain/p4_batched_extrinsics.rs:64
Methodverify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip. In addition to all the rules we had before, we now need to check th
src/c2_blockchain/p3_consensus.rs:52
Methodverify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip.
src/c2_blockchain/p6_rich_state.rs:67
Methodverify_sub_chain
Verify that all the given headers form a valid chain from this header to the tip. An "entire" chain can be verified by calling this method on a genesi
src/c2_blockchain/p1_header_chain.rs:40
Methodverify_sub_chain_even
verify that the given headers form a valid chain. In this case "valid" means that the STATE MUST BE EVEN.
src/c2_blockchain/p3_consensus.rs:64
Methodverify_sub_chain_odd
verify that the given headers form a valid chain. In this case "valid" means that the STATE MUST BE ODD.
src/c2_blockchain/p3_consensus.rs:70
← previous201–239 of 239, ranked by callers