diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-17 12:52:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-17 12:52:33 +0100 |
commit | 540b22ce1ca41e66574eb156678a7ff288403951 (patch) | |
tree | 58848819a2212459db9002e5eabee3437467821a /src/include | |
parent | 153dcdbc61a7abcee03947ff5bef89b21b2e8440 (diff) |
implement rh caching
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 17 |
1 files changed, 17 insertions, 0 deletions
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. * |