mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #1559
db56a03f
Wallet2 + API: Callbacks for unconfirmed transfers (Jaquee)
This commit is contained in:
commit
2a2f02e375
10 changed files with 83 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue