From 8a6772421850152c974b9b6552e3d5f7d316400d Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 4 Jun 2021 15:44:19 +0200 Subject: wallet_api: get bytes sent/received --- src/wallet/api/wallet.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/wallet/api/wallet.cpp') diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index d53cbddad..2b0349501 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -2603,4 +2603,15 @@ bool WalletImpl::reconnectDevice() return r; } + +uint64_t WalletImpl::getBytesReceived() +{ + return m_wallet->get_bytes_received(); +} + +uint64_t WalletImpl::getBytesSent() +{ + return m_wallet->get_bytes_sent(); +} + } // namespace -- cgit v1.2.3