diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-11-07 18:51:14 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-11-07 18:51:54 +0100 |
commit | 8d312562bf04eeb2afac53a2f24624f8e48529bd (patch) | |
tree | ff8ee7336406c4f8805ed9cee320acd105e77004 /src/lib/exchange_api_deposit.c | |
parent | dde5d38c4f895b53f4bd3423487573fc3e884351 (diff) | |
download | exchange-8d312562bf04eeb2afac53a2f24624f8e48529bd.tar.xz |
adjust ECs
Diffstat (limited to 'src/lib/exchange_api_deposit.c')
-rw-r--r-- | src/lib/exchange_api_deposit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/exchange_api_deposit.c b/src/lib/exchange_api_deposit.c index 51783dbb4..7bb083efe 100644 --- a/src/lib/exchange_api_deposit.c +++ b/src/lib/exchange_api_deposit.c @@ -274,7 +274,7 @@ verify_deposit_signature_conflict ( ec = TALER_JSON_get_error_code (json); switch (ec) { - case TALER_EC_DEPOSIT_INSUFFICIENT_FUNDS: + case TALER_EC_EXCHANGE_DEPOSIT_INSUFFICIENT_FUNDS: if (0 > TALER_amount_add (&total, &total, @@ -294,7 +294,7 @@ verify_deposit_signature_conflict ( } /* everything OK, proof of double-spending was provided */ return GNUNET_OK; - case TALER_EC_COIN_CONFLICTING_DENOMINATION_KEY: + case TALER_EC_EXCHANGE_GENERIC_COIN_CONFLICTING_DENOMINATION_KEY: if (0 != GNUNET_memcmp (&dh->dki.h_key, &h_denom_pub)) return GNUNET_OK; /* indeed, proof with different denomination key provided */ @@ -336,7 +336,7 @@ handle_deposit_finished (void *cls, switch (response_code) { case 0: - hr.ec = TALER_EC_INVALID_RESPONSE; + hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE; break; case MHD_HTTP_OK: if (GNUNET_OK != @@ -347,7 +347,7 @@ handle_deposit_finished (void *cls, { GNUNET_break_op (0); hr.http_status = 0; - hr.ec = TALER_EC_DEPOSIT_INVALID_SIGNATURE_BY_EXCHANGE; + hr.ec = TALER_EC_EXCHANGE_DEPOSIT_INVALID_SIGNATURE_BY_EXCHANGE; } else { @@ -369,7 +369,7 @@ handle_deposit_finished (void *cls, { GNUNET_break_op (0); hr.http_status = 0; - hr.ec = TALER_EC_DEPOSIT_INVALID_SIGNATURE_BY_EXCHANGE; + hr.ec = TALER_EC_EXCHANGE_DEPOSIT_INVALID_SIGNATURE_BY_EXCHANGE; } else { |