mirror of
https://github.com/monero-project/monero.git
synced 2025-01-28 18:56:31 +02:00
Observer callbacks are not pure anymore
This commit is contained in:
parent
06bddbc7d5
commit
2ee13e7ea6
@ -9,17 +9,17 @@ class WalletObserver
|
||||
{
|
||||
public:
|
||||
|
||||
virtual void on_new_block(uint64_t height) = 0;
|
||||
virtual void on_new_block(uint64_t height) {}
|
||||
|
||||
virtual void on_money_received(uint64_t height, const std::string& transaction_id, Monero::amount_mini_t amount_mini) = 0;
|
||||
virtual void on_money_received(uint64_t height, const std::string& transaction_id, Monero::amount_mini_t amount_mini) {}
|
||||
|
||||
virtual void on_money_spent(uint64_t height, const std::string& transaction_id, Monero::amount_mini_t amount_mini) = 0;
|
||||
virtual void on_money_spent(uint64_t height, const std::string& transaction_id, Monero::amount_mini_t amount_mini) {}
|
||||
|
||||
virtual void on_skip_transaction(uint64_t height, const std::string& transaction_id) = 0;
|
||||
virtual void on_skip_transaction(uint64_t height, const std::string& transaction_id) {}
|
||||
|
||||
virtual void on_payment_received(uint64_t height, const std::string& payment_id, const Payment& payment) = 0;
|
||||
virtual void on_payment_received(uint64_t height, const std::string& payment_id, const Payment& payment) {}
|
||||
|
||||
virtual void on_wallet_refreshed(Monero::Wallet* wallet, size_t fetched_blocks_count, bool hasReceivedMoney) = 0;
|
||||
virtual void on_wallet_refreshed(Monero::Wallet* wallet, size_t fetched_blocks_count, bool hasReceivedMoney) {}
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user