aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_purses_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-04-30 17:35:24 +0200
committerChristian Grothoff <christian@grothoff.org>2022-04-30 17:35:24 +0200
commitf99fb9ad4b2b2c046de9e1eccebfde8f60e4fa83 (patch)
tree83b57b3fa0d1af66c29b89b407ce6d9ebd364d42 /src/exchange/taler-exchange-httpd_purses_deposit.c
parentfed8353c67136c6252aaf4316d25a880f768ec7b (diff)
-GET purse test passes
Diffstat (limited to 'src/exchange/taler-exchange-httpd_purses_deposit.c')
-rw-r--r--src/exchange/taler-exchange-httpd_purses_deposit.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/exchange/taler-exchange-httpd_purses_deposit.c b/src/exchange/taler-exchange-httpd_purses_deposit.c
index 95c5d52f..07fcfb1a 100644
--- a/src/exchange/taler-exchange-httpd_purses_deposit.c
+++ b/src/exchange/taler-exchange-httpd_purses_deposit.c
@@ -277,20 +277,6 @@ deposit_transaction (void *cls,
return GNUNET_DB_STATUS_HARD_ERROR;
}
}
- {
- struct TALER_PurseEventP rep = {
- .header.size = htons (sizeof (rep)),
- .header.type = htons (TALER_DBEVENT_EXCHANGE_PURSE_DEPOSITED),
- .purse_pub = *pcc->purse_pub
- };
-
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Notifying about purse deposit\n");
- TEH_plugin->event_notify (TEH_plugin->cls,
- &rep.header,
- NULL,
- 0);
- }
return qs;
}
@@ -656,6 +642,21 @@ TEH_handler_purses_deposit (
return mhd_ret;
}
}
+ {
+ struct TALER_PurseEventP rep = {
+ .header.size = htons (sizeof (rep)),
+ .header.type = htons (TALER_DBEVENT_EXCHANGE_PURSE_DEPOSITED),
+ .purse_pub = *pcc.purse_pub
+ };
+
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Notifying about purse deposit %s\n",
+ TALER_B2S (pcc.purse_pub));
+ TEH_plugin->event_notify (TEH_plugin->cls,
+ &rep.header,
+ NULL,
+ 0);
+ }
/* generate regular response */
{