From c5c3a9eaa8076b80287f5430214dde09490c64f0 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 4 Dec 2019 06:04:05 -0500 Subject: [PATCH] define get_txs(query, missing_tx_ids) --- src/wallet/monero_wallet.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/wallet/monero_wallet.h b/src/wallet/monero_wallet.h index b0e0a84..cd91fc2 100644 --- a/src/wallet/monero_wallet.h +++ b/src/wallet/monero_wallet.h @@ -660,7 +660,7 @@ namespace monero { * @return the retrieved subaddress */ virtual monero_subaddress get_subaddress(const uint32_t account_idx, const uint32_t subaddress_idx) const { - throw runtime_error("getSubaddress() not implemented"); + throw runtime_error("get_subaddress() not implemented"); } /** @@ -689,7 +689,7 @@ namespace monero { * @return all wallet transactions */ virtual vector> get_txs() const { - throw runtime_error("set_daemon_connection() not implemented"); + throw runtime_error("get_txs() not implemented"); } // /** @@ -713,7 +713,19 @@ namespace monero { * @return wallet transactions per the query */ virtual vector> get_txs(const monero_tx_query& query) const { - throw runtime_error("get_txs() not implemented"); + throw runtime_error("get_txs(query) not implemented"); + } + + /** + * Same as get_txs(request) but collects missing tx ids instead of throwing an error. + * This method is separated because WebAssembly does not support exception handling. + * + * @param request filters query results (optional) + * @param missing_tx_ids are populated with requested tx ids that are not part of the wallet + * @return wallet transactions per the request + */ + virtual vector> get_txs(const monero_tx_query& query, vector& missing_tx_ids) const { + throw runtime_error("get_txs(query, missing_tx_ids) not implemented"); } // /**