more realistic refresh output, based on coinsim

This commit is contained in:
Florian Dold 2018-10-02 22:59:41 +02:00
parent 34f12d3f06
commit 5fbda29b76
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -887,14 +887,10 @@ refresh_melt_run (void *cls,
struct RefreshMeltState *rms = cls; struct RefreshMeltState *rms = cls;
unsigned int num_fresh_coins; unsigned int num_fresh_coins;
const struct TALER_TESTING_Command *coin_command; const struct TALER_TESTING_Command *coin_command;
/* FIXME: this should be dynamic */
const char *melt_fresh_amounts[] = { const char *melt_fresh_amounts[] = {
/* with 0.01 withdraw fees (except for 1ct coins), "EUR:1", "EUR:1", "EUR:1", "EUR:0.1",
this totals up to exactly EUR:3.97, and with NULL};
the 0.03 refresh fee, to EUR:4.0 */
"EUR:1", "EUR:1", "EUR:1", "EUR:0.1", "EUR:0.1", "EUR:0.1",
"EUR:0.1", "EUR:0.1", "EUR:0.1", "EUR:0.1", "EUR:0.1",
"EUR:0.01", "EUR:0.01", "EUR:0.01", "EUR:0.01", "EUR:0.01",
"EUR:0.01", NULL};
const struct TALER_EXCHANGE_DenomPublicKey *fresh_pk; const struct TALER_EXCHANGE_DenomPublicKey *fresh_pk;
rms->is = is; rms->is = is;