Response to checks where the input was blatantly invalid. This indicates that the user who sent the transaction is either attacking or has a faulty client.
(err: AppError, description: String)
| 45 | /// Response to checks where the input was blatantly invalid. |
| 46 | /// This indicates that the user who sent the transaction is either attacking or has a faulty client. |
| 47 | pub fn invalid_check_tx(err: AppError, description: String) -> response::CheckTx { |
| 48 | tracing::info!(error = ?err, description, "invalid check_tx"); |
| 49 | response::CheckTx { |
| 50 | code: Code::Err(NonZeroU32::try_from(err as u32).expect("error codes are non-zero")), |
| 51 | info: description, |
| 52 | ..Default::default() |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | /// Response to queries where the input was blatantly invalid. |
| 57 | pub fn invalid_query(err: AppError, description: String) -> response::Query { |