From fb952babf67c41dedf3fac6b9d89eccf7fc10b2e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 19 Oct 2018 11:01:40 +0200 Subject: reduce redundant data fetch (#5444) --- 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 580a628c6..ee58dd437 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1606,6 +1606,23 @@ struct TALER_EXCHANGEDB_Plugin struct TALER_EXCHANGEDB_RefreshMelt *refresh_melt); + /** + * Lookup noreveal index of a previous melt operation under the given + * @a rc. + * + * @param cls the `struct PostgresClosure` with the plugin-specific state + * @param session database handle to use + * @param rc commitment hash to use to locate the operation + * @param[out] refresh_melt where to store the result + * @return transaction status + */ + enum GNUNET_DB_QueryStatus + (*get_melt_index) (void *cls, + struct TALER_EXCHANGEDB_Session *session, + const struct TALER_RefreshCommitmentP *rc, + uint32_t *noreveal_index); + + /** * Store in the database which coin(s) the wallet wanted to create * in a given refresh operation and all of the other information -- cgit v1.2.3