diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-10-15 23:43:31 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-10-15 23:43:31 +0200 |
commit | d06d8596260655f52a3e7db9e46d8220f8a5716a (patch) | |
tree | 2c5d2d673b4fd1847c5cfdb047fafd2affbe9742 /src/exchangedb/perf_deposits_get_ready.c | |
parent | 917dd4d70ff2f38d475146b387e649a669996f10 (diff) | |
download | exchange-d06d8596260655f52a3e7db9e46d8220f8a5716a.tar.xz |
remove dead do_withdraw code
Diffstat (limited to 'src/exchangedb/perf_deposits_get_ready.c')
-rw-r--r-- | src/exchangedb/perf_deposits_get_ready.c | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/src/exchangedb/perf_deposits_get_ready.c b/src/exchangedb/perf_deposits_get_ready.c index 2effee732..f15665482 100644 --- a/src/exchangedb/perf_deposits_get_ready.c +++ b/src/exchangedb/perf_deposits_get_ready.c @@ -364,26 +364,38 @@ run (void *cls) &cbc.withdraw_fee)); { bool found; - bool nonce_ok; + bool nonce_reuse; bool balance_ok; bool age_ok; + bool conflict; + bool denom_unknown; + struct TALER_Amount reserve_balance; uint16_t allowed_minimum_age; uint64_t ruuid; struct GNUNET_TIME_Timestamp now; now = GNUNET_TIME_timestamp_get (); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - plugin->do_withdraw (plugin->cls, - NULL, - &cbc, - now, - false, - &found, - &balance_ok, - &nonce_ok, - &age_ok, - &allowed_minimum_age, - &ruuid)); + plugin->do_batch_withdraw (plugin->cls, + now, + &reserve_pub, + &value, + true, + &found, + &balance_ok, + &reserve_balance, + &age_ok, + &allowed_minimum_age, + &ruuid)); + FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != + plugin->do_batch_withdraw_insert (plugin->cls, + NULL, + &cbc, + now, + ruuid, + &denom_unknown, + &conflict, + &nonce_reuse)); } { /* ENSURE_COIN_KNOWN */ |