aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-29 22:03:52 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-11 10:46:41 +0000
commit9f8dc4ce515f52ebb2a434ba6d1d9f47bfeac612 (patch)
tree7c73227be570f59685f1c3efb4d313c0831aa9f6 /src/wallet/wallet2.cpp
parentMerge pull request #5367 (diff)
downloadmonero-9f8dc4ce515f52ebb2a434ba6d1d9f47bfeac612.tar.xz
simplewallet: new net_stats command
displays total sent and received bytes
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 1d3ba900d..338feb016 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -12969,4 +12969,14 @@ void wallet2::finish_rescan_bc_keep_key_images(uint64_t transfer_height, const c
m_transfers[it->second].m_key_image_known = true;
}
}
+//----------------------------------------------------------------------------------------------------
+uint64_t wallet2::get_bytes_sent() const
+{
+ return m_http_client.get_bytes_sent();
+}
+//----------------------------------------------------------------------------------------------------
+uint64_t wallet2::get_bytes_received() const
+{
+ return m_http_client.get_bytes_received();
+}
}