simplewallet: new net_stats command

displays total sent and received bytes
This commit is contained in:
moneromooo-monero
2019-03-29 22:03:52 +00:00
parent 19e37c05d6
commit 9f8dc4ce51
6 changed files with 56 additions and 2 deletions
+10
View File
@@ -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();
}
}
+3
View File
@@ -1258,6 +1258,9 @@ namespace tools
bool frozen(const crypto::key_image &ki) const;
bool frozen(const transfer_details &td) const;
uint64_t get_bytes_sent() const;
uint64_t get_bytes_received() const;
// MMS -------------------------------------------------------------------------------------------------
mms::message_store& get_message_store() { return m_message_store; };
const mms::message_store& get_message_store() const { return m_message_store; };