mirror of
https://github.com/monero-project/monero.git
synced 2025-06-21 07:54:13 -04:00
wallet: do not store signatures in the wallet cache
Saves some substantial space. Also avoid calculating tx hashes we don't need.
This commit is contained in:
parent
0263dd2d23
commit
a47ceee83b
11 changed files with 95 additions and 31 deletions
|
@ -42,6 +42,11 @@ static tools::wallet2::transfer_container make_transfers_container(size_t N)
|
|||
tools::wallet2::transfer_details &td = transfers.back();
|
||||
td.m_block_height = 1000;
|
||||
td.m_spent = false;
|
||||
td.m_txid = cryptonote::null_hash;
|
||||
td.m_txid.data[0] = n & 0xff;
|
||||
td.m_txid.data[1] = (n >> 8) & 0xff;
|
||||
td.m_txid.data[2] = (n >> 16) & 0xff;
|
||||
td.m_txid.data[3] = (n >> 24) & 0xff;
|
||||
}
|
||||
return transfers;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue