summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-04-01 23:43:55 +0200
committerChristian Grothoff <christian@grothoff.org>2017-04-01 23:43:55 +0200
commitb293bda4acfe01f6254670779b8ac97e8b55990c (patch)
treebdbabdacf686d5529218b84ec18ee09ea251994c /src/exchangedb/plugin_exchangedb_common.c
parentc329b92ccf1c461e4032e75164b6ffa6bb509a69 (diff)
downloadexchange-b293bda4acfe01f6254670779b8ac97e8b55990c.tar.gz
exchange-b293bda4acfe01f6254670779b8ac97e8b55990c.tar.bz2
exchange-b293bda4acfe01f6254670779b8ac97e8b55990c.zip
implement DB plugin function to obtain reserve information, migrate logic to simplified API spec (#3887); use plugin API in /payback DB implementation
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_common.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/exchangedb/plugin_exchangedb_common.c b/src/exchangedb/plugin_exchangedb_common.c
index 1aa77a481..7b29b1d85 100644
--- a/src/exchangedb/plugin_exchangedb_common.c
+++ b/src/exchangedb/plugin_exchangedb_common.c
@@ -39,6 +39,7 @@ common_free_reserve_history (void *cls,
switch(rh->type)
{
case TALER_EXCHANGEDB_RO_BANK_TO_EXCHANGE:
+ case TALER_EXCHANGEDB_RO_EXCHANGE_TO_BANK:
bt = rh->details.bank;
if (NULL != bt->sender_account_details)
json_decref (bt->sender_account_details);
@@ -52,6 +53,9 @@ common_free_reserve_history (void *cls,
GNUNET_CRYPTO_rsa_public_key_free (cbc->denom_pub.rsa_public_key);
GNUNET_free (cbc);
break;
+ case TALER_EXCHANGEDB_RO_PAYBACK_COIN:
+ GNUNET_free (rh->details.payback);
+ break;
}
backref = rh;
rh = rh->next;
@@ -125,6 +129,9 @@ common_free_coin_transaction_list (void *cls,
GNUNET_CRYPTO_rsa_signature_free (list->details.refund->coin.denom_sig.rsa_signature);
GNUNET_free (list->details.refund);
break;
+ case TALER_EXCHANGEDB_TT_PAYBACK:
+ GNUNET_free (list->details.payback);
+ break;
}
GNUNET_free (list);
list = next;