Merge pull request #1559

db56a03f Wallet2 + API: Callbacks for unconfirmed transfers (Jaquee)
This commit is contained in:
Riccardo Spagni 2017-01-13 14:37:12 -05:00
commit 2a2f02e375
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
10 changed files with 83 additions and 6 deletions

View file

@ -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()