diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-06-08 14:06:07 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-06-08 14:06:07 +0200 |
commit | 51add29ac66fef6b05b4392bf89dfe2c6367c29a (patch) | |
tree | c6f3997cd8c2d4f364d007bda4707d755cc2595d /src/backenddb/test_merchantdb.c | |
parent | ea11919916555637c0ef329e439c0322e6e51c00 (diff) | |
download | merchant-51add29ac66fef6b05b4392bf89dfe2c6367c29a.tar.gz merchant-51add29ac66fef6b05b4392bf89dfe2c6367c29a.tar.bz2 merchant-51add29ac66fef6b05b4392bf89dfe2c6367c29a.zip |
refund_fee is returned to the callback when fetching
a deposit from the db.
Diffstat (limited to 'src/backenddb/test_merchantdb.c')
-rw-r--r-- | src/backenddb/test_merchantdb.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c index cca5f19f..c0857375 100644 --- a/src/backenddb/test_merchantdb.c +++ b/src/backenddb/test_merchantdb.c @@ -249,8 +249,9 @@ pd_cb (void *cls, * @param cls closure * @param transaction_id of the contract * @param coin_pub public key of the coin - * @param amount_with_fee amount the exchange will deposit for this coin - * @param deposit_fee fee the exchange will charge for this coin + * @param aamount_with_fee amount the exchange will deposit for this coin + * @param adeposit_fee fee the exchange will charge for this coin + * @param adeposit_fee fee the exchange will charge for refunding this coin * @param exchange_proof proof from exchange that coin was accepted */ static void @@ -259,6 +260,7 @@ deposit_cb (void *cls, const struct TALER_CoinSpendPublicKeyP *acoin_pub, const struct TALER_Amount *aamount_with_fee, const struct TALER_Amount *adeposit_fee, + const struct TALER_Amount *arefund_fee, const json_t *aexchange_proof) { CHECK ((0 == memcmp (ah_contract_terms, @@ -534,7 +536,7 @@ run (void *cls) &h_contract_terms, &refund_cb, NULL)); - FAILIF (GNUNET_OK != + FAILIF (GNUNET_SYSERR != plugin->increase_refund_for_contract (plugin->cls, &h_contract_terms, &refund_amount, |