aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-11 10:42:57 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-11 14:09:31 +0000
commitfe443bbdec3ad6cdb7409f61a1e64eda6b32016b (patch)
tree18d749ec920e0ad22d566a68bedc403d8badc986 /src/cryptonote_core/cryptonote_core.cpp
parentprotocol: initialize block_weight in block_complete_entry ctor (diff)
downloadmonero-fe443bbdec3ad6cdb7409f61a1e64eda6b32016b.tar.xz
cryptonote: don't leave block_weight uninitialized
CID 204467
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp1
1 files changed, 1 insertions, 0 deletions
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;