diff options
| author | tobtoht <thotbot@protonmail.com> | 2021-06-04 15:44:19 +0200 |
|---|---|---|
| committer | tobtoht <thotbot@protonmail.com> | 2021-06-24 21:32:03 +0200 |
| commit | 8a6772421850152c974b9b6552e3d5f7d316400d (patch) | |
| tree | d5957063d6a7788a3fbba603fe2dd72c85445b5f /src/wallet/api/wallet.cpp | |
| parent | 14a1b89122406a937d7e0bc3712d6fc8ae675b64 (diff) | |
| download | monzero-core-8a6772421850152c974b9b6552e3d5f7d316400d.tar.gz monzero-core-8a6772421850152c974b9b6552e3d5f7d316400d.tar.xz monzero-core-8a6772421850152c974b9b6552e3d5f7d316400d.zip | |
wallet_api: get bytes sent/received
Diffstat (limited to 'src/wallet/api/wallet.cpp')
| -rw-r--r-- | src/wallet/api/wallet.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
