mirror of
https://github.com/monero-project/monero.git
synced 2025-05-25 16:10:55 -04:00
Fix leak on real output when using a very recent output
The wallet and the daemon applied different height considerations when selecting outputs to use. This can leak information on which input in a ring signature is the real one. Found and originally fixed by smooth on Aeon.
This commit is contained in:
parent
14dd279fe1
commit
ecbb732faa
5 changed files with 14 additions and 3 deletions
|
@ -1073,7 +1073,7 @@ bool wallet2::is_transfer_unlocked(const transfer_details& td) const
|
|||
if(!is_tx_spendtime_unlocked(td.m_tx.unlock_time))
|
||||
return false;
|
||||
|
||||
if(td.m_block_height + DEFAULT_TX_SPENDABLE_AGE > m_blockchain.size())
|
||||
if(td.m_block_height + CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE > m_blockchain.size())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue