Expand description
Shared state reading code.
Used by StateService and ReadStateService to read from the
best Chain in the NonFinalizedState, and the database in the
FinalizedState.
Re-exports§
pub use address::balance::transparent_balance;pub use address::tx_id::transparent_tx_ids;pub use address::utxo::address_utxos;pub use address::utxo::AddressUtxos;pub use block::any_utxo;pub use block::block;pub use block::block_and_size;pub use block::block_header;pub use block::block_info;pub use block::mined_transaction;pub use block::transaction_hashes_for_block;pub use block::unspent_utxo;pub use block::spending_transaction_hash;pub use find::best_tip;pub use find::block_locator;pub use find::depth;pub use find::finalized_state_contains_block_hash;pub use find::find_chain_hashes;pub use find::find_chain_headers;pub use find::hash_by_height;pub use find::height_by_hash;pub use find::next_median_time_past;pub use find::non_finalized_state_contains_block_hash;pub use find::tip;pub use find::tip_height;pub use find::tip_with_value_balance;pub use tree::orchard_subtrees;pub use tree::orchard_tree;pub use tree::sapling_subtrees;pub use tree::sapling_tree;pub use address::utxo::ADDRESS_HEIGHTS_FULL_RANGE;
Modules§
- address
- Reading address indexes.
- block
- Shared block, header, and transaction reading code.
- difficulty
- Get context and calculate difficulty for the next block.
- find
- Finding and reading block hashes and headers, in response to peer requests.
- tree
- Reading note commitment trees.
Constants§
- FINALIZED_
STATE_ QUERY_ RETRIES - If a finalized state query is interrupted by a new finalized block, retry this many times.