mirror of
https://github.com/monero-project/monero.git
synced 2025-06-30 20:27:17 -04:00
WalletListener::moneySpent test
This commit is contained in:
parent
060bb62e29
commit
64348a2d11
3 changed files with 173 additions and 64 deletions
|
@ -50,6 +50,12 @@ namespace {
|
|||
struct Wallet2CallbackImpl : public tools::i_wallet2_callback
|
||||
{
|
||||
|
||||
Wallet2CallbackImpl()
|
||||
: m_listener(nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
~Wallet2CallbackImpl()
|
||||
{
|
||||
|
||||
|
@ -109,6 +115,8 @@ struct Wallet2CallbackImpl : public tools::i_wallet2_callback
|
|||
|
||||
Wallet::~Wallet() {}
|
||||
|
||||
WalletListener::~WalletListener() {}
|
||||
|
||||
string Wallet::displayAmount(uint64_t amount)
|
||||
{
|
||||
return cryptonote::print_money(amount);
|
||||
|
|
|
@ -106,8 +106,8 @@ struct TransactionHistory
|
|||
struct WalletListener
|
||||
{
|
||||
virtual ~WalletListener() = 0;
|
||||
virtual void moneySpent(const std::string &txId, uint64_t amount);
|
||||
virtual void moneyReceived(const std::string &txId, uint64_t amount);
|
||||
virtual void moneySpent(const std::string &txId, uint64_t amount) = 0;
|
||||
virtual void moneyReceived(const std::string &txId, uint64_t amount) = 0;
|
||||
// TODO: on_skip_transaction;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue