Wallet2 + API: Callbacks for unconfirmed transfers

This commit is contained in:
Jaquee 2017-01-12 18:23:23 +01:00
parent c6ec939626
commit db56a03ff2
No known key found for this signature in database
GPG key ID: 384E52B09F45DC39
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()