diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-09 12:29:41 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-09 12:29:41 +0100 |
commit | 579f465c9b2ed1cd4602ee102073d633fda60cb9 (patch) | |
tree | 99b546c629bfa876ccbe4f829a68c3fe8d80624a /src/mint/mint_db.h | |
parent | 7b0ae9c1d0a3c3165a8cef8cc12d04d207a49ce2 (diff) | |
download | exchange-579f465c9b2ed1cd4602ee102073d633fda60cb9.tar.xz |
implementing #3632: generate proof of insufficient funds by converting transaction history to JSON
Diffstat (limited to 'src/mint/mint_db.h')
-rw-r--r-- | src/mint/mint_db.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mint/mint_db.h b/src/mint/mint_db.h index 74f0c2d14..c3a300a57 100644 --- a/src/mint/mint_db.h +++ b/src/mint/mint_db.h @@ -222,8 +222,6 @@ TALER_MINT_DB_reserves_in_insert (PGconn *db, const struct TALER_Amount balance, const struct GNUNET_TIME_Absolute expiry); -/* FIXME: need call to convert CollectableBlindcoin to JSON (#3527) */ - /** * Locate the response for a /withdraw request under the @@ -529,10 +527,8 @@ TALER_MINT_DB_update_refresh_session (PGconn *db_conn, /** * Specification for coin in a /refresh/melt operation. - * FIXME: same as `struct MeltDetails`, and not by accident! - * We should merge the structs! */ -struct RefreshMelt /* FIXME: name to make it clearer this is about ONE coin! */ +struct RefreshMelt { /** * Information about the coin that is being melted. @@ -545,7 +541,14 @@ struct RefreshMelt /* FIXME: name to make it clearer this is about ONE coin! */ struct GNUNET_CRYPTO_EcdsaSignature coin_sig; /** + * Which melting operation should the coin become a part of. + */ + struct GNUNET_HashCode melt_hash; + + /** * How much value is being melted? + * This amount includes the fees, so the final amount contributed + * to the melt is this value minus the fee for melting the coin. */ struct TALER_Amount amount; |