mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
wallet_api: get bytes sent/received
This commit is contained in:
parent
14a1b89122
commit
8a67724218
@ -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
|
||||
|
@ -221,6 +221,8 @@ public:
|
||||
virtual uint64_t coldKeyImageSync(uint64_t &spent, uint64_t &unspent) override;
|
||||
virtual void deviceShowAddress(uint32_t accountIndex, uint32_t addressIndex, const std::string &paymentId) override;
|
||||
virtual bool reconnectDevice() override;
|
||||
virtual uint64_t getBytesReceived() override;
|
||||
virtual uint64_t getBytesSent() override;
|
||||
|
||||
private:
|
||||
void clearStatus() const;
|
||||
|
@ -1087,6 +1087,12 @@ struct Wallet
|
||||
|
||||
//! attempt to reconnect to hardware device
|
||||
virtual bool reconnectDevice() = 0;
|
||||
|
||||
//! get bytes received
|
||||
virtual uint64_t getBytesReceived() = 0;
|
||||
|
||||
//! get bytes sent
|
||||
virtual uint64_t getBytesSent() = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user