reserve history amount includes fee, add it

This commit is contained in:
Christian Grothoff 2020-03-28 21:46:03 +01:00
parent bc57f007e4
commit da1df35db3
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -237,6 +237,13 @@ TALER_TESTING_cmd_exec_closer (const char *label,
label);
GNUNET_assert (0);
}
/* expected amount includes fee, while our argument
gives the amount _without_ the fee. So add the fee. */
GNUNET_assert (GNUNET_OK ==
TALER_amount_add (&as->reserve_history.amount,
&as->reserve_history.amount,
&as->reserve_history.details.close_details.
fee));
as->reserve_history.type = TALER_EXCHANGE_RTT_CLOSE;
}
{