Withdraw after payback.

This triggers the TALER_EXCHANGEDB_RO_PAYBACK_COIN
case within the withdraw_transaction() handler.
This commit is contained in:
Marcello Stanisci 2018-05-18 10:50:27 +02:00
parent 39a9045319
commit 8ad907782d
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
2 changed files with 8 additions and 0 deletions

View File

@ -625,6 +625,13 @@ run (void *cls,
"EUR:5.0",
MHD_HTTP_OK),
/* Re-withdraw from this reserve */
TALER_TESTING_cmd_withdraw_amount ("payback-withdraw-coin-2",
is->exchange,
"payback-create-reserve-1",
"EUR:1",
MHD_HTTP_OK),
/**
* Fill reserve with EUR:2.02, as withdraw fee is 1 ct per
* config, then withdraw two coin, partially spend one, and

View File

@ -1124,6 +1124,7 @@ expired_reserve_cb (void *cls,
reserve_pub,
GNUNET_MIN (sizeof (wtid),
sizeof (*reserve_pub)));
qs = db_plugin->insert_reserve_closed (db_plugin->cls,
session,
reserve_pub,