aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-19 16:39:50 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-20 08:56:31 +0000
commit55556fabf9117bb30bc4b4c77575bfa0b1cbb1a3 (patch)
treea5a88387bc8ebc04eeb3fe6541287ad96a807e28 /src/wallet/wallet_rpc_server.h
parentMerge pull request #2134 (diff)
downloadmonero-55556fabf9117bb30bc4b4c77575bfa0b1cbb1a3.tar.xz
wallet_rpc_server: factor transfer info return and add missing info
Additional tx keys, amounts and fees were missing in some cases
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet_rpc_server.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.h b/src/wallet/wallet_rpc_server.h
index 79f589623..b0874a96c 100644
--- a/src/wallet/wallet_rpc_server.h
+++ b/src/wallet/wallet_rpc_server.h
@@ -199,6 +199,11 @@ namespace tools
bool not_open(epee::json_rpc::error& er);
void handle_rpc_exception(const std::exception_ptr& e, epee::json_rpc::error& er, int default_error_code);
+ template<typename Ts, typename Tu>
+ bool fill_response(std::vector<tools::wallet2::pending_tx> &ptx_vector,
+ bool get_tx_key, Ts& tx_key, Tu &amount, Tu &fee, std::string &multisig_txset, bool do_not_relay,
+ Ts &tx_hash, bool get_tx_hex, Ts &tx_blob, bool get_tx_metadata, Ts &tx_metadata, epee::json_rpc::error &er);
+
wallet2 *m_wallet;
std::string m_wallet_dir;
tools::private_file rpc_login_file;