aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-09-16 15:08:59 +0200
committerChristian Grothoff <christian@grothoff.org>2024-09-16 15:08:59 +0200
commit210f1b340a5d2e8cb8b7c29cb031d945c75b4fa4 (patch)
tree284acb4ae57b1724fa16963adcc125032f708d81 /src
parentb812fb6d5ea8beb68d91b3f84bfb89c3c31dbf81 (diff)
fix for test-6
Diffstat (limited to 'src')
-rw-r--r--src/auditor/taler-auditor-httpd_bad-sig-losses-get.c4
-rwxr-xr-xsrc/auditor/test-auditor.sh8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/auditor/taler-auditor-httpd_bad-sig-losses-get.c b/src/auditor/taler-auditor-httpd_bad-sig-losses-get.c
index 58a8eb733..38154bdc7 100644
--- a/src/auditor/taler-auditor-httpd_bad-sig-losses-get.c
+++ b/src/auditor/taler-auditor-httpd_bad-sig-losses-get.c
@@ -29,14 +29,12 @@
* Add bad-sig-losses to the list.
*
* @param[in,out] cls a `json_t *` array to extend
- * @param serial_id location of the @a dc in the database
* @param dc struct of inconsistencies
* @return #GNUNET_OK to continue to iterate, #GNUNET_SYSERR to stop iterating
*/
static enum GNUNET_GenericReturnValue
add_bad_sig_losses (
void *cls,
- uint64_t serial_id,
const struct TALER_AUDITORDB_BadSigLosses *dc)
{
json_t *list = cls;
@@ -44,7 +42,7 @@ add_bad_sig_losses (
obj = GNUNET_JSON_PACK (
GNUNET_JSON_pack_uint64 ("row_id",
- serial_id),
+ dc->row_id),
GNUNET_JSON_pack_uint64 ("problem_row_id",
dc->problem_row_id),
GNUNET_JSON_pack_string ("operation",
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index aaf8a0b96..c3abc39a9 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -854,10 +854,12 @@ function test_5() {
echo "===========5: deposit contract hash wrong================="
# TODO: may need to be restructured
# Modify h_wire hash, so it is inconsistent with 'wire'
-# SERIAL=$(echo "SELECT deposit_serial_id FROM exchange.deposits WHERE amount_with_fee_val=3 AND amount_with_fee_frac=0 ORDER BY deposit_serial_id LIMIT 1" | psql "$DB" -Aqt)
-# OLD_H=$(echo "SELECT h_contract_terms FROM exchange.deposits WHERE deposit_serial_id=$SERIAL;" | psql "$DB" -Aqt)
+# SERIAL=$(echo "SELECT coin_deposit_serial_id FROM exchange.coin_deposits WHERE (amount_with_fee).val=3 ORDER BY coin_deposit_serial_id LIMIT 1;" | psql "$DB" -Aqt)
+
+# OLD_H=$(echo "SELECT h_contract_terms FROM exchange.coin_deposits WHERE deposit_serial_id=$SERIAL;" | psql "$DB" -Aqt)
## shellcheck disable=SC2028
-# echo "UPDATE exchange.deposits SET h_contract_terms='\x12bb676444955c98789f219148aa31899d8c354a63330624d3d143222cf3bb8b8e16f69accd5a8773127059b804c1955696bf551dd7be62719870613332aa8d5' WHERE deposit_serial_id=$SERIAL" \
+ echo -n "Manipulating row ${SERIALE} ..."
+ # echo "UPDATE exchange.deposits SET h_contract_terms='\x12bb676444955c98789f219148aa31899d8c354a63330624d3d143222cf3bb8b8e16f69accd5a8773127059b804c1955696bf551dd7be62719870613332aa8d5' WHERE deposit_serial_id=$SERIAL" \
# | psql -Aqt "$DB"
#
# run_audit