From 1c84b3d4af1a2484e60a9071556d4690dd7aac33 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 4 Mar 2017 18:09:39 +0100 Subject: implementing #4932 --- src/include/taler_exchangedb_lib.h | 6 +++++- src/include/taler_signatures.h | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/taler_exchangedb_lib.h b/src/include/taler_exchangedb_lib.h index 02e8cdfec..e4057470f 100644 --- a/src/include/taler_exchangedb_lib.h +++ b/src/include/taler_exchangedb_lib.h @@ -345,11 +345,13 @@ TALER_EXCHANGEDB_fees_read (const struct GNUNET_CONFIGURATION_Handle *cfg, /** * Convert @a af to @a wf. * + * @param wireplugin name of the wire plugin the fees are for * @param[in,out] af aggregate fees, host format (updated to round time) * @param[out] wf aggregate fees, disk / signature format */ void -TALER_EXCHANGEDB_fees_2_wf (struct TALER_EXCHANGEDB_AggregateFees *af, +TALER_EXCHANGEDB_fees_2_wf (const char *wireplugin, + struct TALER_EXCHANGEDB_AggregateFees *af, struct TALER_MasterWireFeePS *wf); @@ -357,11 +359,13 @@ TALER_EXCHANGEDB_fees_2_wf (struct TALER_EXCHANGEDB_AggregateFees *af, * Write given fee structure to disk. * * @param filename where to write the fees + * @param wireplugin name of the plugin for which we write the fees * @param af fee structure to write * @return #GNUNET_OK on success, #GNUNET_SYSERR on error */ int TALER_EXCHANGEDB_fees_write (const char *filename, + const char *wireplugin, struct TALER_EXCHANGEDB_AggregateFees *af); diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 8659deb3a..ac20f3447 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -897,6 +897,13 @@ struct TALER_MasterWireFeePS */ struct GNUNET_CRYPTO_EccSignaturePurpose purpose; + /** + * Hash over the wire method (yes, H("test") or H("sepa")), in lower + * case, including 0-terminator. Used to uniquely identify which + * wire method these fees apply to. + */ + struct GNUNET_HashCode h_wire_method; + /** * Start date when the fee goes into effect. */ -- cgit v1.2.3