From 540b22ce1ca41e66574eb156678a7ff288403951 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Jan 2020 12:52:24 +0100 Subject: implement rh caching --- src/include/taler_exchangedb_plugin.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 3178209d0..633640e09 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1884,6 +1884,23 @@ struct TALER_EXCHANGEDB_Plugin const struct TALER_CoinSpendPublicKeyP *coin_pub, struct TALER_CoinPublicInfo *coin_info); + + /** + * Retrieve the denomination of a known coin. + * + * @param cls the plugin closure + * @param session the database session handle + * @param coin_pub the public key of the coin to search for + * @param denom_hash[out] where to store the hash of the coins denomination + * @return transaction status code + */ + enum GNUNET_DB_QueryStatus + (*get_coin_denomination)(void *cls, + struct TALER_EXCHANGEDB_Session *session, + const struct TALER_CoinSpendPublicKeyP *coin_pub, + struct GNUNET_HashCode *denom_hash); + + /** * Check if we have the specified deposit already in the database. * -- cgit v1.2.3