WalletListener::moneySpent test
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user