Open LLFourn opened 3 years ago
Just came across this issue as well. It is very misleading and the API should return the normal "Transaction not found" instead of a success message with a json response.
The method is located in rest.rs#L1084 and is missing the following check (which you can see in the next method):
let tx = query
.lookup_txn(&hash)
.ok_or_else(|| HttpError::not_found("Transaction not found".to_string()))?;
The method should be making this check instead of returning a default response, because the response implies the transaction exists, when it does not.