diff --git a/zebra-state/src/response.rs b/zebra-state/src/response.rs index 5f219e112..f7bedab62 100644 --- a/zebra-state/src/response.rs +++ b/zebra-state/src/response.rs @@ -175,7 +175,7 @@ pub enum ReadResponse { /// or `None` if the block was not found. TransactionIdsForBlock(Option>), - /// Response to [`ReadRequest::TransactionIdForSpentOutPoint`], + /// Response to [`ReadRequest::SpendingTransactionId`], /// with an list of transaction hashes in block order, /// or `None` if the block was not found. TransactionId(Option), diff --git a/zebrad/tests/acceptance.rs b/zebrad/tests/acceptance.rs index 6adc3b56f..549f0e3f1 100644 --- a/zebrad/tests/acceptance.rs +++ b/zebrad/tests/acceptance.rs @@ -3563,14 +3563,15 @@ async fn has_spending_transaction_ids() -> Result<()> { let test_name = "has_spending_transaction_ids_test"; let network = Mainnet; + let Some(zebrad_state_path) = test_type.zebrad_state_path(test_name) else { + // Skip test if there's no cached state. + return Ok(()); + }; + tracing::info!("loading blocks for non-finalized state"); let non_finalized_blocks = future_blocks(&network, test_type, test_name, 100).await?; - let zebrad_state_path = test_type - .zebrad_state_path(test_name) - .expect("test requires a cached state"); - let (mut state, mut read_state, latest_chain_tip, _chain_tip_change) = common::cached_state::start_state_service_with_cache_dir(&Mainnet, zebrad_state_path) .await?;