diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-01-13 14:37:12 -0500 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-01-13 14:37:12 -0500 |
commit | 2a2f02e375d0db176b998af779e447ffe871b774 (patch) | |
tree | 9232a5dc4fed0bcdf31fbde230aab986e3f2eea5 /tests | |
parent | Merge pull request #1558 (diff) | |
parent | Wallet2 + API: Callbacks for unconfirmed transfers (diff) | |
download | monero-2a2f02e375d0db176b998af779e447ffe871b774.tar.xz |
Merge pull request #1559
db56a03f Wallet2 + API: Callbacks for unconfirmed transfers (Jaquee)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libwallet_api_tests/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/libwallet_api_tests/main.cpp b/tests/libwallet_api_tests/main.cpp index 671832ad0..6f33684cd 100644 --- a/tests/libwallet_api_tests/main.cpp +++ b/tests/libwallet_api_tests/main.cpp @@ -831,6 +831,16 @@ struct MyWalletListener : public Monero::WalletListener cv_receive.notify_one(); } + virtual void unconfirmedMoneyReceived(const string &txId, uint64_t amount) + { + std::cout << "wallet: " << wallet->address() << "**** just received unconfirmed money (" + << txId << ", " << wallet->displayAmount(amount) << ")" << std::endl; + // Don't trigger recieve until tx is mined + // total_rx += amount; + // receive_triggered = true; + // cv_receive.notify_one(); + } + virtual void newBlock(uint64_t height) { // std::cout << "wallet: " << wallet->address() |