mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 14:10:27 -04:00
Merge pull request #6525
86cf811
simplewallet: don't complain about incoming payment ids on change (moneromooo-monero)
This commit is contained in:
commit
3a577f1ce7
5 changed files with 22 additions and 7 deletions
|
@ -5471,7 +5471,7 @@ void simple_wallet::on_new_block(uint64_t height, const cryptonote::block& block
|
|||
m_refresh_progress_reporter.update(height, false);
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
void simple_wallet::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)
|
||||
void simple_wallet::on_money_received(uint64_t height, const crypto::hash &txid, const cryptonote::transaction& tx, uint64_t amount, const cryptonote::subaddress_index& subaddr_index, bool is_change, uint64_t unlock_time)
|
||||
{
|
||||
if (m_locked)
|
||||
return;
|
||||
|
@ -5482,7 +5482,7 @@ void simple_wallet::on_money_received(uint64_t height, const crypto::hash &txid,
|
|||
tr("idx ") << subaddr_index;
|
||||
|
||||
const uint64_t warn_height = m_wallet->nettype() == TESTNET ? 1000000 : m_wallet->nettype() == STAGENET ? 50000 : 1650000;
|
||||
if (height >= warn_height)
|
||||
if (height >= warn_height && !is_change)
|
||||
{
|
||||
std::vector<tx_extra_field> tx_extra_fields;
|
||||
parse_tx_extra(tx.extra, tx_extra_fields); // failure ok
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue