diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-11-14 22:27:50 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-11-14 22:27:50 +0100 |
commit | 4f0e38ab12340cea7297fc661c98ddba2d2ef681 (patch) | |
tree | 7b0a02dc118e28e32a90e48abcb0e53a3d56c9e1 /src/exchange | |
parent | 81d6f8e0df4a32ff83b2af5d9d9087594f216c26 (diff) | |
download | exchange-4f0e38ab12340cea7297fc661c98ddba2d2ef681.tar.gz exchange-4f0e38ab12340cea7297fc661c98ddba2d2ef681.tar.bz2 exchange-4f0e38ab12340cea7297fc661c98ddba2d2ef681.zip |
more work on crypto RSA helper
Diffstat (limited to 'src/exchange')
-rw-r--r-- | src/exchange/taler-exchange-transfer.c | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-transfer.c b/src/exchange/taler-exchange-transfer.c index d21f9ccf..9c350220 100644 --- a/src/exchange/taler-exchange-transfer.c +++ b/src/exchange/taler-exchange-transfer.c @@ -264,8 +264,26 @@ wire_confirm_cb (void *cls, (void) row_id; (void) wire_timestamp; wpd->eh = NULL; - if (MHD_HTTP_OK != http_status_code) + switch (http_status_code) { + case MHD_HTTP_OK: + qs = db_plugin->wire_prepare_data_mark_finished (db_plugin->cls, + session, + wpd->row_id); + /* continued below */ + break; + case MHD_HTTP_NOT_FOUND: + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Wire transaction %llu failed: %u/%d\n", + (unsigned long long) wpd->row_id, + http_status_code, + ec); + qs = db_plugin->wire_prepare_data_mark_failed (db_plugin->cls, + session, + wpd->row_id); + /* continued below */ + break; + default: GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Wire transaction failed: %u/%d\n", http_status_code, @@ -278,9 +296,6 @@ wire_confirm_cb (void *cls, wpd = NULL; return; } - qs = db_plugin->wire_prepare_data_mark_finished (db_plugin->cls, - session, - wpd->row_id); if (0 >= qs) { GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); |