Replace update_chain_state_with ref with update_chain_tip_with in rustdoc (#6781)

* Replace update_chain_state_with ref with update_chain_tip_with in rustdoc

Noted in the audit

* Update zebra-state/src/request.rs

Co-authored-by: teor <teor@riseup.net>

* Add fully qualified rustdoc link

* Use correct Chain path

* Use a method that's actually on the struct (not in a private trait impl)

---------

Co-authored-by: teor <teor@riseup.net>
This commit is contained in:
Deirdre Connolly 2023-05-30 22:38:56 -04:00 committed by GitHub
parent 2cd9455ded
commit af4d53122f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ impl ContextuallyValidBlock {
/// including UTXOs created by earlier transactions in this block. /// including UTXOs created by earlier transactions in this block.
/// ///
/// Note: a [`ContextuallyValidBlock`] isn't actually contextually valid until /// Note: a [`ContextuallyValidBlock`] isn't actually contextually valid until
/// `Chain::update_chain_state_with` returns success. /// [`Chain::push()`](crate::service::non_finalized_state::Chain::push) returns success.
pub fn with_block_and_spent_utxos( pub fn with_block_and_spent_utxos(
prepared: PreparedBlock, prepared: PreparedBlock,
mut spent_outputs: HashMap<transparent::OutPoint, transparent::OrderedUtxo>, mut spent_outputs: HashMap<transparent::OutPoint, transparent::OrderedUtxo>,