diff options
-rw-r--r-- | src/mint/mint_db.h | 5 | ||||
-rw-r--r-- | src/mint/taler-mint-reservemod.c | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/mint/mint_db.h b/src/mint/mint_db.h index 9818172af..4a9ec1524 100644 --- a/src/mint/mint_db.h +++ b/src/mint/mint_db.h @@ -110,8 +110,7 @@ TALER_MINT_DB_rollback (PGconn *db_conn); /** - * Information we keep on a bank transfer that - * established a reserve. + * Information we keep on bank transfer(s) that established a reserve. */ struct BankTransfer { @@ -135,7 +134,7 @@ struct BankTransfer /* FIXME: add functions to add bank transfers to our DB - (and to test if we already did add one) (#3633) */ + (and to test if we already did add one) (#3633/#3717) */ /** * A summary of a Reserve diff --git a/src/mint/taler-mint-reservemod.c b/src/mint/taler-mint-reservemod.c index e805cacc1..dea59d6ee 100644 --- a/src/mint/taler-mint-reservemod.c +++ b/src/mint/taler-mint-reservemod.c @@ -15,7 +15,7 @@ */ /** * @file taler-mint-reservemod.c - * @brief Modify reserves. Allows manipulation of reserve balances for testing. + * @brief Modify reserves. Allows manipulation of reserve balances. * @author Florian Dold * @author Benedikt Mueller */ @@ -57,6 +57,11 @@ static PGconn *db_conn; * @return #GNUNET_OK on success, * #GNUNET_SYSERR on error */ +// FIXME: this should use the DB abstraction layer. (#3717) +// FIXME: this should be done by adding an inbound transaction +// to the table with the transactions for this reserve, +// not by modifying some 'total' value for the reserve! +// (we should in fact probably never modify, always just append!) (#3633) static int reservemod_add (struct TALER_Amount denom) { @@ -223,7 +228,7 @@ main (int argc, char *const *argv) "WARNING", NULL)); - if (GNUNET_GETOPT_run ("taler-mint-keyup", + if (GNUNET_GETOPT_run ("taler-mint-reservemod", options, argc, argv) < 0) return 1; |