diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-04-17 14:01:55 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-04-17 14:01:55 +0200 |
commit | 164c125528e4af078815c0156df54fa0120eed8a (patch) | |
tree | 9d0a82d7a678059850f260b1f5fda79db3f57c32 /src/exchangedb | |
parent | 5a321621f40d09b4f38bdd6dd43ee6580915fba2 (diff) |
introducing closing fee
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/exchangedb_fees.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exchangedb/exchangedb_fees.c b/src/exchangedb/exchangedb_fees.c index 228015c03..d6fdac4de 100644 --- a/src/exchangedb/exchangedb_fees.c +++ b/src/exchangedb/exchangedb_fees.c @@ -62,6 +62,8 @@ wd2af (const struct TALER_WireFeeDiskP *wd) af->end_date = GNUNET_TIME_absolute_ntoh (wd->wf.end_date); TALER_amount_ntoh (&af->wire_fee, &wd->wf.wire_fee); + TALER_amount_ntoh (&af->closing_fee, + &wd->wf.closing_fee); af->master_sig = wd->master_sig; return af; } @@ -162,6 +164,8 @@ TALER_EXCHANGEDB_fees_2_wf (const char *wireplugin, wf->end_date = GNUNET_TIME_absolute_hton (af->end_date); TALER_amount_hton (&wf->wire_fee, &af->wire_fee); + TALER_amount_hton (&wf->closing_fee, + &af->closing_fee); } |