aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/output_selection.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-06 19:19:25 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:30:10 +0100
commita47ceee83b0e04a3c440d9ca5a75cf0ac1d9256e (patch)
tree4852efeff376ad287d322d34253967497d923a0b /tests/unit_tests/output_selection.cpp
parentcore: add some locking around pool use (diff)
downloadmonero-a47ceee83b0e04a3c440d9ca5a75cf0ac1d9256e.tar.xz
wallet: do not store signatures in the wallet cache
Saves some substantial space. Also avoid calculating tx hashes we don't need.
Diffstat (limited to '')
-rw-r--r--tests/unit_tests/output_selection.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit_tests/output_selection.cpp b/tests/unit_tests/output_selection.cpp
index a3164fa4e..4344d1ffc 100644
--- a/tests/unit_tests/output_selection.cpp
+++ b/tests/unit_tests/output_selection.cpp
@@ -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;
}