From 0f757177fe9b8128d2507a8d57911fb51d667696 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 30 Jul 2018 13:33:02 +0100 Subject: wallet2: avoid using arbitrary random values when unknown --- src/wallet/wallet2.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 90807803a..ed0964004 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -10056,11 +10056,10 @@ uint64_t wallet2::import_key_images(const std::vector(); // spent txid is unknown, so hypothetically set to random + pd.m_block_height = 0; // spent block height is unknown + const crypto::hash &spent_txid = crypto::null_hash; // spent txid is unknown m_confirmed_txs.insert(std::make_pair(spent_txid, pd)); } } -- cgit v1.2.3