summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-07-24 00:13:53 +0200
committerChristian Grothoff <christian@grothoff.org>2019-07-24 00:13:53 +0200
commit5844a20f15cf6d35503386a717e9d582189a7261 (patch)
tree0175ab0041b8e5f01a4f5cdcb561314ac8c3e804 /src/exchange/taler-exchange-httpd_deposit.c
parente75d552227a4c06faad0a0eae7539458ff58f9af (diff)
downloadexchange-5844a20f15cf6d35503386a717e9d582189a7261.tar.gz
exchange-5844a20f15cf6d35503386a717e9d582189a7261.tar.bz2
exchange-5844a20f15cf6d35503386a717e9d582189a7261.zip
implement zombie check
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposit.c')
-rw-r--r--src/exchange/taler-exchange-httpd_deposit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c
index 5320c9c7..51adacb7 100644
--- a/src/exchange/taler-exchange-httpd_deposit.c
+++ b/src/exchange/taler-exchange-httpd_deposit.c
@@ -179,7 +179,9 @@ deposit_transaction (void *cls,
/* Start with fee for THIS transaction */
spent = deposit->amount_with_fee;
- /* add cost of all previous transactions */
+ /* add cost of all previous transactions; skip PAYBACK as revoked
+ denominations are not eligible for deposit, and if we are the old coin
+ pub of a revoked coin (aka a zombie), then ONLY refresh is allowed. */
qs = TEH_plugin->get_coin_transactions (TEH_plugin->cls,
session,
&deposit->coin.coin_pub,