diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-01 22:23:49 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-01 22:23:49 +0100 |
commit | 6b2297c33aa53b445c45d12a6889d37b863c9457 (patch) | |
tree | 5ed19adf93ea7f8c4805701bee4557105bca983d /src/lib/merchant_api_pay.c | |
parent | 7e9cb4f4058f36e45859f10e1a2319166bccc4a0 (diff) | |
download | merchant-6b2297c33aa53b445c45d12a6889d37b863c9457.tar.gz merchant-6b2297c33aa53b445c45d12a6889d37b863c9457.tar.bz2 merchant-6b2297c33aa53b445c45d12a6889d37b863c9457.zip |
expand testcases to cover pay-again case
Diffstat (limited to 'src/lib/merchant_api_pay.c')
-rw-r--r-- | src/lib/merchant_api_pay.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/merchant_api_pay.c b/src/lib/merchant_api_pay.c index 4856d288..135cb9cf 100644 --- a/src/lib/merchant_api_pay.c +++ b/src/lib/merchant_api_pay.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014, 2015, 2016 GNUnet e.V. and INRIA + Copyright (C) 2014, 2015, 2016, 2017 GNUnet e.V. and INRIA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software @@ -688,6 +688,15 @@ prepare_pay_generic (struct GNUNET_CURL_Context *ctx, TALER_amount2s (&fee)); } + fprintf (stderr, + "Signing DP %s/%s/%s/%llu/%llu/%s with coin %s\n", + GNUNET_h2s (&dr.h_contract_terms), + GNUNET_h2s2 (&dr.h_wire), + TALER_amount2s (&coin->amount_without_fee), + (unsigned long long) timestamp.abs_value_us, + (unsigned long long) refund_deadline.abs_value_us, + TALER_B2S (&dr), + GNUNET_i2s ((const struct GNUNET_PeerIdentity *)&dr.coin_pub)); GNUNET_CRYPTO_eddsa_sign (&coin->coin_priv.eddsa_priv, &dr.purpose, &p->coin_sig.eddsa_signature); |