wallet: add unlock_time details to show_transfers

also add a note when receiving the tx, because the user
might not notice the "XXX blocks to unlock" in the balance.
This commit is contained in:
moneromooo-monero
2019-05-16 21:34:59 +00:00
parent e8487fa46b
commit 915f59e3c0
5 changed files with 30 additions and 7 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ struct Wallet2CallbackImpl : public tools::i_wallet2_callback
}
}
virtual void on_money_received(uint64_t height, const crypto::hash &txid, const cryptonote::transaction& tx, uint64_t amount, const cryptonote::subaddress_index& subaddr_index)
virtual void on_money_received(uint64_t height, const crypto::hash &txid, const cryptonote::transaction& tx, uint64_t amount, const cryptonote::subaddress_index& subaddr_index, uint64_t unlock_time)
{
std::string tx_hash = epee::string_tools::pod_to_hex(txid);