diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-23 12:09:22 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-23 12:09:22 +0200 |
commit | 0ad509bd104f64cbfac286146f74496876d6fc9c (patch) | |
tree | ca3f892a652fb9d773fe991ee7982eeab9d3d81e /src/auditor/taler-helper-auditor-wire.c | |
parent | 70a1c0d68c2021412c64713ab394fd887f624c4b (diff) |
fix profit drain test, remove obsolete test 33 (aggregator now dies on inconsistency, before it looped); fixes #4960
Diffstat (limited to 'src/auditor/taler-helper-auditor-wire.c')
-rw-r--r-- | src/auditor/taler-helper-auditor-wire.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/auditor/taler-helper-auditor-wire.c b/src/auditor/taler-helper-auditor-wire.c index f9c87b6f0..28a87a391 100644 --- a/src/auditor/taler-helper-auditor-wire.c +++ b/src/auditor/taler-helper-auditor-wire.c @@ -1297,6 +1297,10 @@ complain_out_not_found (void *cls, /* not a profit drain */ break; case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT: + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Profit drain of %s to %s found!\n", + TALER_amount2s (&amount), + payto_uri); if (GNUNET_OK != TALER_exchange_offline_profit_drain_verify ( &roi->details.wtid, @@ -1377,7 +1381,11 @@ complain_out_not_found (void *cls, } GNUNET_free (account_section); GNUNET_free (payto_uri); - break; + /* profit drain was correct */ + TALER_ARL_amount_add (&total_drained, + &total_drained, + &amount); + return GNUNET_OK; } } |