Generating additional DKs after serialized state import.

This commit is contained in:
Marcello Stanisci 2019-01-09 13:45:47 +01:00
parent cf539c03c6
commit ec58188446
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
3 changed files with 19 additions and 3 deletions

View File

@ -469,7 +469,7 @@ parse_json_auditor (struct TALER_EXCHANGE_AuditorInformation *auditor,
kv.expire_deposit = GNUNET_TIME_absolute_hton (dk->expire_deposit); kv.expire_deposit = GNUNET_TIME_absolute_hton (dk->expire_deposit);
kv.expire_legal = GNUNET_TIME_absolute_hton (dk->expire_legal); kv.expire_legal = GNUNET_TIME_absolute_hton (dk->expire_legal);
TALER_amount_hton (&kv.value, TALER_amount_hton (&kv.value,
&dk->value); &dk->value);
TALER_amount_hton (&kv.fee_withdraw, TALER_amount_hton (&kv.fee_withdraw,
&dk->fee_withdraw); &dk->fee_withdraw);
TALER_amount_hton (&kv.fee_deposit, TALER_amount_hton (&kv.fee_deposit,

View File

@ -0,0 +1,5 @@
@INLINE@ test_exchange_api_keys_cherry_picking_extended.conf
[exchange]
# Lengthen over firstly extended value (100 s)
LOOKAHEAD_SIGN = 150 s

View File

@ -47,6 +47,12 @@
#define CONFIG_FILE_EXTENDED \ #define CONFIG_FILE_EXTENDED \
"test_exchange_api_keys_cherry_picking_extended.conf" "test_exchange_api_keys_cherry_picking_extended.conf"
/**
* Used to increase the number of denomination keys.
*/
#define CONFIG_FILE_EXTENDED_2 \
"test_exchange_api_keys_cherry_picking_extended_2.conf"
/** /**
* Exchange base URL; mainly purpose is to make the compiler happy. * Exchange base URL; mainly purpose is to make the compiler happy.
*/ */
@ -87,6 +93,11 @@ run (void *cls,
NULL, NULL,
MHD_HTTP_OK), MHD_HTTP_OK),
TALER_TESTING_cmd_exec_keyup ("keyup-serialization",
CONFIG_FILE_EXTENDED_2),
TALER_TESTING_cmd_exec_auditor_sign ("auditor-sign-serialization",
CONFIG_FILE_EXTENDED_2),
TALER_TESTING_cmd_end () TALER_TESTING_cmd_end ()
}; };
@ -108,7 +119,7 @@ run (void *cls,
CONFIG_FILE_EXTENDED), CONFIG_FILE_EXTENDED),
TALER_TESTING_cmd_exec_auditor_sign ("sign-keys-1", TALER_TESTING_cmd_exec_auditor_sign ("sign-keys-1",
CONFIG_FILE), CONFIG_FILE_EXTENDED),
/* Cause exchange to reload (new) keys */ /* Cause exchange to reload (new) keys */
TALER_TESTING_cmd_signal ("trigger-keys-reload-1", TALER_TESTING_cmd_signal ("trigger-keys-reload-1",