Skip to content

Commit

Permalink
update other instances of the renamed InputNotFound error
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Nov 11, 2022
1 parent 084602c commit d4a4ff8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zebra-consensus/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ where
} else if is_mempool {
let query = state.clone().oneshot(zs::Request::BestChainUtxo(*outpoint));
if let zebra_state::Response::BestChainUtxo(utxo) = query.await? {
utxo.ok_or(TransactionError::InputNotFound)?
utxo.ok_or(TransactionError::TransparentInputNotFound)?
} else {
unreachable!("BestChainUtxo always responds with Option<Utxo>")
}
Expand Down
5 changes: 4 additions & 1 deletion zebra-consensus/src/transaction/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ async fn mempool_request_with_missing_input_is_rejected() {
})
.await;

assert_eq!(verifier_response, Err(TransactionError::InputNotFound));
assert_eq!(
verifier_response,
Err(TransactionError::TransparentInputNotFound)
);
}

#[test]
Expand Down

0 comments on commit d4a4ff8

Please sign in to comment.