-remove dead argument
This commit is contained in:
parent
75dbf20ced
commit
9e5dc2a542
@ -713,7 +713,6 @@ wire_transfer_information_cb (
|
|||||||
/* Obtain coin's transaction history */
|
/* Obtain coin's transaction history */
|
||||||
qs = TALER_ARL_edb->get_coin_transactions (TALER_ARL_edb->cls,
|
qs = TALER_ARL_edb->get_coin_transactions (TALER_ARL_edb->cls,
|
||||||
coin_pub,
|
coin_pub,
|
||||||
GNUNET_YES,
|
|
||||||
&tl);
|
&tl);
|
||||||
if ( (qs < 0) ||
|
if ( (qs < 0) ||
|
||||||
(NULL == tl) )
|
(NULL == tl) )
|
||||||
|
@ -473,7 +473,6 @@ check_coin_history (const struct TALER_CoinSpendPublicKeyP *coin_pub,
|
|||||||
|
|
||||||
qs = TALER_ARL_edb->get_coin_transactions (TALER_ARL_edb->cls,
|
qs = TALER_ARL_edb->get_coin_transactions (TALER_ARL_edb->cls,
|
||||||
coin_pub,
|
coin_pub,
|
||||||
true,
|
|
||||||
&tl);
|
&tl);
|
||||||
if (0 >= qs)
|
if (0 >= qs)
|
||||||
return qs;
|
return qs;
|
||||||
|
@ -579,10 +579,8 @@ TEH_RESPONSE_reply_coin_insufficient_funds (
|
|||||||
TALER_EC_GENERIC_DB_START_FAILED,
|
TALER_EC_GENERIC_DB_START_FAILED,
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
// FIXME: simplify, 3rd arg is always 'true' now?
|
|
||||||
qs = TEH_plugin->get_coin_transactions (TEH_plugin->cls,
|
qs = TEH_plugin->get_coin_transactions (TEH_plugin->cls,
|
||||||
coin_pub,
|
coin_pub,
|
||||||
true,
|
|
||||||
&tl);
|
&tl);
|
||||||
TEH_plugin->rollback (TEH_plugin->cls);
|
TEH_plugin->rollback (TEH_plugin->cls);
|
||||||
if (0 > qs)
|
if (0 > qs)
|
||||||
|
@ -8937,7 +8937,6 @@ struct Work
|
|||||||
*
|
*
|
||||||
* @param cls the `struct PostgresClosure` with the plugin-specific state
|
* @param cls the `struct PostgresClosure` with the plugin-specific state
|
||||||
* @param coin_pub coin to investigate
|
* @param coin_pub coin to investigate
|
||||||
* @param include_recoup should recoup transactions be included in the @a tlp
|
|
||||||
* @param[out] tlp set to list of transactions, NULL if coin is fresh
|
* @param[out] tlp set to list of transactions, NULL if coin is fresh
|
||||||
* @return database transaction status
|
* @return database transaction status
|
||||||
*/
|
*/
|
||||||
@ -8945,26 +8944,10 @@ static enum GNUNET_DB_QueryStatus
|
|||||||
postgres_get_coin_transactions (
|
postgres_get_coin_transactions (
|
||||||
void *cls,
|
void *cls,
|
||||||
const struct TALER_CoinSpendPublicKeyP *coin_pub,
|
const struct TALER_CoinSpendPublicKeyP *coin_pub,
|
||||||
bool include_recoup,
|
|
||||||
struct TALER_EXCHANGEDB_TransactionList **tlp)
|
struct TALER_EXCHANGEDB_TransactionList **tlp)
|
||||||
{
|
{
|
||||||
struct PostgresClosure *pg = cls;
|
struct PostgresClosure *pg = cls;
|
||||||
static const struct Work work_op[] = {
|
static const struct Work work[] = {
|
||||||
/** #TALER_EXCHANGEDB_TT_DEPOSIT */
|
|
||||||
{ "get_deposit_with_coin_pub",
|
|
||||||
&add_coin_deposit },
|
|
||||||
/** #TALER_EXCHANGEDB_TT_MELT */
|
|
||||||
{ "get_refresh_session_by_coin",
|
|
||||||
&add_coin_melt },
|
|
||||||
/** #TALER_EXCHANGEDB_TT_PURSE_DEPOSIT */
|
|
||||||
{ "get_purse_deposit_by_coin_pub",
|
|
||||||
&add_coin_purse_deposit },
|
|
||||||
/** #TALER_EXCHANGEDB_TT_REFUND */
|
|
||||||
{ "get_refunds_by_coin",
|
|
||||||
&add_coin_refund },
|
|
||||||
{ NULL, NULL }
|
|
||||||
};
|
|
||||||
static const struct Work work_wp[] = {
|
|
||||||
/** #TALER_EXCHANGEDB_TT_DEPOSIT */
|
/** #TALER_EXCHANGEDB_TT_DEPOSIT */
|
||||||
{ "get_deposit_with_coin_pub",
|
{ "get_deposit_with_coin_pub",
|
||||||
&add_coin_deposit },
|
&add_coin_deposit },
|
||||||
@ -8993,7 +8976,6 @@ postgres_get_coin_transactions (
|
|||||||
GNUNET_PQ_query_param_end
|
GNUNET_PQ_query_param_end
|
||||||
};
|
};
|
||||||
enum GNUNET_DB_QueryStatus qs;
|
enum GNUNET_DB_QueryStatus qs;
|
||||||
const struct Work *work;
|
|
||||||
struct CoinHistoryContext chc = {
|
struct CoinHistoryContext chc = {
|
||||||
.head = NULL,
|
.head = NULL,
|
||||||
.coin_pub = coin_pub,
|
.coin_pub = coin_pub,
|
||||||
@ -9001,7 +8983,6 @@ postgres_get_coin_transactions (
|
|||||||
.db_cls = cls
|
.db_cls = cls
|
||||||
};
|
};
|
||||||
|
|
||||||
work = (GNUNET_YES == include_recoup) ? work_wp : work_op;
|
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
|
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
|
||||||
"Getting transactions for coin %s\n",
|
"Getting transactions for coin %s\n",
|
||||||
TALER_B2S (coin_pub));
|
TALER_B2S (coin_pub));
|
||||||
|
@ -1707,7 +1707,6 @@ run (void *cls)
|
|||||||
|
|
||||||
qs = plugin->get_coin_transactions (plugin->cls,
|
qs = plugin->get_coin_transactions (plugin->cls,
|
||||||
&refresh.coin.coin_pub,
|
&refresh.coin.coin_pub,
|
||||||
GNUNET_YES,
|
|
||||||
&tl);
|
&tl);
|
||||||
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs);
|
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs);
|
||||||
plugin->free_coin_transaction_list (plugin->cls,
|
plugin->free_coin_transaction_list (plugin->cls,
|
||||||
@ -1946,7 +1945,6 @@ run (void *cls)
|
|||||||
FAILIF (1 != auditor_row_cnt);
|
FAILIF (1 != auditor_row_cnt);
|
||||||
qs = plugin->get_coin_transactions (plugin->cls,
|
qs = plugin->get_coin_transactions (plugin->cls,
|
||||||
&refund.coin.coin_pub,
|
&refund.coin.coin_pub,
|
||||||
GNUNET_YES,
|
|
||||||
&tl);
|
&tl);
|
||||||
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs);
|
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs);
|
||||||
GNUNET_assert (NULL != tl);
|
GNUNET_assert (NULL != tl);
|
||||||
|
@ -3838,14 +3838,12 @@ struct TALER_EXCHANGEDB_Plugin
|
|||||||
*
|
*
|
||||||
* @param cls the @e cls of this struct with the plugin-specific state
|
* @param cls the @e cls of this struct with the plugin-specific state
|
||||||
* @param coin_pub coin to investigate
|
* @param coin_pub coin to investigate
|
||||||
* @param include_recoup include recoup transactions of the coin?
|
|
||||||
* @param[out] tlp set to list of transactions, NULL if coin is fresh
|
* @param[out] tlp set to list of transactions, NULL if coin is fresh
|
||||||
* @return database transaction status
|
* @return database transaction status
|
||||||
*/
|
*/
|
||||||
enum GNUNET_DB_QueryStatus
|
enum GNUNET_DB_QueryStatus
|
||||||
(*get_coin_transactions)(void *cls,
|
(*get_coin_transactions)(void *cls,
|
||||||
const struct TALER_CoinSpendPublicKeyP *coin_pub,
|
const struct TALER_CoinSpendPublicKeyP *coin_pub,
|
||||||
bool include_recoup,
|
|
||||||
struct TALER_EXCHANGEDB_TransactionList **tlp);
|
struct TALER_EXCHANGEDB_TransactionList **tlp);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user