Skip to content

Commit

Permalink
Protect POST /txs bulk query-by-txid endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mononaut committed Nov 12, 2023
1 parent 0301e4c commit 59be248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ fn handle_request(
json_response(tx.remove(0), ttl)
}
}
(&Method::POST, Some(&"txs"), None, None, None, None) => {
(&Method::POST, Some(&INTERNAL_PREFIX), Some(&"txs"), None, None, None) => {
let txid_strings: Vec<String> =
serde_json::from_slice(&body).map_err(|err| HttpError::from(err.to_string()))?;

Expand Down

0 comments on commit 59be248

Please sign in to comment.