From fe443bbdec3ad6cdb7409f61a1e64eda6b32016b Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 11 Oct 2019 10:42:57 +0000 Subject: cryptonote: don't leave block_weight uninitialized CID 204467 --- src/cryptonote_core/cryptonote_core.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index b831cc9ff..eed5317e1 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1367,6 +1367,7 @@ namespace cryptonote { block_complete_entry bce; bce.block = cryptonote::block_to_blob(b); + bce.block_weight = 0; // we can leave it to 0, those txes aren't pruned for (const auto &tx_hash: b.tx_hashes) { cryptonote::blobdata txblob; -- cgit v1.2.3