mirror of
https://github.com/monero-project/monero.git
synced 2025-06-19 09:34:12 -04:00
Wallet2 + API: Callbacks for unconfirmed transfers
This commit is contained in:
parent
c6ec939626
commit
db56a03ff2
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