commit 4961c27c508236c4f344056b59f2954002de9563
parent a81308f79a7df5bcdaf716bf794beb45e3a5206a
Author: Antoine A <>
Date: Sat, 26 Apr 2025 14:11:08 +0200
fix purse deletion not notifying TALER_DBEVENT_EXCHANGE_PURSE_MERGED
Diffstat:
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_purses_delete.c b/src/exchange/taler-exchange-httpd_purses_delete.c
@@ -115,17 +115,25 @@ TEH_handler_purses_delete (
{
/* Possible minor optimization: integrate notification with
transaction above... */
- struct TALER_PurseEventP rep = {
- .header.size = htons (sizeof (rep)),
+ struct TALER_PurseEventP rep_deposited = {
+ .header.size = htons (sizeof (rep_deposited)),
.header.type = htons (TALER_DBEVENT_EXCHANGE_PURSE_DEPOSITED),
.purse_pub = purse_pub
};
-
+ struct TALER_PurseEventP rep_merged = {
+ .header.size = htons (sizeof (rep_merged)),
+ .header.type = htons (TALER_DBEVENT_EXCHANGE_PURSE_MERGED),
+ .purse_pub = purse_pub
+ };
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Notifying about purse deletion %s\n",
TALER_B2S (&purse_pub));
TEH_plugin->event_notify (TEH_plugin->cls,
- &rep.header,
+ &rep_deposited.header,
+ NULL,
+ 0);
+ TEH_plugin->event_notify (TEH_plugin->cls,
+ &rep_merged.header,
NULL,
0);
}