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/test_exchangedb.c | |
parent | 917dd4d70ff2f38d475146b387e649a669996f10 (diff) | |
download | exchange-d06d8596260655f52a3e7db9e46d8220f8a5716a.tar.gz exchange-d06d8596260655f52a3e7db9e46d8220f8a5716a.tar.bz2 exchange-d06d8596260655f52a3e7db9e46d8220f8a5716a.zip |
remove dead do_withdraw code
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index eeaaffad4..336c14600 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -1410,26 +1410,39 @@ run (void *cls) { bool found; - bool nonce_ok; + bool nonce_reuse; bool balance_ok; bool age_ok; + bool conflict; + bool denom_unknown; uint16_t maximum_age; uint64_t ruuid; + struct TALER_Amount reserve_balance; FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - plugin->do_withdraw (plugin->cls, - NULL, - &cbc, - now, - false, - &found, - &balance_ok, - &nonce_ok, - &age_ok, - &maximum_age, - &ruuid)); + plugin->do_batch_withdraw (plugin->cls, + now, + &reserve_pub, + &value, + true, + &found, + &balance_ok, + &reserve_balance, + &age_ok, + &maximum_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)); GNUNET_assert (found); - GNUNET_assert (nonce_ok); + GNUNET_assert (! nonce_reuse); + GNUNET_assert (! denom_unknown); GNUNET_assert (balance_ok); } |