remove wad fee, kyc fee and kyc-timeout
This commit is contained in:
parent
22357678a0
commit
481ffc1a0a
@ -376,8 +376,8 @@ taler-exchange-offline -c $CONF \
|
|||||||
download sign \
|
download sign \
|
||||||
enable-account `taler-config -c $CONF -s exchange-account-1 -o PAYTO_URI` \
|
enable-account `taler-config -c $CONF -s exchange-account-1 -o PAYTO_URI` \
|
||||||
enable-auditor $AUDITOR_PUB $AUDITOR_URL "TESTKUDOS Auditor" \
|
enable-auditor $AUDITOR_PUB $AUDITOR_URL "TESTKUDOS Auditor" \
|
||||||
wire-fee now iban TESTKUDOS:0.07 TESTKUDOS:0.01 TESTKUDOS:0.01 \
|
wire-fee now iban TESTKUDOS:0.07 TESTKUDOS:0.01 \
|
||||||
global-fee now TESTKUDOS:0.01 TESTKUDOS:0.01 TESTKUDOS:0.01 TESTKUDOS:0.01 1h 1h 1year 5 \
|
global-fee now TESTKUDOS:0.01 TESTKUDOS:0.01 TESTKUDOS:0.01 1h 1year 5 \
|
||||||
upload &> ${MY_TMP_DIR}/taler-exchange-offline.log
|
upload &> ${MY_TMP_DIR}/taler-exchange-offline.log
|
||||||
|
|
||||||
echo -n "."
|
echo -n "."
|
||||||
|
@ -369,8 +369,8 @@ taler-exchange-offline -c $CONF \
|
|||||||
download sign \
|
download sign \
|
||||||
enable-account `taler-config -c $CONF -s exchange-account-1 -o PAYTO_URI` \
|
enable-account `taler-config -c $CONF -s exchange-account-1 -o PAYTO_URI` \
|
||||||
enable-auditor $AUDITOR_PUB $AUDITOR_URL "TESTKUDOS Auditor" \
|
enable-auditor $AUDITOR_PUB $AUDITOR_URL "TESTKUDOS Auditor" \
|
||||||
wire-fee now iban TESTKUDOS:0.01 TESTKUDOS:0.01 TESTKUDOS:0.01 \
|
wire-fee now iban TESTKUDOS:0.01 TESTKUDOS:0.01 \
|
||||||
global-fee now TESTKUDOS:0.01 TESTKUDOS:0.01 TESTKUDOS:0.01 TESTKUDOS:0.01 1h 1h 1year 5 \
|
global-fee now TESTKUDOS:0.01 TESTKUDOS:0.01 TESTKUDOS:0.01 1h 1year 5 \
|
||||||
upload &> ${MY_TMP_DIR}/taler-exchange-offline.log
|
upload &> ${MY_TMP_DIR}/taler-exchange-offline.log
|
||||||
|
|
||||||
echo -n "."
|
echo -n "."
|
||||||
|
@ -220,7 +220,6 @@ get_purse_fee (struct GNUNET_TIME_Timestamp atime,
|
|||||||
struct GNUNET_TIME_Timestamp end_date;
|
struct GNUNET_TIME_Timestamp end_date;
|
||||||
struct TALER_GlobalFeeSet fees;
|
struct TALER_GlobalFeeSet fees;
|
||||||
struct GNUNET_TIME_Relative ptimeout;
|
struct GNUNET_TIME_Relative ptimeout;
|
||||||
struct GNUNET_TIME_Relative ktimeout;
|
|
||||||
struct GNUNET_TIME_Relative hexp;
|
struct GNUNET_TIME_Relative hexp;
|
||||||
uint32_t pacl;
|
uint32_t pacl;
|
||||||
|
|
||||||
@ -231,7 +230,6 @@ get_purse_fee (struct GNUNET_TIME_Timestamp atime,
|
|||||||
&end_date,
|
&end_date,
|
||||||
&fees,
|
&fees,
|
||||||
&ptimeout,
|
&ptimeout,
|
||||||
&ktimeout,
|
|
||||||
&hexp,
|
&hexp,
|
||||||
&pacl,
|
&pacl,
|
||||||
&master_sig))
|
&master_sig))
|
||||||
|
@ -562,7 +562,6 @@ run (void *cls,
|
|||||||
ws = GNUNET_TIME_absolute_to_timestamp (GNUNET_TIME_year_to_time (y - 1));
|
ws = GNUNET_TIME_absolute_to_timestamp (GNUNET_TIME_year_to_time (y - 1));
|
||||||
we = GNUNET_TIME_absolute_to_timestamp (GNUNET_TIME_year_to_time (y));
|
we = GNUNET_TIME_absolute_to_timestamp (GNUNET_TIME_year_to_time (y));
|
||||||
make_amount (0, 5, &fees.wire);
|
make_amount (0, 5, &fees.wire);
|
||||||
make_amount (0, 5, &fees.wad);
|
|
||||||
make_amount (0, 5, &fees.closing);
|
make_amount (0, 5, &fees.closing);
|
||||||
memset (&master_sig,
|
memset (&master_sig,
|
||||||
0,
|
0,
|
||||||
|
@ -1639,9 +1639,6 @@ upload_wire_fee (const char *exchange_url,
|
|||||||
TALER_JSON_spec_amount ("wire_fee",
|
TALER_JSON_spec_amount ("wire_fee",
|
||||||
currency,
|
currency,
|
||||||
&fees.wire),
|
&fees.wire),
|
||||||
TALER_JSON_spec_amount ("wad_fee",
|
|
||||||
currency,
|
|
||||||
&fees.wad),
|
|
||||||
TALER_JSON_spec_amount ("closing_fee",
|
TALER_JSON_spec_amount ("closing_fee",
|
||||||
currency,
|
currency,
|
||||||
&fees.closing),
|
&fees.closing),
|
||||||
@ -1741,16 +1738,12 @@ upload_global_fee (const char *exchange_url,
|
|||||||
struct GNUNET_TIME_Timestamp start_time;
|
struct GNUNET_TIME_Timestamp start_time;
|
||||||
struct GNUNET_TIME_Timestamp end_time;
|
struct GNUNET_TIME_Timestamp end_time;
|
||||||
struct GNUNET_TIME_Relative purse_timeout;
|
struct GNUNET_TIME_Relative purse_timeout;
|
||||||
struct GNUNET_TIME_Relative kyc_timeout;
|
|
||||||
struct GNUNET_TIME_Relative history_expiration;
|
struct GNUNET_TIME_Relative history_expiration;
|
||||||
uint32_t purse_account_limit;
|
uint32_t purse_account_limit;
|
||||||
struct GNUNET_JSON_Specification spec[] = {
|
struct GNUNET_JSON_Specification spec[] = {
|
||||||
TALER_JSON_spec_amount ("history_fee",
|
TALER_JSON_spec_amount ("history_fee",
|
||||||
currency,
|
currency,
|
||||||
&fees.history),
|
&fees.history),
|
||||||
TALER_JSON_spec_amount ("kyc_fee",
|
|
||||||
currency,
|
|
||||||
&fees.kyc),
|
|
||||||
TALER_JSON_spec_amount ("account_fee",
|
TALER_JSON_spec_amount ("account_fee",
|
||||||
currency,
|
currency,
|
||||||
&fees.account),
|
&fees.account),
|
||||||
@ -1759,8 +1752,6 @@ upload_global_fee (const char *exchange_url,
|
|||||||
&fees.purse),
|
&fees.purse),
|
||||||
GNUNET_JSON_spec_relative_time ("purse_timeout",
|
GNUNET_JSON_spec_relative_time ("purse_timeout",
|
||||||
&purse_timeout),
|
&purse_timeout),
|
||||||
GNUNET_JSON_spec_relative_time ("kyc_timeout",
|
|
||||||
&kyc_timeout),
|
|
||||||
GNUNET_JSON_spec_relative_time ("history_expiration",
|
GNUNET_JSON_spec_relative_time ("history_expiration",
|
||||||
&history_expiration),
|
&history_expiration),
|
||||||
GNUNET_JSON_spec_uint32 ("purse_account_limit",
|
GNUNET_JSON_spec_uint32 ("purse_account_limit",
|
||||||
@ -1801,7 +1792,6 @@ upload_global_fee (const char *exchange_url,
|
|||||||
end_time,
|
end_time,
|
||||||
&fees,
|
&fees,
|
||||||
purse_timeout,
|
purse_timeout,
|
||||||
kyc_timeout,
|
|
||||||
history_expiration,
|
history_expiration,
|
||||||
purse_account_limit,
|
purse_account_limit,
|
||||||
&master_sig,
|
&master_sig,
|
||||||
@ -2752,7 +2742,7 @@ do_del_wire (char *const *args)
|
|||||||
*
|
*
|
||||||
* @param args the array of command-line arguments to process next;
|
* @param args the array of command-line arguments to process next;
|
||||||
* args[0] must be the year, args[1] the wire method, args[2] the wire fee and args[3]
|
* args[0] must be the year, args[1] the wire method, args[2] the wire fee and args[3]
|
||||||
* the closing fee and args[4] the wad fee.
|
* the closing fee.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
do_set_wire_fee (char *const *args)
|
do_set_wire_fee (char *const *args)
|
||||||
@ -2776,7 +2766,6 @@ do_set_wire_fee (char *const *args)
|
|||||||
(NULL == args[1]) ||
|
(NULL == args[1]) ||
|
||||||
(NULL == args[2]) ||
|
(NULL == args[2]) ||
|
||||||
(NULL == args[3]) ||
|
(NULL == args[3]) ||
|
||||||
(NULL == args[4]) ||
|
|
||||||
( (1 != sscanf (args[0],
|
( (1 != sscanf (args[0],
|
||||||
"%u%c",
|
"%u%c",
|
||||||
&year,
|
&year,
|
||||||
@ -2788,13 +2777,10 @@ do_set_wire_fee (char *const *args)
|
|||||||
&fees.wire)) ||
|
&fees.wire)) ||
|
||||||
(GNUNET_OK !=
|
(GNUNET_OK !=
|
||||||
TALER_string_to_amount (args[3],
|
TALER_string_to_amount (args[3],
|
||||||
&fees.closing)) ||
|
&fees.closing)) )
|
||||||
(GNUNET_OK !=
|
|
||||||
TALER_string_to_amount (args[4],
|
|
||||||
&fees.wad)) )
|
|
||||||
{
|
{
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||||
"You must use YEAR, METHOD, WIRE-FEE, CLOSING-FEE and WAD-FEE as arguments for this subcommand\n");
|
"You must use YEAR, METHOD, WIRE-FEE, and CLOSING-FEE as arguments for this subcommand\n");
|
||||||
test_shutdown ();
|
test_shutdown ();
|
||||||
global_ret = EXIT_INVALIDARGUMENT;
|
global_ret = EXIT_INVALIDARGUMENT;
|
||||||
return;
|
return;
|
||||||
@ -2826,13 +2812,11 @@ do_set_wire_fee (char *const *args)
|
|||||||
end_time),
|
end_time),
|
||||||
TALER_JSON_pack_amount ("wire_fee",
|
TALER_JSON_pack_amount ("wire_fee",
|
||||||
&fees.wire),
|
&fees.wire),
|
||||||
TALER_JSON_pack_amount ("wad_fee",
|
|
||||||
&fees.wad),
|
|
||||||
TALER_JSON_pack_amount ("closing_fee",
|
TALER_JSON_pack_amount ("closing_fee",
|
||||||
&fees.closing),
|
&fees.closing),
|
||||||
GNUNET_JSON_pack_data_auto ("master_sig",
|
GNUNET_JSON_pack_data_auto ("master_sig",
|
||||||
&master_sig)));
|
&master_sig)));
|
||||||
next (args + 5);
|
next (args + 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -2840,9 +2824,9 @@ do_set_wire_fee (char *const *args)
|
|||||||
* Set global fees for the given year.
|
* Set global fees for the given year.
|
||||||
*
|
*
|
||||||
* @param args the array of command-line arguments to process next;
|
* @param args the array of command-line arguments to process next;
|
||||||
* args[0] must be the year, args[1] the history fee, args[2] the kyc fee, args[3]
|
* args[0] must be the year, args[1] the history fee, args[2]
|
||||||
* the account fee and args[4] the purse fee. These are followed by args[5] purse timeout,
|
* the account fee and args[3] the purse fee. These are followed by args[4] purse timeout,
|
||||||
* args[6] kyc timeout and args[7] history expiration. Last is args[8] the (free) purse account limit.
|
* args[5] history expiration. Last is args[6] the (free) purse account limit.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
do_set_global_fee (char *const *args)
|
do_set_global_fee (char *const *args)
|
||||||
@ -2852,7 +2836,6 @@ do_set_global_fee (char *const *args)
|
|||||||
unsigned int year;
|
unsigned int year;
|
||||||
struct TALER_GlobalFeeSet fees;
|
struct TALER_GlobalFeeSet fees;
|
||||||
struct GNUNET_TIME_Relative purse_timeout;
|
struct GNUNET_TIME_Relative purse_timeout;
|
||||||
struct GNUNET_TIME_Relative kyc_timeout;
|
|
||||||
struct GNUNET_TIME_Relative history_expiration;
|
struct GNUNET_TIME_Relative history_expiration;
|
||||||
unsigned int purse_account_limit;
|
unsigned int purse_account_limit;
|
||||||
struct GNUNET_TIME_Timestamp start_time;
|
struct GNUNET_TIME_Timestamp start_time;
|
||||||
@ -2873,8 +2856,6 @@ do_set_global_fee (char *const *args)
|
|||||||
(NULL == args[4]) ||
|
(NULL == args[4]) ||
|
||||||
(NULL == args[5]) ||
|
(NULL == args[5]) ||
|
||||||
(NULL == args[6]) ||
|
(NULL == args[6]) ||
|
||||||
(NULL == args[7]) ||
|
|
||||||
(NULL == args[8]) ||
|
|
||||||
( (1 != sscanf (args[0],
|
( (1 != sscanf (args[0],
|
||||||
"%u%c",
|
"%u%c",
|
||||||
&year,
|
&year,
|
||||||
@ -2886,29 +2867,23 @@ do_set_global_fee (char *const *args)
|
|||||||
&fees.history)) ||
|
&fees.history)) ||
|
||||||
(GNUNET_OK !=
|
(GNUNET_OK !=
|
||||||
TALER_string_to_amount (args[2],
|
TALER_string_to_amount (args[2],
|
||||||
&fees.kyc)) ||
|
|
||||||
(GNUNET_OK !=
|
|
||||||
TALER_string_to_amount (args[3],
|
|
||||||
&fees.account)) ||
|
&fees.account)) ||
|
||||||
(GNUNET_OK !=
|
(GNUNET_OK !=
|
||||||
TALER_string_to_amount (args[4],
|
TALER_string_to_amount (args[3],
|
||||||
&fees.purse)) ||
|
&fees.purse)) ||
|
||||||
(GNUNET_OK !=
|
(GNUNET_OK !=
|
||||||
GNUNET_STRINGS_fancy_time_to_relative (args[5],
|
GNUNET_STRINGS_fancy_time_to_relative (args[4],
|
||||||
&purse_timeout)) ||
|
&purse_timeout)) ||
|
||||||
(GNUNET_OK !=
|
(GNUNET_OK !=
|
||||||
GNUNET_STRINGS_fancy_time_to_relative (args[6],
|
GNUNET_STRINGS_fancy_time_to_relative (args[5],
|
||||||
&kyc_timeout)) ||
|
|
||||||
(GNUNET_OK !=
|
|
||||||
GNUNET_STRINGS_fancy_time_to_relative (args[7],
|
|
||||||
&history_expiration)) ||
|
&history_expiration)) ||
|
||||||
(1 != sscanf (args[8],
|
(1 != sscanf (args[6],
|
||||||
"%u%c",
|
"%u%c",
|
||||||
&purse_account_limit,
|
&purse_account_limit,
|
||||||
&dummy)) )
|
&dummy)) )
|
||||||
{
|
{
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||||
"You must use YEAR, HISTORY-FEE, KYC-FEE, ACCOUNT-FEE, PURSE-FEE, PURSE-TIMEOUT, KYC-TIMEOUT, HISTORY-EXPIRATION and PURSE-ACCOUNT-LIMIT as arguments for this subcommand\n");
|
"You must use YEAR, HISTORY-FEE, ACCOUNT-FEE, PURSE-FEE, PURSE-TIMEOUT, HISTORY-EXPIRATION and PURSE-ACCOUNT-LIMIT as arguments for this subcommand\n");
|
||||||
test_shutdown ();
|
test_shutdown ();
|
||||||
global_ret = EXIT_INVALIDARGUMENT;
|
global_ret = EXIT_INVALIDARGUMENT;
|
||||||
return;
|
return;
|
||||||
@ -2928,7 +2903,6 @@ do_set_global_fee (char *const *args)
|
|||||||
end_time,
|
end_time,
|
||||||
&fees,
|
&fees,
|
||||||
purse_timeout,
|
purse_timeout,
|
||||||
kyc_timeout,
|
|
||||||
history_expiration,
|
history_expiration,
|
||||||
(uint32_t) purse_account_limit,
|
(uint32_t) purse_account_limit,
|
||||||
&master_priv,
|
&master_priv,
|
||||||
@ -2941,23 +2915,19 @@ do_set_global_fee (char *const *args)
|
|||||||
end_time),
|
end_time),
|
||||||
TALER_JSON_pack_amount ("history_fee",
|
TALER_JSON_pack_amount ("history_fee",
|
||||||
&fees.history),
|
&fees.history),
|
||||||
TALER_JSON_pack_amount ("kyc_fee",
|
|
||||||
&fees.kyc),
|
|
||||||
TALER_JSON_pack_amount ("account_fee",
|
TALER_JSON_pack_amount ("account_fee",
|
||||||
&fees.account),
|
&fees.account),
|
||||||
TALER_JSON_pack_amount ("purse_fee",
|
TALER_JSON_pack_amount ("purse_fee",
|
||||||
&fees.purse),
|
&fees.purse),
|
||||||
GNUNET_JSON_pack_time_rel ("purse_timeout",
|
GNUNET_JSON_pack_time_rel ("purse_timeout",
|
||||||
purse_timeout),
|
purse_timeout),
|
||||||
GNUNET_JSON_pack_time_rel ("kyc_timeout",
|
|
||||||
kyc_timeout),
|
|
||||||
GNUNET_JSON_pack_time_rel ("history_expiration",
|
GNUNET_JSON_pack_time_rel ("history_expiration",
|
||||||
history_expiration),
|
history_expiration),
|
||||||
GNUNET_JSON_pack_uint64 ("purse_account_limit",
|
GNUNET_JSON_pack_uint64 ("purse_account_limit",
|
||||||
(uint32_t) purse_account_limit),
|
(uint32_t) purse_account_limit),
|
||||||
GNUNET_JSON_pack_data_auto ("master_sig",
|
GNUNET_JSON_pack_data_auto ("master_sig",
|
||||||
&master_sig)));
|
&master_sig)));
|
||||||
next (args + 9);
|
next (args + 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -4476,13 +4446,13 @@ work (void *cls)
|
|||||||
{
|
{
|
||||||
.name = "wire-fee",
|
.name = "wire-fee",
|
||||||
.help =
|
.help =
|
||||||
"sign wire fees for the given year (year, wire method, wire fee, closing fee and wad fee must be given as arguments)",
|
"sign wire fees for the given year (year, wire method, wire fee, and closing fee must be given as arguments)",
|
||||||
.cb = &do_set_wire_fee
|
.cb = &do_set_wire_fee
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "global-fee",
|
.name = "global-fee",
|
||||||
.help =
|
.help =
|
||||||
"sign global fees for the given year (year, history fee, kyc fee, account fee, purse fee, purse timeout, kyc timeout, history expiration and the maximum number of free purses per account must be given as arguments)",
|
"sign global fees for the given year (year, history fee, account fee, purse fee, purse timeout, history expiration and the maximum number of free purses per account must be given as arguments)",
|
||||||
.cb = &do_set_global_fee
|
.cb = &do_set_global_fee
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -2426,7 +2426,6 @@ finish_keys_response (struct TEH_KeyStateHandle *ksh)
|
|||||||
* @param cls `struct TEH_KeyStateHandle *` we are building
|
* @param cls `struct TEH_KeyStateHandle *` we are building
|
||||||
* @param fees the global fees we charge
|
* @param fees the global fees we charge
|
||||||
* @param purse_timeout when do purses time out
|
* @param purse_timeout when do purses time out
|
||||||
* @param kyc_timeout when do reserves without KYC time out
|
|
||||||
* @param history_expiration how long are account histories preserved
|
* @param history_expiration how long are account histories preserved
|
||||||
* @param purse_account_limit how many purses are free per account
|
* @param purse_account_limit how many purses are free per account
|
||||||
* @param start_date from when are these fees valid (start date)
|
* @param start_date from when are these fees valid (start date)
|
||||||
@ -2439,7 +2438,6 @@ global_fee_info_cb (
|
|||||||
void *cls,
|
void *cls,
|
||||||
const struct TALER_GlobalFeeSet *fees,
|
const struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
uint32_t purse_account_limit,
|
uint32_t purse_account_limit,
|
||||||
struct GNUNET_TIME_Timestamp start_date,
|
struct GNUNET_TIME_Timestamp start_date,
|
||||||
@ -2457,7 +2455,6 @@ global_fee_info_cb (
|
|||||||
gf->end_date = end_date;
|
gf->end_date = end_date;
|
||||||
gf->fees = *fees;
|
gf->fees = *fees;
|
||||||
gf->purse_timeout = purse_timeout;
|
gf->purse_timeout = purse_timeout;
|
||||||
gf->kyc_timeout = kyc_timeout;
|
|
||||||
gf->history_expiration = history_expiration;
|
gf->history_expiration = history_expiration;
|
||||||
gf->purse_account_limit = purse_account_limit;
|
gf->purse_account_limit = purse_account_limit;
|
||||||
gf->master_sig = *master_sig;
|
gf->master_sig = *master_sig;
|
||||||
@ -2476,8 +2473,6 @@ global_fee_info_cb (
|
|||||||
TALER_JSON_PACK_GLOBAL_FEES (fees),
|
TALER_JSON_PACK_GLOBAL_FEES (fees),
|
||||||
GNUNET_JSON_pack_time_rel ("history_expiration",
|
GNUNET_JSON_pack_time_rel ("history_expiration",
|
||||||
history_expiration),
|
history_expiration),
|
||||||
GNUNET_JSON_pack_time_rel ("account_kyc_timeout",
|
|
||||||
kyc_timeout),
|
|
||||||
GNUNET_JSON_pack_time_rel ("purse_timeout",
|
GNUNET_JSON_pack_time_rel ("purse_timeout",
|
||||||
purse_timeout),
|
purse_timeout),
|
||||||
GNUNET_JSON_pack_uint64 ("purse_account_limit",
|
GNUNET_JSON_pack_uint64 ("purse_account_limit",
|
||||||
|
@ -112,11 +112,6 @@ struct TEH_GlobalFee
|
|||||||
*/
|
*/
|
||||||
struct GNUNET_TIME_Relative purse_timeout;
|
struct GNUNET_TIME_Relative purse_timeout;
|
||||||
|
|
||||||
/**
|
|
||||||
* How long do we keep accounts without KYC?
|
|
||||||
*/
|
|
||||||
struct GNUNET_TIME_Relative kyc_timeout;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* What is the longest history we return?
|
* What is the longest history we return?
|
||||||
*/
|
*/
|
||||||
|
@ -103,7 +103,6 @@ add_fee (void *cls,
|
|||||||
enum GNUNET_DB_QueryStatus qs;
|
enum GNUNET_DB_QueryStatus qs;
|
||||||
struct TALER_GlobalFeeSet fees;
|
struct TALER_GlobalFeeSet fees;
|
||||||
struct GNUNET_TIME_Relative purse_timeout;
|
struct GNUNET_TIME_Relative purse_timeout;
|
||||||
struct GNUNET_TIME_Relative kyc_timeout;
|
|
||||||
struct GNUNET_TIME_Relative history_expiration;
|
struct GNUNET_TIME_Relative history_expiration;
|
||||||
uint32_t purse_account_limit;
|
uint32_t purse_account_limit;
|
||||||
|
|
||||||
@ -113,7 +112,6 @@ add_fee (void *cls,
|
|||||||
afc->end_time,
|
afc->end_time,
|
||||||
&fees,
|
&fees,
|
||||||
&purse_timeout,
|
&purse_timeout,
|
||||||
&kyc_timeout,
|
|
||||||
&history_expiration,
|
&history_expiration,
|
||||||
&purse_account_limit);
|
&purse_account_limit);
|
||||||
if (qs < 0)
|
if (qs < 0)
|
||||||
@ -155,7 +153,6 @@ add_fee (void *cls,
|
|||||||
afc->end_time,
|
afc->end_time,
|
||||||
&afc->fees,
|
&afc->fees,
|
||||||
afc->purse_timeout,
|
afc->purse_timeout,
|
||||||
afc->kyc_timeout,
|
|
||||||
afc->history_expiration,
|
afc->history_expiration,
|
||||||
afc->purse_account_limit,
|
afc->purse_account_limit,
|
||||||
&afc->master_sig);
|
&afc->master_sig);
|
||||||
@ -190,9 +187,6 @@ TEH_handler_management_post_global_fees (
|
|||||||
TALER_JSON_spec_amount ("history_fee",
|
TALER_JSON_spec_amount ("history_fee",
|
||||||
TEH_currency,
|
TEH_currency,
|
||||||
&afc.fees.history),
|
&afc.fees.history),
|
||||||
TALER_JSON_spec_amount ("kyc_fee",
|
|
||||||
TEH_currency,
|
|
||||||
&afc.fees.kyc),
|
|
||||||
TALER_JSON_spec_amount ("account_fee",
|
TALER_JSON_spec_amount ("account_fee",
|
||||||
TEH_currency,
|
TEH_currency,
|
||||||
&afc.fees.account),
|
&afc.fees.account),
|
||||||
@ -201,8 +195,6 @@ TEH_handler_management_post_global_fees (
|
|||||||
&afc.fees.purse),
|
&afc.fees.purse),
|
||||||
GNUNET_JSON_spec_relative_time ("purse_timeout",
|
GNUNET_JSON_spec_relative_time ("purse_timeout",
|
||||||
&afc.purse_timeout),
|
&afc.purse_timeout),
|
||||||
GNUNET_JSON_spec_relative_time ("kyc_timeout",
|
|
||||||
&afc.kyc_timeout),
|
|
||||||
GNUNET_JSON_spec_relative_time ("history_expiration",
|
GNUNET_JSON_spec_relative_time ("history_expiration",
|
||||||
&afc.history_expiration),
|
&afc.history_expiration),
|
||||||
GNUNET_JSON_spec_uint32 ("purse_account_limit",
|
GNUNET_JSON_spec_uint32 ("purse_account_limit",
|
||||||
@ -229,7 +221,6 @@ TEH_handler_management_post_global_fees (
|
|||||||
afc.end_time,
|
afc.end_time,
|
||||||
&afc.fees,
|
&afc.fees,
|
||||||
afc.purse_timeout,
|
afc.purse_timeout,
|
||||||
afc.kyc_timeout,
|
|
||||||
afc.history_expiration,
|
afc.history_expiration,
|
||||||
afc.purse_account_limit,
|
afc.purse_account_limit,
|
||||||
&TEH_master_public_key,
|
&TEH_master_public_key,
|
||||||
|
@ -170,9 +170,6 @@ TEH_handler_management_post_wire_fees (
|
|||||||
TALER_JSON_spec_amount ("closing_fee",
|
TALER_JSON_spec_amount ("closing_fee",
|
||||||
TEH_currency,
|
TEH_currency,
|
||||||
&afc.fees.closing),
|
&afc.fees.closing),
|
||||||
TALER_JSON_spec_amount ("wad_fee",
|
|
||||||
TEH_currency,
|
|
||||||
&afc.fees.wad),
|
|
||||||
GNUNET_JSON_spec_end ()
|
GNUNET_JSON_spec_end ()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -168,15 +168,20 @@ reply_merge_success (struct MHD_Connection *connection,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if WAD_NOT_IMPLEMENTED
|
||||||
|
/* FIXME: figure out partner, lookup wad fee by partner! */
|
||||||
if (0 >
|
if (0 >
|
||||||
TALER_amount_subtract (&merge_amount,
|
TALER_amount_subtract (&merge_amount,
|
||||||
&pcc->target_amount,
|
&pcc->target_amount,
|
||||||
&pcc->wf->wad))
|
&wad_fee))
|
||||||
{
|
{
|
||||||
GNUNET_assert (GNUNET_OK ==
|
GNUNET_assert (GNUNET_OK ==
|
||||||
TALER_amount_set_zero (TEH_currency,
|
TALER_amount_set_zero (TEH_currency,
|
||||||
&merge_amount));
|
&merge_amount));
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
merge_amount = pcc->target_amount;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if (TALER_EC_NONE !=
|
if (TALER_EC_NONE !=
|
||||||
(ec = TALER_exchange_online_purse_merged_sign (
|
(ec = TALER_exchange_online_purse_merged_sign (
|
||||||
|
@ -322,8 +322,6 @@ add_wire_fee (void *cls,
|
|||||||
GNUNET_JSON_PACK (
|
GNUNET_JSON_PACK (
|
||||||
TALER_JSON_pack_amount ("wire_fee",
|
TALER_JSON_pack_amount ("wire_fee",
|
||||||
&fees->wire),
|
&fees->wire),
|
||||||
TALER_JSON_pack_amount ("wad_fee",
|
|
||||||
&fees->wad),
|
|
||||||
TALER_JSON_pack_amount ("closing_fee",
|
TALER_JSON_pack_amount ("closing_fee",
|
||||||
&fees->closing),
|
&fees->closing),
|
||||||
GNUNET_JSON_pack_timestamp ("start_date",
|
GNUNET_JSON_pack_timestamp ("start_date",
|
||||||
|
@ -813,8 +813,6 @@ CREATE TABLE IF NOT EXISTS wire_fee
|
|||||||
,wire_fee_frac INT4 NOT NULL
|
,wire_fee_frac INT4 NOT NULL
|
||||||
,closing_fee_val INT8 NOT NULL
|
,closing_fee_val INT8 NOT NULL
|
||||||
,closing_fee_frac INT4 NOT NULL
|
,closing_fee_frac INT4 NOT NULL
|
||||||
,wad_fee_val INT8 NOT NULL
|
|
||||||
,wad_fee_frac INT4 NOT NULL
|
|
||||||
,master_sig BYTEA NOT NULL CHECK (LENGTH(master_sig)=64)
|
,master_sig BYTEA NOT NULL CHECK (LENGTH(master_sig)=64)
|
||||||
,PRIMARY KEY (wire_method, start_date)
|
,PRIMARY KEY (wire_method, start_date)
|
||||||
);
|
);
|
||||||
@ -836,14 +834,11 @@ CREATE TABLE IF NOT EXISTS global_fee
|
|||||||
,end_date INT8 NOT NULL
|
,end_date INT8 NOT NULL
|
||||||
,history_fee_val INT8 NOT NULL
|
,history_fee_val INT8 NOT NULL
|
||||||
,history_fee_frac INT4 NOT NULL
|
,history_fee_frac INT4 NOT NULL
|
||||||
,kyc_fee_val INT8 NOT NULL
|
|
||||||
,kyc_fee_frac INT4 NOT NULL
|
|
||||||
,account_fee_val INT8 NOT NULL
|
,account_fee_val INT8 NOT NULL
|
||||||
,account_fee_frac INT4 NOT NULL
|
,account_fee_frac INT4 NOT NULL
|
||||||
,purse_fee_val INT8 NOT NULL
|
,purse_fee_val INT8 NOT NULL
|
||||||
,purse_fee_frac INT4 NOT NULL
|
,purse_fee_frac INT4 NOT NULL
|
||||||
,purse_timeout INT8 NOT NULL
|
,purse_timeout INT8 NOT NULL
|
||||||
,kyc_timeout INT8 NOT NULL
|
|
||||||
,history_expiration INT8 NOT NULL
|
,history_expiration INT8 NOT NULL
|
||||||
,purse_account_limit INT4 NOT NULL
|
,purse_account_limit INT4 NOT NULL
|
||||||
,master_sig BYTEA NOT NULL CHECK (LENGTH(master_sig)=64)
|
,master_sig BYTEA NOT NULL CHECK (LENGTH(master_sig)=64)
|
||||||
|
@ -1037,7 +1037,6 @@ irbt_cb_table_wire_fee (struct PostgresClosure *pg,
|
|||||||
GNUNET_PQ_query_param_timestamp (&td->details.wire_fee.end_date),
|
GNUNET_PQ_query_param_timestamp (&td->details.wire_fee.end_date),
|
||||||
TALER_PQ_query_param_amount (&td->details.wire_fee.fees.wire),
|
TALER_PQ_query_param_amount (&td->details.wire_fee.fees.wire),
|
||||||
TALER_PQ_query_param_amount (&td->details.wire_fee.fees.closing),
|
TALER_PQ_query_param_amount (&td->details.wire_fee.fees.closing),
|
||||||
TALER_PQ_query_param_amount (&td->details.wire_fee.fees.wad),
|
|
||||||
GNUNET_PQ_query_param_auto_from_type (&td->details.wire_fee.master_sig),
|
GNUNET_PQ_query_param_auto_from_type (&td->details.wire_fee.master_sig),
|
||||||
GNUNET_PQ_query_param_end
|
GNUNET_PQ_query_param_end
|
||||||
};
|
};
|
||||||
@ -1083,16 +1082,12 @@ irbt_cb_table_global_fee (struct PostgresClosure *pg,
|
|||||||
&td->details.global_fee.end_date),
|
&td->details.global_fee.end_date),
|
||||||
TALER_PQ_query_param_amount (
|
TALER_PQ_query_param_amount (
|
||||||
&td->details.global_fee.fees.history),
|
&td->details.global_fee.fees.history),
|
||||||
TALER_PQ_query_param_amount (
|
|
||||||
&td->details.global_fee.fees.kyc),
|
|
||||||
TALER_PQ_query_param_amount (
|
TALER_PQ_query_param_amount (
|
||||||
&td->details.global_fee.fees.account),
|
&td->details.global_fee.fees.account),
|
||||||
TALER_PQ_query_param_amount (
|
TALER_PQ_query_param_amount (
|
||||||
&td->details.global_fee.fees.purse),
|
&td->details.global_fee.fees.purse),
|
||||||
GNUNET_PQ_query_param_relative_time (
|
GNUNET_PQ_query_param_relative_time (
|
||||||
&td->details.global_fee.purse_timeout),
|
&td->details.global_fee.purse_timeout),
|
||||||
GNUNET_PQ_query_param_relative_time (
|
|
||||||
&td->details.global_fee.kyc_timeout),
|
|
||||||
GNUNET_PQ_query_param_relative_time (
|
GNUNET_PQ_query_param_relative_time (
|
||||||
&td->details.global_fee.history_expiration),
|
&td->details.global_fee.history_expiration),
|
||||||
GNUNET_PQ_query_param_uint32 (
|
GNUNET_PQ_query_param_uint32 (
|
||||||
@ -1110,19 +1105,16 @@ irbt_cb_table_global_fee (struct PostgresClosure *pg,
|
|||||||
",end_date"
|
",end_date"
|
||||||
",history_fee_val"
|
",history_fee_val"
|
||||||
",history_fee_frac"
|
",history_fee_frac"
|
||||||
",kyc_fee_val"
|
|
||||||
",kyc_fee_frac"
|
|
||||||
",account_fee_val"
|
",account_fee_val"
|
||||||
",account_fee_frac"
|
",account_fee_frac"
|
||||||
",purse_fee_val"
|
",purse_fee_val"
|
||||||
",purse_fee_frac"
|
",purse_fee_frac"
|
||||||
",purse_timeout"
|
",purse_timeout"
|
||||||
",kyc_timeout"
|
|
||||||
",history_expiration"
|
",history_expiration"
|
||||||
",purse_account_limit"
|
",purse_account_limit"
|
||||||
",master_sig"
|
",master_sig"
|
||||||
") VALUES "
|
") VALUES "
|
||||||
"($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16);");
|
"($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13);");
|
||||||
return GNUNET_PQ_eval_prepared_non_select (pg->conn,
|
return GNUNET_PQ_eval_prepared_non_select (pg->conn,
|
||||||
"insert_into_table_global_fee",
|
"insert_into_table_global_fee",
|
||||||
params);
|
params);
|
||||||
|
@ -1194,8 +1194,6 @@ lrbt_cb_table_wire_fee (void *cls,
|
|||||||
&td.details.wire_fee.fees.wire),
|
&td.details.wire_fee.fees.wire),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("closing_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("closing_fee",
|
||||||
&td.details.wire_fee.fees.closing),
|
&td.details.wire_fee.fees.closing),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("wad_fee",
|
|
||||||
&td.details.wire_fee.fees.wad),
|
|
||||||
GNUNET_PQ_result_spec_auto_from_type ("master_sig",
|
GNUNET_PQ_result_spec_auto_from_type ("master_sig",
|
||||||
&td.details.wire_fee.master_sig),
|
&td.details.wire_fee.master_sig),
|
||||||
GNUNET_PQ_result_spec_end
|
GNUNET_PQ_result_spec_end
|
||||||
@ -1250,9 +1248,6 @@ lrbt_cb_table_global_fee (void *cls,
|
|||||||
TALER_PQ_RESULT_SPEC_AMOUNT (
|
TALER_PQ_RESULT_SPEC_AMOUNT (
|
||||||
"history_fee",
|
"history_fee",
|
||||||
&td.details.global_fee.fees.history),
|
&td.details.global_fee.fees.history),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT (
|
|
||||||
"kyc_fee",
|
|
||||||
&td.details.global_fee.fees.kyc),
|
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT (
|
TALER_PQ_RESULT_SPEC_AMOUNT (
|
||||||
"account_fee",
|
"account_fee",
|
||||||
&td.details.global_fee.fees.account),
|
&td.details.global_fee.fees.account),
|
||||||
@ -1262,9 +1257,6 @@ lrbt_cb_table_global_fee (void *cls,
|
|||||||
GNUNET_PQ_result_spec_relative_time (
|
GNUNET_PQ_result_spec_relative_time (
|
||||||
"purse_timeout",
|
"purse_timeout",
|
||||||
&td.details.global_fee.purse_timeout),
|
&td.details.global_fee.purse_timeout),
|
||||||
GNUNET_PQ_result_spec_relative_time (
|
|
||||||
"kyc_timeout",
|
|
||||||
&td.details.global_fee.kyc_timeout),
|
|
||||||
GNUNET_PQ_result_spec_relative_time (
|
GNUNET_PQ_result_spec_relative_time (
|
||||||
"history_expiration",
|
"history_expiration",
|
||||||
&td.details.global_fee.history_expiration),
|
&td.details.global_fee.history_expiration),
|
||||||
@ -2567,14 +2559,11 @@ TEH_PG_lookup_records_by_table (void *cls,
|
|||||||
",end_date"
|
",end_date"
|
||||||
",history_fee_val"
|
",history_fee_val"
|
||||||
",history_fee_frac"
|
",history_fee_frac"
|
||||||
",kyc_fee_val"
|
|
||||||
",kyc_fee_frac"
|
|
||||||
",account_fee_val"
|
",account_fee_val"
|
||||||
",account_fee_frac"
|
",account_fee_frac"
|
||||||
",purse_fee_val"
|
",purse_fee_val"
|
||||||
",purse_fee_frac"
|
",purse_fee_frac"
|
||||||
",purse_timeout"
|
",purse_timeout"
|
||||||
",kyc_timeout"
|
|
||||||
",history_expiration"
|
",history_expiration"
|
||||||
",purse_account_limit"
|
",purse_account_limit"
|
||||||
",master_sig"
|
",master_sig"
|
||||||
|
@ -1598,8 +1598,6 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
",wire_fee_frac"
|
",wire_fee_frac"
|
||||||
",closing_fee_val"
|
",closing_fee_val"
|
||||||
",closing_fee_frac"
|
",closing_fee_frac"
|
||||||
",wad_fee_val"
|
|
||||||
",wad_fee_frac"
|
|
||||||
",master_sig"
|
",master_sig"
|
||||||
" FROM wire_fee"
|
" FROM wire_fee"
|
||||||
" WHERE wire_method=$1"
|
" WHERE wire_method=$1"
|
||||||
@ -1613,14 +1611,11 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
",end_date"
|
",end_date"
|
||||||
",history_fee_val"
|
",history_fee_val"
|
||||||
",history_fee_frac"
|
",history_fee_frac"
|
||||||
",kyc_fee_val"
|
|
||||||
",kyc_fee_frac"
|
|
||||||
",account_fee_val"
|
",account_fee_val"
|
||||||
",account_fee_frac"
|
",account_fee_frac"
|
||||||
",purse_fee_val"
|
",purse_fee_val"
|
||||||
",purse_fee_frac"
|
",purse_fee_frac"
|
||||||
",purse_timeout"
|
",purse_timeout"
|
||||||
",kyc_timeout"
|
|
||||||
",history_expiration"
|
",history_expiration"
|
||||||
",purse_account_limit"
|
",purse_account_limit"
|
||||||
",master_sig"
|
",master_sig"
|
||||||
@ -1635,14 +1630,11 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
",end_date"
|
",end_date"
|
||||||
",history_fee_val"
|
",history_fee_val"
|
||||||
",history_fee_frac"
|
",history_fee_frac"
|
||||||
",kyc_fee_val"
|
|
||||||
",kyc_fee_frac"
|
|
||||||
",account_fee_val"
|
",account_fee_val"
|
||||||
",account_fee_frac"
|
",account_fee_frac"
|
||||||
",purse_fee_val"
|
",purse_fee_val"
|
||||||
",purse_fee_frac"
|
",purse_fee_frac"
|
||||||
",purse_timeout"
|
",purse_timeout"
|
||||||
",kyc_timeout"
|
|
||||||
",history_expiration"
|
",history_expiration"
|
||||||
",purse_account_limit"
|
",purse_account_limit"
|
||||||
",master_sig"
|
",master_sig"
|
||||||
@ -1659,11 +1651,9 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
",wire_fee_frac"
|
",wire_fee_frac"
|
||||||
",closing_fee_val"
|
",closing_fee_val"
|
||||||
",closing_fee_frac"
|
",closing_fee_frac"
|
||||||
",wad_fee_val"
|
|
||||||
",wad_fee_frac"
|
|
||||||
",master_sig"
|
",master_sig"
|
||||||
") VALUES "
|
") VALUES "
|
||||||
"($1, $2, $3, $4, $5, $6, $7, $8, $9, $10);"),
|
"($1, $2, $3, $4, $5, $6, $7, $8);"),
|
||||||
/* Used in #postgres_insert_global_fee */
|
/* Used in #postgres_insert_global_fee */
|
||||||
GNUNET_PQ_make_prepare (
|
GNUNET_PQ_make_prepare (
|
||||||
"insert_global_fee",
|
"insert_global_fee",
|
||||||
@ -1672,19 +1662,16 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
",end_date"
|
",end_date"
|
||||||
",history_fee_val"
|
",history_fee_val"
|
||||||
",history_fee_frac"
|
",history_fee_frac"
|
||||||
",kyc_fee_val"
|
|
||||||
",kyc_fee_frac"
|
|
||||||
",account_fee_val"
|
",account_fee_val"
|
||||||
",account_fee_frac"
|
",account_fee_frac"
|
||||||
",purse_fee_val"
|
",purse_fee_val"
|
||||||
",purse_fee_frac"
|
",purse_fee_frac"
|
||||||
",purse_timeout"
|
",purse_timeout"
|
||||||
",kyc_timeout"
|
|
||||||
",history_expiration"
|
",history_expiration"
|
||||||
",purse_account_limit"
|
",purse_account_limit"
|
||||||
",master_sig"
|
",master_sig"
|
||||||
") VALUES "
|
") VALUES "
|
||||||
"($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15);"),
|
"($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12);"),
|
||||||
/* Used in #postgres_store_wire_transfer_out */
|
/* Used in #postgres_store_wire_transfer_out */
|
||||||
GNUNET_PQ_make_prepare (
|
GNUNET_PQ_make_prepare (
|
||||||
"insert_wire_out",
|
"insert_wire_out",
|
||||||
@ -1953,8 +1940,6 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
",wire_fee_frac"
|
",wire_fee_frac"
|
||||||
",closing_fee_val"
|
",closing_fee_val"
|
||||||
",closing_fee_frac"
|
",closing_fee_frac"
|
||||||
",wad_fee_val"
|
|
||||||
",wad_fee_frac"
|
|
||||||
",start_date"
|
",start_date"
|
||||||
",end_date"
|
",end_date"
|
||||||
",master_sig"
|
",master_sig"
|
||||||
@ -2057,8 +2042,6 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
",wire_fee_frac"
|
",wire_fee_frac"
|
||||||
",closing_fee_val"
|
",closing_fee_val"
|
||||||
",closing_fee_frac"
|
",closing_fee_frac"
|
||||||
",wad_fee_val"
|
|
||||||
",wad_fee_frac"
|
|
||||||
" FROM wire_fee"
|
" FROM wire_fee"
|
||||||
" WHERE wire_method=$1"
|
" WHERE wire_method=$1"
|
||||||
" AND end_date > $2"
|
" AND end_date > $2"
|
||||||
@ -2069,14 +2052,11 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
"SELECT"
|
"SELECT"
|
||||||
" history_fee_val"
|
" history_fee_val"
|
||||||
",history_fee_frac"
|
",history_fee_frac"
|
||||||
",kyc_fee_val"
|
|
||||||
",kyc_fee_frac"
|
|
||||||
",account_fee_val"
|
",account_fee_val"
|
||||||
",account_fee_frac"
|
",account_fee_frac"
|
||||||
",purse_fee_val"
|
",purse_fee_val"
|
||||||
",purse_fee_frac"
|
",purse_fee_frac"
|
||||||
",purse_timeout"
|
",purse_timeout"
|
||||||
",kyc_timeout"
|
|
||||||
",history_expiration"
|
",history_expiration"
|
||||||
",purse_account_limit"
|
",purse_account_limit"
|
||||||
" FROM global_fee"
|
" FROM global_fee"
|
||||||
@ -6290,8 +6270,6 @@ postgres_get_wire_fee (void *cls,
|
|||||||
end_date),
|
end_date),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("wire_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("wire_fee",
|
||||||
&fees->wire),
|
&fees->wire),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("wad_fee",
|
|
||||||
&fees->wad),
|
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("closing_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("closing_fee",
|
||||||
&fees->closing),
|
&fees->closing),
|
||||||
GNUNET_PQ_result_spec_auto_from_type ("master_sig",
|
GNUNET_PQ_result_spec_auto_from_type ("master_sig",
|
||||||
@ -6315,7 +6293,6 @@ postgres_get_wire_fee (void *cls,
|
|||||||
* @param[out] end_date when does the fee end being valid
|
* @param[out] end_date when does the fee end being valid
|
||||||
* @param[out] fees how high are the wire fees
|
* @param[out] fees how high are the wire fees
|
||||||
* @param[out] purse_timeout set to how long we keep unmerged purses
|
* @param[out] purse_timeout set to how long we keep unmerged purses
|
||||||
* @param[out] kyc_timeout set to how long we keep accounts without KYC
|
|
||||||
* @param[out] history_expiration set to how long we keep account histories
|
* @param[out] history_expiration set to how long we keep account histories
|
||||||
* @param[out] purse_account_limit set to the number of free purses per account
|
* @param[out] purse_account_limit set to the number of free purses per account
|
||||||
* @param[out] master_sig signature over the above by the exchange master key
|
* @param[out] master_sig signature over the above by the exchange master key
|
||||||
@ -6328,7 +6305,6 @@ postgres_get_global_fee (void *cls,
|
|||||||
struct GNUNET_TIME_Timestamp *end_date,
|
struct GNUNET_TIME_Timestamp *end_date,
|
||||||
struct TALER_GlobalFeeSet *fees,
|
struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative *purse_timeout,
|
struct GNUNET_TIME_Relative *purse_timeout,
|
||||||
struct GNUNET_TIME_Relative *kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative *history_expiration,
|
struct GNUNET_TIME_Relative *history_expiration,
|
||||||
uint32_t *purse_account_limit,
|
uint32_t *purse_account_limit,
|
||||||
struct TALER_MasterSignatureP *master_sig)
|
struct TALER_MasterSignatureP *master_sig)
|
||||||
@ -6345,16 +6321,12 @@ postgres_get_global_fee (void *cls,
|
|||||||
end_date),
|
end_date),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("history_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("history_fee",
|
||||||
&fees->history),
|
&fees->history),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("kyc_fee",
|
|
||||||
&fees->kyc),
|
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("account_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("account_fee",
|
||||||
&fees->account),
|
&fees->account),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("purse_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("purse_fee",
|
||||||
&fees->purse),
|
&fees->purse),
|
||||||
GNUNET_PQ_result_spec_relative_time ("purse_timeout",
|
GNUNET_PQ_result_spec_relative_time ("purse_timeout",
|
||||||
purse_timeout),
|
purse_timeout),
|
||||||
GNUNET_PQ_result_spec_relative_time ("kyc_timeout",
|
|
||||||
kyc_timeout),
|
|
||||||
GNUNET_PQ_result_spec_relative_time ("history_expiration",
|
GNUNET_PQ_result_spec_relative_time ("history_expiration",
|
||||||
history_expiration),
|
history_expiration),
|
||||||
GNUNET_PQ_result_spec_uint32 ("purse_account_limit",
|
GNUNET_PQ_result_spec_uint32 ("purse_account_limit",
|
||||||
@ -6418,7 +6390,6 @@ global_fees_cb (void *cls,
|
|||||||
{
|
{
|
||||||
struct TALER_GlobalFeeSet fees;
|
struct TALER_GlobalFeeSet fees;
|
||||||
struct GNUNET_TIME_Relative purse_timeout;
|
struct GNUNET_TIME_Relative purse_timeout;
|
||||||
struct GNUNET_TIME_Relative kyc_timeout;
|
|
||||||
struct GNUNET_TIME_Relative history_expiration;
|
struct GNUNET_TIME_Relative history_expiration;
|
||||||
uint32_t purse_account_limit;
|
uint32_t purse_account_limit;
|
||||||
struct GNUNET_TIME_Timestamp start_date;
|
struct GNUNET_TIME_Timestamp start_date;
|
||||||
@ -6431,16 +6402,12 @@ global_fees_cb (void *cls,
|
|||||||
&end_date),
|
&end_date),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("history_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("history_fee",
|
||||||
&fees.history),
|
&fees.history),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("kyc_fee",
|
|
||||||
&fees.kyc),
|
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("account_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("account_fee",
|
||||||
&fees.account),
|
&fees.account),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("purse_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("purse_fee",
|
||||||
&fees.purse),
|
&fees.purse),
|
||||||
GNUNET_PQ_result_spec_relative_time ("purse_timeout",
|
GNUNET_PQ_result_spec_relative_time ("purse_timeout",
|
||||||
&purse_timeout),
|
&purse_timeout),
|
||||||
GNUNET_PQ_result_spec_relative_time ("kyc_timeout",
|
|
||||||
&kyc_timeout),
|
|
||||||
GNUNET_PQ_result_spec_relative_time ("history_expiration",
|
GNUNET_PQ_result_spec_relative_time ("history_expiration",
|
||||||
&history_expiration),
|
&history_expiration),
|
||||||
GNUNET_PQ_result_spec_uint32 ("purse_account_limit",
|
GNUNET_PQ_result_spec_uint32 ("purse_account_limit",
|
||||||
@ -6461,7 +6428,6 @@ global_fees_cb (void *cls,
|
|||||||
gctx->cb (gctx->cb_cls,
|
gctx->cb (gctx->cb_cls,
|
||||||
&fees,
|
&fees,
|
||||||
purse_timeout,
|
purse_timeout,
|
||||||
kyc_timeout,
|
|
||||||
history_expiration,
|
history_expiration,
|
||||||
purse_account_limit,
|
purse_account_limit,
|
||||||
start_date,
|
start_date,
|
||||||
@ -6536,7 +6502,6 @@ postgres_insert_wire_fee (void *cls,
|
|||||||
GNUNET_PQ_query_param_timestamp (&end_date),
|
GNUNET_PQ_query_param_timestamp (&end_date),
|
||||||
TALER_PQ_query_param_amount (&fees->wire),
|
TALER_PQ_query_param_amount (&fees->wire),
|
||||||
TALER_PQ_query_param_amount (&fees->closing),
|
TALER_PQ_query_param_amount (&fees->closing),
|
||||||
TALER_PQ_query_param_amount (&fees->wad),
|
|
||||||
GNUNET_PQ_query_param_auto_from_type (master_sig),
|
GNUNET_PQ_query_param_auto_from_type (master_sig),
|
||||||
GNUNET_PQ_query_param_end
|
GNUNET_PQ_query_param_end
|
||||||
};
|
};
|
||||||
@ -6598,7 +6563,6 @@ postgres_insert_wire_fee (void *cls,
|
|||||||
* @param end_date when does the fees end being valid
|
* @param end_date when does the fees end being valid
|
||||||
* @param fees how high is are the global fees
|
* @param fees how high is are the global fees
|
||||||
* @param purse_timeout when do purses time out
|
* @param purse_timeout when do purses time out
|
||||||
* @param kyc_timeout when do reserves without KYC time out
|
|
||||||
* @param history_expiration how long are account histories preserved
|
* @param history_expiration how long are account histories preserved
|
||||||
* @param purse_account_limit how many purses are free per account
|
* @param purse_account_limit how many purses are free per account
|
||||||
* @param master_sig signature over the above by the exchange master key
|
* @param master_sig signature over the above by the exchange master key
|
||||||
@ -6610,7 +6574,6 @@ postgres_insert_global_fee (void *cls,
|
|||||||
struct GNUNET_TIME_Timestamp end_date,
|
struct GNUNET_TIME_Timestamp end_date,
|
||||||
const struct TALER_GlobalFeeSet *fees,
|
const struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
uint32_t purse_account_limit,
|
uint32_t purse_account_limit,
|
||||||
const struct TALER_MasterSignatureP *master_sig)
|
const struct TALER_MasterSignatureP *master_sig)
|
||||||
@ -6620,11 +6583,9 @@ postgres_insert_global_fee (void *cls,
|
|||||||
GNUNET_PQ_query_param_timestamp (&start_date),
|
GNUNET_PQ_query_param_timestamp (&start_date),
|
||||||
GNUNET_PQ_query_param_timestamp (&end_date),
|
GNUNET_PQ_query_param_timestamp (&end_date),
|
||||||
TALER_PQ_query_param_amount (&fees->history),
|
TALER_PQ_query_param_amount (&fees->history),
|
||||||
TALER_PQ_query_param_amount (&fees->kyc),
|
|
||||||
TALER_PQ_query_param_amount (&fees->account),
|
TALER_PQ_query_param_amount (&fees->account),
|
||||||
TALER_PQ_query_param_amount (&fees->purse),
|
TALER_PQ_query_param_amount (&fees->purse),
|
||||||
GNUNET_PQ_query_param_relative_time (&purse_timeout),
|
GNUNET_PQ_query_param_relative_time (&purse_timeout),
|
||||||
GNUNET_PQ_query_param_relative_time (&kyc_timeout),
|
|
||||||
GNUNET_PQ_query_param_relative_time (&history_expiration),
|
GNUNET_PQ_query_param_relative_time (&history_expiration),
|
||||||
GNUNET_PQ_query_param_uint32 (&purse_account_limit),
|
GNUNET_PQ_query_param_uint32 (&purse_account_limit),
|
||||||
GNUNET_PQ_query_param_auto_from_type (master_sig),
|
GNUNET_PQ_query_param_auto_from_type (master_sig),
|
||||||
@ -6636,7 +6597,6 @@ postgres_insert_global_fee (void *cls,
|
|||||||
struct GNUNET_TIME_Timestamp ed;
|
struct GNUNET_TIME_Timestamp ed;
|
||||||
enum GNUNET_DB_QueryStatus qs;
|
enum GNUNET_DB_QueryStatus qs;
|
||||||
struct GNUNET_TIME_Relative pt;
|
struct GNUNET_TIME_Relative pt;
|
||||||
struct GNUNET_TIME_Relative kt;
|
|
||||||
struct GNUNET_TIME_Relative he;
|
struct GNUNET_TIME_Relative he;
|
||||||
uint32_t pal;
|
uint32_t pal;
|
||||||
|
|
||||||
@ -6646,7 +6606,6 @@ postgres_insert_global_fee (void *cls,
|
|||||||
&ed,
|
&ed,
|
||||||
&wx,
|
&wx,
|
||||||
&pt,
|
&pt,
|
||||||
&kt,
|
|
||||||
&he,
|
&he,
|
||||||
&pal,
|
&pal,
|
||||||
&sig);
|
&sig);
|
||||||
@ -6680,9 +6639,6 @@ postgres_insert_global_fee (void *cls,
|
|||||||
if ( (GNUNET_TIME_relative_cmp (purse_timeout,
|
if ( (GNUNET_TIME_relative_cmp (purse_timeout,
|
||||||
!=,
|
!=,
|
||||||
pt)) ||
|
pt)) ||
|
||||||
(GNUNET_TIME_relative_cmp (kyc_timeout,
|
|
||||||
!=,
|
|
||||||
kt)) ||
|
|
||||||
(GNUNET_TIME_relative_cmp (history_expiration,
|
(GNUNET_TIME_relative_cmp (history_expiration,
|
||||||
!=,
|
!=,
|
||||||
he)) )
|
he)) )
|
||||||
@ -10017,8 +9973,6 @@ get_wire_fees_cb (void *cls,
|
|||||||
&fees.wire),
|
&fees.wire),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("closing_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("closing_fee",
|
||||||
&fees.closing),
|
&fees.closing),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("wad_fee",
|
|
||||||
&fees.wad),
|
|
||||||
GNUNET_PQ_result_spec_timestamp ("start_date",
|
GNUNET_PQ_result_spec_timestamp ("start_date",
|
||||||
&start_date),
|
&start_date),
|
||||||
GNUNET_PQ_result_spec_timestamp ("end_date",
|
GNUNET_PQ_result_spec_timestamp ("end_date",
|
||||||
@ -10419,8 +10373,6 @@ wire_fee_by_time_helper (void *cls,
|
|||||||
&fs.wire),
|
&fs.wire),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("closing_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("closing_fee",
|
||||||
&fs.closing),
|
&fs.closing),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("wad_fee",
|
|
||||||
&fs.wad),
|
|
||||||
GNUNET_PQ_result_spec_end
|
GNUNET_PQ_result_spec_end
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -10516,11 +10468,6 @@ struct GlobalFeeLookupContext
|
|||||||
*/
|
*/
|
||||||
struct GNUNET_TIME_Relative *purse_timeout;
|
struct GNUNET_TIME_Relative *purse_timeout;
|
||||||
|
|
||||||
/**
|
|
||||||
* Set to timeout of accounts without kyc.
|
|
||||||
*/
|
|
||||||
struct GNUNET_TIME_Relative *kyc_timeout;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set to history expiration for reserves.
|
* Set to history expiration for reserves.
|
||||||
*/
|
*/
|
||||||
@ -10558,22 +10505,17 @@ global_fee_by_time_helper (void *cls,
|
|||||||
{
|
{
|
||||||
struct TALER_GlobalFeeSet fs;
|
struct TALER_GlobalFeeSet fs;
|
||||||
struct GNUNET_TIME_Relative purse_timeout;
|
struct GNUNET_TIME_Relative purse_timeout;
|
||||||
struct GNUNET_TIME_Relative kyc_timeout;
|
|
||||||
struct GNUNET_TIME_Relative history_expiration;
|
struct GNUNET_TIME_Relative history_expiration;
|
||||||
uint32_t purse_account_limit;
|
uint32_t purse_account_limit;
|
||||||
struct GNUNET_PQ_ResultSpec rs[] = {
|
struct GNUNET_PQ_ResultSpec rs[] = {
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("history_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("history_fee",
|
||||||
&fs.history),
|
&fs.history),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("kyc_fee",
|
|
||||||
&fs.kyc),
|
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("account_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("account_fee",
|
||||||
&fs.account),
|
&fs.account),
|
||||||
TALER_PQ_RESULT_SPEC_AMOUNT ("purse_fee",
|
TALER_PQ_RESULT_SPEC_AMOUNT ("purse_fee",
|
||||||
&fs.purse),
|
&fs.purse),
|
||||||
GNUNET_PQ_result_spec_relative_time ("purse_timeout",
|
GNUNET_PQ_result_spec_relative_time ("purse_timeout",
|
||||||
&purse_timeout),
|
&purse_timeout),
|
||||||
GNUNET_PQ_result_spec_relative_time ("kyc_timeout",
|
|
||||||
&kyc_timeout),
|
|
||||||
GNUNET_PQ_result_spec_relative_time ("history_expiration",
|
GNUNET_PQ_result_spec_relative_time ("history_expiration",
|
||||||
&history_expiration),
|
&history_expiration),
|
||||||
GNUNET_PQ_result_spec_uint32 ("purse_account_limit",
|
GNUNET_PQ_result_spec_uint32 ("purse_account_limit",
|
||||||
@ -10597,7 +10539,6 @@ global_fee_by_time_helper (void *cls,
|
|||||||
{
|
{
|
||||||
*wlc->fees = fs;
|
*wlc->fees = fs;
|
||||||
*wlc->purse_timeout = purse_timeout;
|
*wlc->purse_timeout = purse_timeout;
|
||||||
*wlc->kyc_timeout = kyc_timeout;
|
|
||||||
*wlc->history_expiration = history_expiration;
|
*wlc->history_expiration = history_expiration;
|
||||||
*wlc->purse_account_limit = purse_account_limit;
|
*wlc->purse_account_limit = purse_account_limit;
|
||||||
continue;
|
continue;
|
||||||
@ -10609,9 +10550,6 @@ global_fee_by_time_helper (void *cls,
|
|||||||
(GNUNET_TIME_relative_cmp (purse_timeout,
|
(GNUNET_TIME_relative_cmp (purse_timeout,
|
||||||
!=,
|
!=,
|
||||||
*wlc->purse_timeout)) ||
|
*wlc->purse_timeout)) ||
|
||||||
(GNUNET_TIME_relative_cmp (kyc_timeout,
|
|
||||||
!=,
|
|
||||||
*wlc->kyc_timeout)) ||
|
|
||||||
(GNUNET_TIME_relative_cmp (history_expiration,
|
(GNUNET_TIME_relative_cmp (history_expiration,
|
||||||
!=,
|
!=,
|
||||||
*wlc->history_expiration)) )
|
*wlc->history_expiration)) )
|
||||||
@ -10636,7 +10574,6 @@ global_fee_by_time_helper (void *cls,
|
|||||||
* different global fee exists within this time
|
* different global fee exists within this time
|
||||||
* period, an 'invalid' amount is returned.
|
* period, an 'invalid' amount is returned.
|
||||||
* @param[out] purse_timeout set to when unmerged purses expire
|
* @param[out] purse_timeout set to when unmerged purses expire
|
||||||
* @param[out] kyc_timeout set to when reserves without kyc expire
|
|
||||||
* @param[out] history_expiration set to when we expire reserve histories
|
* @param[out] history_expiration set to when we expire reserve histories
|
||||||
* @param[out] purse_account_limit set to number of free purses
|
* @param[out] purse_account_limit set to number of free purses
|
||||||
* @return transaction status code
|
* @return transaction status code
|
||||||
@ -10648,7 +10585,6 @@ postgres_lookup_global_fee_by_time (
|
|||||||
struct GNUNET_TIME_Timestamp end_time,
|
struct GNUNET_TIME_Timestamp end_time,
|
||||||
struct TALER_GlobalFeeSet *fees,
|
struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative *purse_timeout,
|
struct GNUNET_TIME_Relative *purse_timeout,
|
||||||
struct GNUNET_TIME_Relative *kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative *history_expiration,
|
struct GNUNET_TIME_Relative *history_expiration,
|
||||||
uint32_t *purse_account_limit)
|
uint32_t *purse_account_limit)
|
||||||
{
|
{
|
||||||
@ -10661,7 +10597,6 @@ postgres_lookup_global_fee_by_time (
|
|||||||
struct GlobalFeeLookupContext wlc = {
|
struct GlobalFeeLookupContext wlc = {
|
||||||
.fees = fees,
|
.fees = fees,
|
||||||
.purse_timeout = purse_timeout,
|
.purse_timeout = purse_timeout,
|
||||||
.kyc_timeout = kyc_timeout,
|
|
||||||
.history_expiration = history_expiration,
|
.history_expiration = history_expiration,
|
||||||
.purse_account_limit = purse_account_limit,
|
.purse_account_limit = purse_account_limit,
|
||||||
.pg = pg
|
.pg = pg
|
||||||
|
@ -819,9 +819,6 @@ test_wire_fees (void)
|
|||||||
GNUNET_assert (GNUNET_OK ==
|
GNUNET_assert (GNUNET_OK ==
|
||||||
TALER_string_to_amount (CURRENCY ":2.424242",
|
TALER_string_to_amount (CURRENCY ":2.424242",
|
||||||
&fees.closing));
|
&fees.closing));
|
||||||
GNUNET_assert (GNUNET_OK ==
|
|
||||||
TALER_string_to_amount (CURRENCY ":3.424242",
|
|
||||||
&fees.wad));
|
|
||||||
GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK,
|
GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK,
|
||||||
&master_sig,
|
&master_sig,
|
||||||
sizeof (master_sig));
|
sizeof (master_sig));
|
||||||
|
@ -792,12 +792,6 @@ struct TALER_WireFeeSetNBOP
|
|||||||
*/
|
*/
|
||||||
struct TALER_AmountNBO closing;
|
struct TALER_AmountNBO closing;
|
||||||
|
|
||||||
/**
|
|
||||||
* The fee the exchange charges for cross-exchange
|
|
||||||
* P2P payments.
|
|
||||||
*/
|
|
||||||
struct TALER_AmountNBO wad;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -809,28 +803,20 @@ struct TALER_GlobalFeeSetNBOP
|
|||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The fee the exchange charges for returning the
|
* The fee the exchange charges for returning the history of a reserve or
|
||||||
* history of a reserve or account.
|
* account.
|
||||||
*/
|
*/
|
||||||
struct TALER_AmountNBO history;
|
struct TALER_AmountNBO history;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The fee the exchange charges for performing a
|
* The fee the exchange charges for keeping an account or reserve open for a
|
||||||
* KYC check on a reserve to turn it into an account
|
* year.
|
||||||
* that can be used for P2P payments.
|
|
||||||
*/
|
|
||||||
struct TALER_AmountNBO kyc;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The fee the exchange charges for keeping
|
|
||||||
* an account or reserve open for a year.
|
|
||||||
*/
|
*/
|
||||||
struct TALER_AmountNBO account;
|
struct TALER_AmountNBO account;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The fee the exchange charges if a purse
|
* The fee the exchange charges if a purse is abandoned and this was not
|
||||||
* is abandoned and this was not covered by
|
* covered by the account limit.
|
||||||
* the account limit.
|
|
||||||
*/
|
*/
|
||||||
struct TALER_AmountNBO purse;
|
struct TALER_AmountNBO purse;
|
||||||
};
|
};
|
||||||
@ -874,15 +860,13 @@ struct TALER_DenomFeeSet
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set of the fees applying for a given
|
* Set of the fees applying for a given time-range and wire method.
|
||||||
* time-range and wire method.
|
|
||||||
*/
|
*/
|
||||||
struct TALER_WireFeeSet
|
struct TALER_WireFeeSet
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The fee the exchange charges for wiring funds
|
* The fee the exchange charges for wiring funds to a merchant.
|
||||||
* to a merchant.
|
|
||||||
*/
|
*/
|
||||||
struct TALER_Amount wire;
|
struct TALER_Amount wire;
|
||||||
|
|
||||||
@ -892,12 +876,6 @@ struct TALER_WireFeeSet
|
|||||||
*/
|
*/
|
||||||
struct TALER_Amount closing;
|
struct TALER_Amount closing;
|
||||||
|
|
||||||
/**
|
|
||||||
* The fee the exchange charges for cross-exchange
|
|
||||||
* P2P payments.
|
|
||||||
*/
|
|
||||||
struct TALER_Amount wad;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -914,13 +892,6 @@ struct TALER_GlobalFeeSet
|
|||||||
*/
|
*/
|
||||||
struct TALER_Amount history;
|
struct TALER_Amount history;
|
||||||
|
|
||||||
/**
|
|
||||||
* The fee the exchange charges for performing a
|
|
||||||
* KYC check on a reserve to turn it into an account
|
|
||||||
* that can be used for P2P payments.
|
|
||||||
*/
|
|
||||||
struct TALER_Amount kyc;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The fee the exchange charges for keeping
|
* The fee the exchange charges for keeping
|
||||||
* an account or reserve open for a year.
|
* an account or reserve open for a year.
|
||||||
@ -5052,7 +5023,6 @@ TALER_exchange_offline_wire_fee_verify (
|
|||||||
* @param end_time when do the fees start to apply
|
* @param end_time when do the fees start to apply
|
||||||
* @param fees the global fees
|
* @param fees the global fees
|
||||||
* @param purse_timeout how long do unmerged purses stay around
|
* @param purse_timeout how long do unmerged purses stay around
|
||||||
* @param kyc_timeout how long do we keep funds in a reserve without KYC?
|
|
||||||
* @param history_expiration how long do we keep the history of an account
|
* @param history_expiration how long do we keep the history of an account
|
||||||
* @param purse_account_limit how many concurrent purses are free per account holder
|
* @param purse_account_limit how many concurrent purses are free per account holder
|
||||||
* @param master_priv private key to sign with
|
* @param master_priv private key to sign with
|
||||||
@ -5064,7 +5034,6 @@ TALER_exchange_offline_global_fee_sign (
|
|||||||
struct GNUNET_TIME_Timestamp end_time,
|
struct GNUNET_TIME_Timestamp end_time,
|
||||||
const struct TALER_GlobalFeeSet *fees,
|
const struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
uint32_t purse_account_limit,
|
uint32_t purse_account_limit,
|
||||||
const struct TALER_MasterPrivateKeyP *master_priv,
|
const struct TALER_MasterPrivateKeyP *master_priv,
|
||||||
@ -5078,7 +5047,6 @@ TALER_exchange_offline_global_fee_sign (
|
|||||||
* @param end_time when do the fees start to apply
|
* @param end_time when do the fees start to apply
|
||||||
* @param fees the global fees
|
* @param fees the global fees
|
||||||
* @param purse_timeout how long do unmerged purses stay around
|
* @param purse_timeout how long do unmerged purses stay around
|
||||||
* @param kyc_timeout how long do we keep funds in a reserve without KYC?
|
|
||||||
* @param history_expiration how long do we keep the history of an account
|
* @param history_expiration how long do we keep the history of an account
|
||||||
* @param purse_account_limit how many concurrent purses are free per account holder
|
* @param purse_account_limit how many concurrent purses are free per account holder
|
||||||
* @param master_pub public key to verify against
|
* @param master_pub public key to verify against
|
||||||
@ -5091,7 +5059,6 @@ TALER_exchange_offline_global_fee_verify (
|
|||||||
struct GNUNET_TIME_Timestamp end_time,
|
struct GNUNET_TIME_Timestamp end_time,
|
||||||
const struct TALER_GlobalFeeSet *fees,
|
const struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
uint32_t purse_account_limit,
|
uint32_t purse_account_limit,
|
||||||
const struct TALER_MasterPublicKeyP *master_pub,
|
const struct TALER_MasterPublicKeyP *master_pub,
|
||||||
|
@ -230,11 +230,6 @@ struct TALER_EXCHANGE_GlobalFee
|
|||||||
*/
|
*/
|
||||||
struct GNUNET_TIME_Relative purse_timeout;
|
struct GNUNET_TIME_Relative purse_timeout;
|
||||||
|
|
||||||
/**
|
|
||||||
* Accounts without KYC will be closed after this time.
|
|
||||||
*/
|
|
||||||
struct GNUNET_TIME_Relative kyc_timeout;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Account history is limited to this timeframe.
|
* Account history is limited to this timeframe.
|
||||||
*/
|
*/
|
||||||
@ -4530,7 +4525,6 @@ struct TALER_EXCHANGE_ManagementSetGlobalFeeHandle;
|
|||||||
* @param validity_end end date for the provided wire fees
|
* @param validity_end end date for the provided wire fees
|
||||||
* @param fees the wire fees for this time period
|
* @param fees the wire fees for this time period
|
||||||
* @param purse_timeout when do purses time out
|
* @param purse_timeout when do purses time out
|
||||||
* @param kyc_timeout when do reserves without KYC time out
|
|
||||||
* @param history_expiration how long are account histories preserved
|
* @param history_expiration how long are account histories preserved
|
||||||
* @param purse_account_limit how many purses are free per account
|
* @param purse_account_limit how many purses are free per account
|
||||||
* @param master_sig signature affirming the wire fees;
|
* @param master_sig signature affirming the wire fees;
|
||||||
@ -4547,7 +4541,6 @@ TALER_EXCHANGE_management_set_global_fees (
|
|||||||
struct GNUNET_TIME_Timestamp validity_end,
|
struct GNUNET_TIME_Timestamp validity_end,
|
||||||
const struct TALER_GlobalFeeSet *fees,
|
const struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
uint32_t purse_account_limit,
|
uint32_t purse_account_limit,
|
||||||
const struct TALER_MasterSignatureP *master_sig,
|
const struct TALER_MasterSignatureP *master_sig,
|
||||||
|
@ -481,7 +481,6 @@ struct TALER_EXCHANGEDB_TableData
|
|||||||
struct GNUNET_TIME_Timestamp end_date;
|
struct GNUNET_TIME_Timestamp end_date;
|
||||||
struct TALER_GlobalFeeSet fees;
|
struct TALER_GlobalFeeSet fees;
|
||||||
struct GNUNET_TIME_Relative purse_timeout;
|
struct GNUNET_TIME_Relative purse_timeout;
|
||||||
struct GNUNET_TIME_Relative kyc_timeout;
|
|
||||||
struct GNUNET_TIME_Relative history_expiration;
|
struct GNUNET_TIME_Relative history_expiration;
|
||||||
uint32_t purse_account_limit;
|
uint32_t purse_account_limit;
|
||||||
struct TALER_MasterSignatureP master_sig;
|
struct TALER_MasterSignatureP master_sig;
|
||||||
@ -2662,7 +2661,6 @@ typedef void
|
|||||||
* @param cls closure
|
* @param cls closure
|
||||||
* @param fees the global fees we charge
|
* @param fees the global fees we charge
|
||||||
* @param purse_timeout when do purses time out
|
* @param purse_timeout when do purses time out
|
||||||
* @param kyc_timeout when do reserves without KYC time out
|
|
||||||
* @param history_expiration how long are account histories preserved
|
* @param history_expiration how long are account histories preserved
|
||||||
* @param purse_account_limit how many purses are free per account
|
* @param purse_account_limit how many purses are free per account
|
||||||
* @param start_date from when are these fees valid (start date)
|
* @param start_date from when are these fees valid (start date)
|
||||||
@ -2675,7 +2673,6 @@ typedef void
|
|||||||
void *cls,
|
void *cls,
|
||||||
const struct TALER_GlobalFeeSet *fees,
|
const struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
uint32_t purse_account_limit,
|
uint32_t purse_account_limit,
|
||||||
struct GNUNET_TIME_Timestamp start_date,
|
struct GNUNET_TIME_Timestamp start_date,
|
||||||
@ -4264,7 +4261,6 @@ struct TALER_EXCHANGEDB_Plugin
|
|||||||
* @param end_date when does the fees end being valid
|
* @param end_date when does the fees end being valid
|
||||||
* @param fees how high is are the global fees
|
* @param fees how high is are the global fees
|
||||||
* @param purse_timeout when do purses time out
|
* @param purse_timeout when do purses time out
|
||||||
* @param kyc_timeout when do reserves without KYC time out
|
|
||||||
* @param history_expiration how long are account histories preserved
|
* @param history_expiration how long are account histories preserved
|
||||||
* @param purse_account_limit how many purses are free per account
|
* @param purse_account_limit how many purses are free per account
|
||||||
* @param master_sig signature over the above by the exchange master key
|
* @param master_sig signature over the above by the exchange master key
|
||||||
@ -4276,7 +4272,6 @@ struct TALER_EXCHANGEDB_Plugin
|
|||||||
struct GNUNET_TIME_Timestamp end_date,
|
struct GNUNET_TIME_Timestamp end_date,
|
||||||
const struct TALER_GlobalFeeSet *fees,
|
const struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
uint32_t purse_account_limit,
|
uint32_t purse_account_limit,
|
||||||
|
|
||||||
@ -4314,7 +4309,6 @@ struct TALER_EXCHANGEDB_Plugin
|
|||||||
* @param[out] end_date when does the fee end being valid
|
* @param[out] end_date when does the fee end being valid
|
||||||
* @param[out] fees how high are the global fees
|
* @param[out] fees how high are the global fees
|
||||||
* @param[out] purse_timeout when do purses time out
|
* @param[out] purse_timeout when do purses time out
|
||||||
* @param[out] kyc_timeout when do reserves without KYC time out
|
|
||||||
* @param[out] history_expiration how long are account histories preserved
|
* @param[out] history_expiration how long are account histories preserved
|
||||||
* @param[out] purse_account_limit how many purses are free per account
|
* @param[out] purse_account_limit how many purses are free per account
|
||||||
* @param[out] master_sig signature over the above by the exchange master key
|
* @param[out] master_sig signature over the above by the exchange master key
|
||||||
@ -4327,7 +4321,6 @@ struct TALER_EXCHANGEDB_Plugin
|
|||||||
struct GNUNET_TIME_Timestamp *end_date,
|
struct GNUNET_TIME_Timestamp *end_date,
|
||||||
struct TALER_GlobalFeeSet *fees,
|
struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative *purse_timeout,
|
struct GNUNET_TIME_Relative *purse_timeout,
|
||||||
struct GNUNET_TIME_Relative *kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative *history_expiration,
|
struct GNUNET_TIME_Relative *history_expiration,
|
||||||
uint32_t *purse_account_limit,
|
uint32_t *purse_account_limit,
|
||||||
struct TALER_MasterSignatureP *master_sig);
|
struct TALER_MasterSignatureP *master_sig);
|
||||||
@ -5398,7 +5391,6 @@ struct TALER_EXCHANGEDB_Plugin
|
|||||||
* different global fee exists within this time
|
* different global fee exists within this time
|
||||||
* period, an 'invalid' amount is returned.
|
* period, an 'invalid' amount is returned.
|
||||||
* @param[out] purse_timeout set to when unmerged purses expire
|
* @param[out] purse_timeout set to when unmerged purses expire
|
||||||
* @param[out] kyc_timeout set to when reserves without kyc expire
|
|
||||||
* @param[out] history_expiration set to when we expire reserve histories
|
* @param[out] history_expiration set to when we expire reserve histories
|
||||||
* @param[out] purse_account_limit set to number of free purses
|
* @param[out] purse_account_limit set to number of free purses
|
||||||
* @return transaction status code
|
* @return transaction status code
|
||||||
@ -5410,7 +5402,6 @@ struct TALER_EXCHANGEDB_Plugin
|
|||||||
struct GNUNET_TIME_Timestamp end_time,
|
struct GNUNET_TIME_Timestamp end_time,
|
||||||
struct TALER_GlobalFeeSet *fees,
|
struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative *purse_timeout,
|
struct GNUNET_TIME_Relative *purse_timeout,
|
||||||
struct GNUNET_TIME_Relative *kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative *history_expiration,
|
struct GNUNET_TIME_Relative *history_expiration,
|
||||||
uint32_t *purse_account_limit);
|
uint32_t *purse_account_limit);
|
||||||
|
|
||||||
|
@ -366,7 +366,6 @@ TALER_JSON_spec_amount_any_nbo (const char *name,
|
|||||||
* @param[out] gfs a `struct TALER_GlobalFeeSet` to initialize
|
* @param[out] gfs a `struct TALER_GlobalFeeSet` to initialize
|
||||||
*/
|
*/
|
||||||
#define TALER_JSON_SPEC_GLOBAL_FEES(currency,gfs) \
|
#define TALER_JSON_SPEC_GLOBAL_FEES(currency,gfs) \
|
||||||
TALER_JSON_spec_amount ("kyc_fee", (currency), &(gfs)->kyc), \
|
|
||||||
TALER_JSON_spec_amount ("history_fee", (currency), &(gfs)->history), \
|
TALER_JSON_spec_amount ("history_fee", (currency), &(gfs)->history), \
|
||||||
TALER_JSON_spec_amount ("account_fee", (currency), &(gfs)->account), \
|
TALER_JSON_spec_amount ("account_fee", (currency), &(gfs)->account), \
|
||||||
TALER_JSON_spec_amount ("purse_fee", (currency), &(gfs)->purse)
|
TALER_JSON_spec_amount ("purse_fee", (currency), &(gfs)->purse)
|
||||||
@ -377,7 +376,6 @@ TALER_JSON_spec_amount_any_nbo (const char *name,
|
|||||||
* @param gfs a `struct TALER_GlobalFeeSet` to pack
|
* @param gfs a `struct TALER_GlobalFeeSet` to pack
|
||||||
*/
|
*/
|
||||||
#define TALER_JSON_PACK_GLOBAL_FEES(gfs) \
|
#define TALER_JSON_PACK_GLOBAL_FEES(gfs) \
|
||||||
TALER_JSON_pack_amount ("kyc_fee", &(gfs)->kyc), \
|
|
||||||
TALER_JSON_pack_amount ("history_fee", &(gfs)->history), \
|
TALER_JSON_pack_amount ("history_fee", &(gfs)->history), \
|
||||||
TALER_JSON_pack_amount ("account_fee", &(gfs)->account), \
|
TALER_JSON_pack_amount ("account_fee", &(gfs)->account), \
|
||||||
TALER_JSON_pack_amount ("purse_fee", &(gfs)->purse)
|
TALER_JSON_pack_amount ("purse_fee", &(gfs)->purse)
|
||||||
|
@ -2324,7 +2324,6 @@ TALER_TESTING_cmd_auditor_add_denom_sig (const char *label,
|
|||||||
* @param wire_method wire method to set wire fees for
|
* @param wire_method wire method to set wire fees for
|
||||||
* @param wire_fee the wire fee to affirm
|
* @param wire_fee the wire fee to affirm
|
||||||
* @param closing_fee the closing fee to affirm
|
* @param closing_fee the closing fee to affirm
|
||||||
* @param wad_fee wad fee to charge
|
|
||||||
* @param expected_http_status expected HTTP status from exchange
|
* @param expected_http_status expected HTTP status from exchange
|
||||||
* @param bad_sig should we use a bogus signature?
|
* @param bad_sig should we use a bogus signature?
|
||||||
* @return the command
|
* @return the command
|
||||||
@ -2334,7 +2333,6 @@ TALER_TESTING_cmd_set_wire_fee (const char *label,
|
|||||||
const char *wire_method,
|
const char *wire_method,
|
||||||
const char *wire_fee,
|
const char *wire_fee,
|
||||||
const char *closing_fee,
|
const char *closing_fee,
|
||||||
const char *wad_fee,
|
|
||||||
unsigned int expected_http_status,
|
unsigned int expected_http_status,
|
||||||
bool bad_sig);
|
bool bad_sig);
|
||||||
|
|
||||||
@ -2408,15 +2406,13 @@ TALER_TESTING_cmd_exec_offline_sign_keys (const char *label,
|
|||||||
* @param config_filename configuration filename.
|
* @param config_filename configuration filename.
|
||||||
* @param wire_fee the wire fee to affirm (for the current year)
|
* @param wire_fee the wire fee to affirm (for the current year)
|
||||||
* @param closing_fee the closing fee to affirm (for the current year)
|
* @param closing_fee the closing fee to affirm (for the current year)
|
||||||
* @param wad_fee the wad fee to affirm
|
|
||||||
* @return the command
|
* @return the command
|
||||||
*/
|
*/
|
||||||
struct TALER_TESTING_Command
|
struct TALER_TESTING_Command
|
||||||
TALER_TESTING_cmd_exec_offline_sign_fees (const char *label,
|
TALER_TESTING_cmd_exec_offline_sign_fees (const char *label,
|
||||||
const char *config_filename,
|
const char *config_filename,
|
||||||
const char *wire_fee,
|
const char *wire_fee,
|
||||||
const char *closing_fee,
|
const char *closing_fee);
|
||||||
const char *wad_fee);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2425,11 +2421,9 @@ TALER_TESTING_cmd_exec_offline_sign_fees (const char *label,
|
|||||||
* @param label command label.
|
* @param label command label.
|
||||||
* @param config_filename configuration filename.
|
* @param config_filename configuration filename.
|
||||||
* @param history_fee the history fee to charge (for the current year)
|
* @param history_fee the history fee to charge (for the current year)
|
||||||
* @param kyc_fee the KYC fee to charge (for the current year)
|
|
||||||
* @param account_fee the account fee to charge (for the current year)
|
* @param account_fee the account fee to charge (for the current year)
|
||||||
* @param purse_fee the purse fee to charge (for the current year)
|
* @param purse_fee the purse fee to charge (for the current year)
|
||||||
* @param purse_timeout when do purses time out
|
* @param purse_timeout when do purses time out
|
||||||
* @param kyc_timeout when does the KYC time out
|
|
||||||
* @param history_expiration when does an account history expire
|
* @param history_expiration when does an account history expire
|
||||||
* @param num_purses number of (free) active purses per account
|
* @param num_purses number of (free) active purses per account
|
||||||
* @return the command
|
* @return the command
|
||||||
@ -2439,11 +2433,9 @@ TALER_TESTING_cmd_exec_offline_sign_global_fees (
|
|||||||
const char *label,
|
const char *label,
|
||||||
const char *config_filename,
|
const char *config_filename,
|
||||||
const char *history_fee,
|
const char *history_fee,
|
||||||
const char *kyc_fee,
|
|
||||||
const char *account_fee,
|
const char *account_fee,
|
||||||
const char *purse_fee,
|
const char *purse_fee,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
unsigned int num_purses);
|
unsigned int num_purses);
|
||||||
|
|
||||||
|
@ -529,8 +529,6 @@ parse_global_fee (struct TALER_EXCHANGE_GlobalFee *gf,
|
|||||||
&gf->end_date),
|
&gf->end_date),
|
||||||
GNUNET_JSON_spec_relative_time ("purse_timeout",
|
GNUNET_JSON_spec_relative_time ("purse_timeout",
|
||||||
&gf->purse_timeout),
|
&gf->purse_timeout),
|
||||||
GNUNET_JSON_spec_relative_time ("account_kyc_timeout",
|
|
||||||
&gf->kyc_timeout),
|
|
||||||
GNUNET_JSON_spec_relative_time ("history_expiration",
|
GNUNET_JSON_spec_relative_time ("history_expiration",
|
||||||
&gf->history_expiration),
|
&gf->history_expiration),
|
||||||
GNUNET_JSON_spec_uint32 ("purse_account_limit",
|
GNUNET_JSON_spec_uint32 ("purse_account_limit",
|
||||||
@ -563,7 +561,6 @@ parse_global_fee (struct TALER_EXCHANGE_GlobalFee *gf,
|
|||||||
gf->end_date,
|
gf->end_date,
|
||||||
&gf->fees,
|
&gf->fees,
|
||||||
gf->purse_timeout,
|
gf->purse_timeout,
|
||||||
gf->kyc_timeout,
|
|
||||||
gf->history_expiration,
|
gf->history_expiration,
|
||||||
gf->purse_account_limit,
|
gf->purse_account_limit,
|
||||||
&key_data->master_pub,
|
&key_data->master_pub,
|
||||||
|
@ -130,7 +130,6 @@ TALER_EXCHANGE_management_set_global_fees (
|
|||||||
struct GNUNET_TIME_Timestamp validity_end,
|
struct GNUNET_TIME_Timestamp validity_end,
|
||||||
const struct TALER_GlobalFeeSet *fees,
|
const struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
uint32_t purse_account_limit,
|
uint32_t purse_account_limit,
|
||||||
const struct TALER_MasterSignatureP *master_sig,
|
const struct TALER_MasterSignatureP *master_sig,
|
||||||
@ -164,16 +163,12 @@ TALER_EXCHANGE_management_set_global_fees (
|
|||||||
validity_end),
|
validity_end),
|
||||||
TALER_JSON_pack_amount ("history_fee",
|
TALER_JSON_pack_amount ("history_fee",
|
||||||
&fees->history),
|
&fees->history),
|
||||||
TALER_JSON_pack_amount ("kyc_fee",
|
|
||||||
&fees->kyc),
|
|
||||||
TALER_JSON_pack_amount ("account_fee",
|
TALER_JSON_pack_amount ("account_fee",
|
||||||
&fees->account),
|
&fees->account),
|
||||||
TALER_JSON_pack_amount ("purse_fee",
|
TALER_JSON_pack_amount ("purse_fee",
|
||||||
&fees->purse),
|
&fees->purse),
|
||||||
GNUNET_JSON_pack_time_rel ("purse_timeout",
|
GNUNET_JSON_pack_time_rel ("purse_timeout",
|
||||||
purse_timeout),
|
purse_timeout),
|
||||||
GNUNET_JSON_pack_time_rel ("kyc_timeout",
|
|
||||||
kyc_timeout),
|
|
||||||
GNUNET_JSON_pack_time_rel ("history_expiration",
|
GNUNET_JSON_pack_time_rel ("history_expiration",
|
||||||
history_expiration),
|
history_expiration),
|
||||||
GNUNET_JSON_pack_uint64 ("purse_account_limit",
|
GNUNET_JSON_pack_uint64 ("purse_account_limit",
|
||||||
|
@ -163,8 +163,6 @@ TALER_EXCHANGE_management_set_wire_fees (
|
|||||||
validity_end),
|
validity_end),
|
||||||
TALER_JSON_pack_amount ("closing_fee",
|
TALER_JSON_pack_amount ("closing_fee",
|
||||||
&fees->closing),
|
&fees->closing),
|
||||||
TALER_JSON_pack_amount ("wad_fee",
|
|
||||||
&fees->wad),
|
|
||||||
TALER_JSON_pack_amount ("wire_fee",
|
TALER_JSON_pack_amount ("wire_fee",
|
||||||
&fees->wire));
|
&fees->wire));
|
||||||
eh = TALER_EXCHANGE_curl_easy_get_ (swfh->url);
|
eh = TALER_EXCHANGE_curl_easy_get_ (swfh->url);
|
||||||
|
@ -145,8 +145,6 @@ parse_fees (json_t *fees)
|
|||||||
&wa->master_sig),
|
&wa->master_sig),
|
||||||
TALER_JSON_spec_amount_any ("wire_fee",
|
TALER_JSON_spec_amount_any ("wire_fee",
|
||||||
&wa->fees.wire),
|
&wa->fees.wire),
|
||||||
TALER_JSON_spec_amount_any ("wad_fee",
|
|
||||||
&wa->fees.wad),
|
|
||||||
TALER_JSON_spec_amount_any ("closing_fee",
|
TALER_JSON_spec_amount_any ("closing_fee",
|
||||||
&wa->fees.closing),
|
&wa->fees.closing),
|
||||||
GNUNET_JSON_spec_timestamp ("start_date",
|
GNUNET_JSON_spec_timestamp ("start_date",
|
||||||
|
@ -651,7 +651,6 @@ run (void *cls,
|
|||||||
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
||||||
config_file,
|
config_file,
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
|
||||||
"EUR:0.01"),
|
"EUR:0.01"),
|
||||||
TALER_TESTING_cmd_auditor_add ("add-auditor-OK",
|
TALER_TESTING_cmd_auditor_add ("add-auditor-OK",
|
||||||
MHD_HTTP_NO_CONTENT,
|
MHD_HTTP_NO_CONTENT,
|
||||||
|
@ -1248,8 +1248,6 @@ run (void *cls,
|
|||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
|
||||||
GNUNET_TIME_UNIT_MINUTES,
|
|
||||||
GNUNET_TIME_UNIT_MINUTES,
|
GNUNET_TIME_UNIT_MINUTES,
|
||||||
GNUNET_TIME_UNIT_DAYS,
|
GNUNET_TIME_UNIT_DAYS,
|
||||||
1),
|
1),
|
||||||
@ -1258,7 +1256,6 @@ run (void *cls,
|
|||||||
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
||||||
config_file,
|
config_file,
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
|
||||||
"EUR:0.01"),
|
"EUR:0.01"),
|
||||||
TALER_TESTING_cmd_check_keys_pull_all_keys ("refetch /keys",
|
TALER_TESTING_cmd_check_keys_pull_all_keys ("refetch /keys",
|
||||||
1),
|
1),
|
||||||
|
@ -69,7 +69,6 @@ run (void *cls,
|
|||||||
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
||||||
config_file,
|
config_file,
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
|
||||||
"EUR:0.01"),
|
"EUR:0.01"),
|
||||||
TALER_TESTING_cmd_exec_offline_sign_keys ("offline-sign-future-keys",
|
TALER_TESTING_cmd_exec_offline_sign_keys ("offline-sign-future-keys",
|
||||||
config_file),
|
config_file),
|
||||||
|
@ -85,35 +85,30 @@ run (void *cls,
|
|||||||
"foo-method",
|
"foo-method",
|
||||||
"EUR:1",
|
"EUR:1",
|
||||||
"EUR:5",
|
"EUR:5",
|
||||||
"EUR:3",
|
|
||||||
MHD_HTTP_NO_CONTENT,
|
MHD_HTTP_NO_CONTENT,
|
||||||
false),
|
false),
|
||||||
TALER_TESTING_cmd_set_wire_fee ("set-fee-conflicting",
|
TALER_TESTING_cmd_set_wire_fee ("set-fee-conflicting",
|
||||||
"foo-method",
|
"foo-method",
|
||||||
"EUR:1",
|
"EUR:1",
|
||||||
"EUR:1",
|
"EUR:1",
|
||||||
"EUR:3",
|
|
||||||
MHD_HTTP_CONFLICT,
|
MHD_HTTP_CONFLICT,
|
||||||
false),
|
false),
|
||||||
TALER_TESTING_cmd_set_wire_fee ("set-fee-bad-signature",
|
TALER_TESTING_cmd_set_wire_fee ("set-fee-bad-signature",
|
||||||
"bar-method",
|
"bar-method",
|
||||||
"EUR:1",
|
"EUR:1",
|
||||||
"EUR:1",
|
"EUR:1",
|
||||||
"EUR:3",
|
|
||||||
MHD_HTTP_FORBIDDEN,
|
MHD_HTTP_FORBIDDEN,
|
||||||
true),
|
true),
|
||||||
TALER_TESTING_cmd_set_wire_fee ("set-fee-other-method",
|
TALER_TESTING_cmd_set_wire_fee ("set-fee-other-method",
|
||||||
"bar-method",
|
"bar-method",
|
||||||
"EUR:1",
|
"EUR:1",
|
||||||
"EUR:1",
|
"EUR:1",
|
||||||
"EUR:3",
|
|
||||||
MHD_HTTP_NO_CONTENT,
|
MHD_HTTP_NO_CONTENT,
|
||||||
false),
|
false),
|
||||||
TALER_TESTING_cmd_set_wire_fee ("set-fee-idempotent",
|
TALER_TESTING_cmd_set_wire_fee ("set-fee-idempotent",
|
||||||
"bar-method",
|
"bar-method",
|
||||||
"EUR:1",
|
"EUR:1",
|
||||||
"EUR:1",
|
"EUR:1",
|
||||||
"EUR:3",
|
|
||||||
MHD_HTTP_NO_CONTENT,
|
MHD_HTTP_NO_CONTENT,
|
||||||
false),
|
false),
|
||||||
TALER_TESTING_cmd_wire_add ("add-wire-account",
|
TALER_TESTING_cmd_wire_add ("add-wire-account",
|
||||||
|
@ -474,15 +474,12 @@ run (void *cls,
|
|||||||
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-wire-fees",
|
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-wire-fees",
|
||||||
config_file,
|
config_file,
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
|
||||||
"EUR:0.01"),
|
"EUR:0.01"),
|
||||||
TALER_TESTING_cmd_exec_offline_sign_global_fees ("offline-sign-global-fees",
|
TALER_TESTING_cmd_exec_offline_sign_global_fees ("offline-sign-global-fees",
|
||||||
config_file,
|
config_file,
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
|
||||||
GNUNET_TIME_UNIT_MINUTES,
|
|
||||||
GNUNET_TIME_UNIT_MINUTES,
|
GNUNET_TIME_UNIT_MINUTES,
|
||||||
GNUNET_TIME_UNIT_DAYS,
|
GNUNET_TIME_UNIT_DAYS,
|
||||||
1),
|
1),
|
||||||
|
@ -407,15 +407,12 @@ run (void *cls,
|
|||||||
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
||||||
CONFIG_FILE,
|
CONFIG_FILE,
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
|
||||||
"EUR:0.01"),
|
"EUR:0.01"),
|
||||||
TALER_TESTING_cmd_exec_offline_sign_global_fees ("offline-sign-global-fees",
|
TALER_TESTING_cmd_exec_offline_sign_global_fees ("offline-sign-global-fees",
|
||||||
CONFIG_FILE,
|
CONFIG_FILE,
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
|
||||||
GNUNET_TIME_UNIT_MINUTES,
|
|
||||||
GNUNET_TIME_UNIT_MINUTES,
|
GNUNET_TIME_UNIT_MINUTES,
|
||||||
GNUNET_TIME_UNIT_DAYS,
|
GNUNET_TIME_UNIT_DAYS,
|
||||||
1),
|
1),
|
||||||
|
@ -99,7 +99,6 @@ run (void *cls,
|
|||||||
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
||||||
config_filename,
|
config_filename,
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
|
||||||
"EUR:0.01"),
|
"EUR:0.01"),
|
||||||
// check no aggregation happens on a empty database
|
// check no aggregation happens on a empty database
|
||||||
CMD_EXEC_AGGREGATOR ("run-aggregator-on-empty-db",
|
CMD_EXEC_AGGREGATOR ("run-aggregator-on-empty-db",
|
||||||
|
@ -85,7 +85,6 @@ run (void *cls,
|
|||||||
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
TALER_TESTING_cmd_exec_offline_sign_fees ("offline-sign-fees",
|
||||||
config_filename,
|
config_filename,
|
||||||
"EUR:0.01",
|
"EUR:0.01",
|
||||||
"EUR:0.01",
|
|
||||||
"EUR:0.01"),
|
"EUR:0.01"),
|
||||||
TALER_TESTING_cmd_auditor_add ("add-auditor-OK",
|
TALER_TESTING_cmd_auditor_add ("add-auditor-OK",
|
||||||
MHD_HTTP_NO_CONTENT,
|
MHD_HTTP_NO_CONTENT,
|
||||||
|
@ -51,11 +51,6 @@ struct OfflineSignState
|
|||||||
*/
|
*/
|
||||||
const char *history_fee_s;
|
const char *history_fee_s;
|
||||||
|
|
||||||
/**
|
|
||||||
* The KYC fee to sign.
|
|
||||||
*/
|
|
||||||
const char *kyc_fee_s;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The account fee to sign.
|
* The account fee to sign.
|
||||||
*/
|
*/
|
||||||
@ -71,11 +66,6 @@ struct OfflineSignState
|
|||||||
*/
|
*/
|
||||||
struct GNUNET_TIME_Relative purse_timeout;
|
struct GNUNET_TIME_Relative purse_timeout;
|
||||||
|
|
||||||
/**
|
|
||||||
* How long does a user have to complete the KYC?
|
|
||||||
*/
|
|
||||||
struct GNUNET_TIME_Relative kyc_timeout;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* How long do we keep the history?
|
* How long do we keep the history?
|
||||||
*/
|
*/
|
||||||
@ -104,7 +94,6 @@ offlinesign_run (void *cls,
|
|||||||
char num_purses[12];
|
char num_purses[12];
|
||||||
char history_expiration[32];
|
char history_expiration[32];
|
||||||
char purse_timeout[32];
|
char purse_timeout[32];
|
||||||
char kyc_timeout[32];
|
|
||||||
|
|
||||||
GNUNET_snprintf (num_purses,
|
GNUNET_snprintf (num_purses,
|
||||||
sizeof (num_purses),
|
sizeof (num_purses),
|
||||||
@ -120,11 +109,6 @@ offlinesign_run (void *cls,
|
|||||||
"%s",
|
"%s",
|
||||||
GNUNET_TIME_relative2s (ks->purse_timeout,
|
GNUNET_TIME_relative2s (ks->purse_timeout,
|
||||||
false));
|
false));
|
||||||
GNUNET_snprintf (kyc_timeout,
|
|
||||||
sizeof (kyc_timeout),
|
|
||||||
"%s",
|
|
||||||
GNUNET_TIME_relative2s (ks->kyc_timeout,
|
|
||||||
false));
|
|
||||||
ks->offlinesign_proc
|
ks->offlinesign_proc
|
||||||
= GNUNET_OS_start_process (
|
= GNUNET_OS_start_process (
|
||||||
GNUNET_OS_INHERIT_STD_ALL,
|
GNUNET_OS_INHERIT_STD_ALL,
|
||||||
@ -136,11 +120,9 @@ offlinesign_run (void *cls,
|
|||||||
"global-fee",
|
"global-fee",
|
||||||
"now",
|
"now",
|
||||||
ks->history_fee_s,
|
ks->history_fee_s,
|
||||||
ks->kyc_fee_s,
|
|
||||||
ks->account_fee_s,
|
ks->account_fee_s,
|
||||||
ks->purse_fee_s,
|
ks->purse_fee_s,
|
||||||
purse_timeout,
|
purse_timeout,
|
||||||
kyc_timeout,
|
|
||||||
history_expiration,
|
history_expiration,
|
||||||
num_purses,
|
num_purses,
|
||||||
"upload",
|
"upload",
|
||||||
@ -215,11 +197,9 @@ TALER_TESTING_cmd_exec_offline_sign_global_fees (
|
|||||||
const char *label,
|
const char *label,
|
||||||
const char *config_filename,
|
const char *config_filename,
|
||||||
const char *history_fee,
|
const char *history_fee,
|
||||||
const char *kyc_fee,
|
|
||||||
const char *account_fee,
|
const char *account_fee,
|
||||||
const char *purse_fee,
|
const char *purse_fee,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
unsigned int num_purses)
|
unsigned int num_purses)
|
||||||
{
|
{
|
||||||
@ -228,11 +208,9 @@ TALER_TESTING_cmd_exec_offline_sign_global_fees (
|
|||||||
ks = GNUNET_new (struct OfflineSignState);
|
ks = GNUNET_new (struct OfflineSignState);
|
||||||
ks->config_filename = config_filename;
|
ks->config_filename = config_filename;
|
||||||
ks->history_fee_s = history_fee;
|
ks->history_fee_s = history_fee;
|
||||||
ks->kyc_fee_s = kyc_fee;
|
|
||||||
ks->account_fee_s = account_fee;
|
ks->account_fee_s = account_fee;
|
||||||
ks->purse_fee_s = purse_fee;
|
ks->purse_fee_s = purse_fee;
|
||||||
ks->purse_timeout = purse_timeout;
|
ks->purse_timeout = purse_timeout;
|
||||||
ks->kyc_timeout = kyc_timeout;
|
|
||||||
ks->history_expiration = history_expiration;
|
ks->history_expiration = history_expiration;
|
||||||
ks->num_purses = num_purses;
|
ks->num_purses = num_purses;
|
||||||
{
|
{
|
||||||
|
@ -51,11 +51,6 @@ struct OfflineSignState
|
|||||||
*/
|
*/
|
||||||
const char *wire_fee_s;
|
const char *wire_fee_s;
|
||||||
|
|
||||||
/**
|
|
||||||
* The wad fee to sign.
|
|
||||||
*/
|
|
||||||
const char *wad_fee_s;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The closing fee to sign.
|
* The closing fee to sign.
|
||||||
*/
|
*/
|
||||||
@ -91,7 +86,6 @@ offlinesign_run (void *cls,
|
|||||||
"x-taler-bank",
|
"x-taler-bank",
|
||||||
ks->wire_fee_s,
|
ks->wire_fee_s,
|
||||||
ks->closing_fee_s,
|
ks->closing_fee_s,
|
||||||
ks->wad_fee_s,
|
|
||||||
"upload",
|
"upload",
|
||||||
NULL);
|
NULL);
|
||||||
if (NULL == ks->offlinesign_proc)
|
if (NULL == ks->offlinesign_proc)
|
||||||
@ -163,15 +157,13 @@ struct TALER_TESTING_Command
|
|||||||
TALER_TESTING_cmd_exec_offline_sign_fees (const char *label,
|
TALER_TESTING_cmd_exec_offline_sign_fees (const char *label,
|
||||||
const char *config_filename,
|
const char *config_filename,
|
||||||
const char *wire_fee,
|
const char *wire_fee,
|
||||||
const char *closing_fee,
|
const char *closing_fee)
|
||||||
const char *wad_fee)
|
|
||||||
{
|
{
|
||||||
struct OfflineSignState *ks;
|
struct OfflineSignState *ks;
|
||||||
|
|
||||||
ks = GNUNET_new (struct OfflineSignState);
|
ks = GNUNET_new (struct OfflineSignState);
|
||||||
ks->config_filename = config_filename;
|
ks->config_filename = config_filename;
|
||||||
ks->wire_fee_s = wire_fee;
|
ks->wire_fee_s = wire_fee;
|
||||||
ks->wad_fee_s = wad_fee;
|
|
||||||
ks->closing_fee_s = closing_fee;
|
ks->closing_fee_s = closing_fee;
|
||||||
{
|
{
|
||||||
struct TALER_TESTING_Command cmd = {
|
struct TALER_TESTING_Command cmd = {
|
||||||
|
@ -60,11 +60,6 @@ struct WireFeeState
|
|||||||
*/
|
*/
|
||||||
const char *closing_fee;
|
const char *closing_fee;
|
||||||
|
|
||||||
/**
|
|
||||||
* Wad fee amount to use.
|
|
||||||
*/
|
|
||||||
const char *wad_fee;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expected HTTP response code.
|
* Expected HTTP response code.
|
||||||
*/
|
*/
|
||||||
@ -140,9 +135,6 @@ wire_add_run (void *cls,
|
|||||||
if ( (GNUNET_OK !=
|
if ( (GNUNET_OK !=
|
||||||
TALER_string_to_amount (ds->closing_fee,
|
TALER_string_to_amount (ds->closing_fee,
|
||||||
&fees.closing)) ||
|
&fees.closing)) ||
|
||||||
(GNUNET_OK !=
|
|
||||||
TALER_string_to_amount (ds->wad_fee,
|
|
||||||
&fees.wad)) ||
|
|
||||||
(GNUNET_OK !=
|
(GNUNET_OK !=
|
||||||
TALER_string_to_amount (ds->wire_fee,
|
TALER_string_to_amount (ds->wire_fee,
|
||||||
&fees.wire)) )
|
&fees.wire)) )
|
||||||
@ -217,7 +209,6 @@ TALER_TESTING_cmd_set_wire_fee (const char *label,
|
|||||||
const char *wire_method,
|
const char *wire_method,
|
||||||
const char *wire_fee,
|
const char *wire_fee,
|
||||||
const char *closing_fee,
|
const char *closing_fee,
|
||||||
const char *wad_fee,
|
|
||||||
unsigned int expected_http_status,
|
unsigned int expected_http_status,
|
||||||
bool bad_sig)
|
bool bad_sig)
|
||||||
{
|
{
|
||||||
@ -229,7 +220,6 @@ TALER_TESTING_cmd_set_wire_fee (const char *label,
|
|||||||
ds->wire_method = wire_method;
|
ds->wire_method = wire_method;
|
||||||
ds->wire_fee = wire_fee;
|
ds->wire_fee = wire_fee;
|
||||||
ds->closing_fee = closing_fee;
|
ds->closing_fee = closing_fee;
|
||||||
ds->wad_fee = wad_fee;
|
|
||||||
{
|
{
|
||||||
struct TALER_TESTING_Command cmd = {
|
struct TALER_TESTING_Command cmd = {
|
||||||
.cls = ds,
|
.cls = ds,
|
||||||
|
@ -839,15 +839,6 @@ struct TALER_MasterGlobalFeePS
|
|||||||
*/
|
*/
|
||||||
struct GNUNET_TIME_RelativeNBO purse_timeout;
|
struct GNUNET_TIME_RelativeNBO purse_timeout;
|
||||||
|
|
||||||
/**
|
|
||||||
* How long does the exchange promise to keep funds
|
|
||||||
* an account for which the KYC has never happened
|
|
||||||
* after a purse was merged into an account? Basically,
|
|
||||||
* after this time funds in an account without KYC are
|
|
||||||
* forfeit.
|
|
||||||
*/
|
|
||||||
struct GNUNET_TIME_RelativeNBO kyc_timeout;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* How long will the exchange preserve the account history? After an
|
* How long will the exchange preserve the account history? After an
|
||||||
* account was deleted/closed, the exchange will retain the account history
|
* account was deleted/closed, the exchange will retain the account history
|
||||||
@ -878,7 +869,6 @@ TALER_exchange_offline_global_fee_sign (
|
|||||||
struct GNUNET_TIME_Timestamp end_time,
|
struct GNUNET_TIME_Timestamp end_time,
|
||||||
const struct TALER_GlobalFeeSet *fees,
|
const struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
uint32_t purse_account_limit,
|
uint32_t purse_account_limit,
|
||||||
const struct TALER_MasterPrivateKeyP *master_priv,
|
const struct TALER_MasterPrivateKeyP *master_priv,
|
||||||
@ -890,7 +880,6 @@ TALER_exchange_offline_global_fee_sign (
|
|||||||
.start_date = GNUNET_TIME_timestamp_hton (start_time),
|
.start_date = GNUNET_TIME_timestamp_hton (start_time),
|
||||||
.end_date = GNUNET_TIME_timestamp_hton (end_time),
|
.end_date = GNUNET_TIME_timestamp_hton (end_time),
|
||||||
.purse_timeout = GNUNET_TIME_relative_hton (purse_timeout),
|
.purse_timeout = GNUNET_TIME_relative_hton (purse_timeout),
|
||||||
.kyc_timeout = GNUNET_TIME_relative_hton (kyc_timeout),
|
|
||||||
.history_expiration = GNUNET_TIME_relative_hton (history_expiration),
|
.history_expiration = GNUNET_TIME_relative_hton (history_expiration),
|
||||||
.purse_account_limit = htonl (purse_account_limit)
|
.purse_account_limit = htonl (purse_account_limit)
|
||||||
};
|
};
|
||||||
@ -909,7 +898,6 @@ TALER_exchange_offline_global_fee_verify (
|
|||||||
struct GNUNET_TIME_Timestamp end_time,
|
struct GNUNET_TIME_Timestamp end_time,
|
||||||
const struct TALER_GlobalFeeSet *fees,
|
const struct TALER_GlobalFeeSet *fees,
|
||||||
struct GNUNET_TIME_Relative purse_timeout,
|
struct GNUNET_TIME_Relative purse_timeout,
|
||||||
struct GNUNET_TIME_Relative kyc_timeout,
|
|
||||||
struct GNUNET_TIME_Relative history_expiration,
|
struct GNUNET_TIME_Relative history_expiration,
|
||||||
uint32_t purse_account_limit,
|
uint32_t purse_account_limit,
|
||||||
const struct TALER_MasterPublicKeyP *master_pub,
|
const struct TALER_MasterPublicKeyP *master_pub,
|
||||||
@ -921,7 +909,6 @@ TALER_exchange_offline_global_fee_verify (
|
|||||||
.start_date = GNUNET_TIME_timestamp_hton (start_time),
|
.start_date = GNUNET_TIME_timestamp_hton (start_time),
|
||||||
.end_date = GNUNET_TIME_timestamp_hton (end_time),
|
.end_date = GNUNET_TIME_timestamp_hton (end_time),
|
||||||
.purse_timeout = GNUNET_TIME_relative_hton (purse_timeout),
|
.purse_timeout = GNUNET_TIME_relative_hton (purse_timeout),
|
||||||
.kyc_timeout = GNUNET_TIME_relative_hton (kyc_timeout),
|
|
||||||
.history_expiration = GNUNET_TIME_relative_hton (history_expiration),
|
.history_expiration = GNUNET_TIME_relative_hton (history_expiration),
|
||||||
.purse_account_limit = htonl (purse_account_limit)
|
.purse_account_limit = htonl (purse_account_limit)
|
||||||
};
|
};
|
||||||
|
@ -82,8 +82,6 @@ TALER_global_fee_set_hton (struct TALER_GlobalFeeSetNBOP *nbo,
|
|||||||
{
|
{
|
||||||
TALER_amount_hton (&nbo->history,
|
TALER_amount_hton (&nbo->history,
|
||||||
&fees->history);
|
&fees->history);
|
||||||
TALER_amount_hton (&nbo->kyc,
|
|
||||||
&fees->kyc);
|
|
||||||
TALER_amount_hton (&nbo->account,
|
TALER_amount_hton (&nbo->account,
|
||||||
&fees->account);
|
&fees->account);
|
||||||
TALER_amount_hton (&nbo->purse,
|
TALER_amount_hton (&nbo->purse,
|
||||||
@ -97,8 +95,6 @@ TALER_global_fee_set_ntoh (struct TALER_GlobalFeeSet *fees,
|
|||||||
{
|
{
|
||||||
TALER_amount_ntoh (&fees->history,
|
TALER_amount_ntoh (&fees->history,
|
||||||
&nbo->history);
|
&nbo->history);
|
||||||
TALER_amount_ntoh (&fees->kyc,
|
|
||||||
&nbo->kyc);
|
|
||||||
TALER_amount_ntoh (&fees->account,
|
TALER_amount_ntoh (&fees->account,
|
||||||
&nbo->account);
|
&nbo->account);
|
||||||
TALER_amount_ntoh (&fees->purse,
|
TALER_amount_ntoh (&fees->purse,
|
||||||
@ -114,8 +110,6 @@ TALER_wire_fee_set_hton (struct TALER_WireFeeSetNBOP *nbo,
|
|||||||
&fees->wire);
|
&fees->wire);
|
||||||
TALER_amount_hton (&nbo->closing,
|
TALER_amount_hton (&nbo->closing,
|
||||||
&fees->closing);
|
&fees->closing);
|
||||||
TALER_amount_hton (&nbo->wad,
|
|
||||||
&fees->wad);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -127,8 +121,6 @@ TALER_wire_fee_set_ntoh (struct TALER_WireFeeSet *fees,
|
|||||||
&nbo->wire);
|
&nbo->wire);
|
||||||
TALER_amount_ntoh (&fees->closing,
|
TALER_amount_ntoh (&fees->closing,
|
||||||
&nbo->closing);
|
&nbo->closing);
|
||||||
TALER_amount_ntoh (&fees->wad,
|
|
||||||
&nbo->wad);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -142,10 +134,6 @@ TALER_global_fee_set_cmp (const struct TALER_GlobalFeeSet *f1,
|
|||||||
&f2->history);
|
&f2->history);
|
||||||
if (0 != ret)
|
if (0 != ret)
|
||||||
return ret;
|
return ret;
|
||||||
ret = TALER_amount_cmp (&f1->kyc,
|
|
||||||
&f2->kyc);
|
|
||||||
if (0 != ret)
|
|
||||||
return ret;
|
|
||||||
ret = TALER_amount_cmp (&f1->account,
|
ret = TALER_amount_cmp (&f1->account,
|
||||||
&f2->account);
|
&f2->account);
|
||||||
if (0 != ret)
|
if (0 != ret)
|
||||||
@ -172,10 +160,6 @@ TALER_wire_fee_set_cmp (const struct TALER_WireFeeSet *f1,
|
|||||||
&f2->closing);
|
&f2->closing);
|
||||||
if (0 != ret)
|
if (0 != ret)
|
||||||
return ret;
|
return ret;
|
||||||
ret = TALER_amount_cmp (&f1->wad,
|
|
||||||
&f2->wad);
|
|
||||||
if (0 != ret)
|
|
||||||
return ret;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user