diff options
author | Jaquee <jaquee.monero@gmail.com> | 2017-01-12 18:23:23 +0100 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2017-01-12 18:25:34 +0100 |
commit | db56a03ff2820f85da21c3c8fc4cc60e64c5b88d (patch) | |
tree | b6e8c3a583171deb841ab0366f977be833bcc8e4 /tests | |
parent | Merge pull request #1542 (diff) | |
download | monero-db56a03ff2820f85da21c3c8fc4cc60e64c5b88d.tar.xz |
Wallet2 + API: Callbacks for unconfirmed transfers
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() |