aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-10-15 19:18:52 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-10-15 19:18:52 +0100
commit8231997b6674b8cd3e01ca242ac71fd829432c8e (patch)
tree66700ad86959bd7d3d46151d26e8a1e41c380027 /src/wallet/wallet2.cpp
parentwallet: force 0 mixin transactions to use pre-rct txes (diff)
downloadmonero-8231997b6674b8cd3e01ca242ac71fd829432c8e.tar.xz
simplewallet: fix sweep_all misreporting sweeped amount for rct outputs
RingCT outputs will be 0 in the vin, so we need to get the actual amount from elsewhere.
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 74c2f7d80..5dfb84687 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -3978,6 +3978,12 @@ uint64_t wallet2::get_num_rct_outputs()
return resp_t.result.histogram[0].instances;
}
//----------------------------------------------------------------------------------------------------
+const wallet2::transfer_details &wallet2::get_transfer_details(size_t idx) const
+{
+ THROW_WALLET_EXCEPTION_IF(idx >= m_transfers.size(), error::wallet_internal_error, "Bad transfer index");
+ return m_transfers[idx];
+}
+//----------------------------------------------------------------------------------------------------
std::vector<size_t> wallet2::select_available_unmixable_outputs(bool trusted_daemon)
{
// request all outputs with less than 3 instances