From af4d53122fc93f72a9b44da74acab7e362a0f42b Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Tue, 30 May 2023 22:38:56 -0400 Subject: [PATCH] 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 * 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 --- zebra-state/src/request.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-state/src/request.rs b/zebra-state/src/request.rs index 6236eb249..5d5b2540f 100644 --- a/zebra-state/src/request.rs +++ b/zebra-state/src/request.rs @@ -318,7 +318,7 @@ impl ContextuallyValidBlock { /// including UTXOs created by earlier transactions in this block. /// /// 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( prepared: PreparedBlock, mut spent_outputs: HashMap,