diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-11 10:42:57 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-11 14:09:31 +0000 |
commit | fe443bbdec3ad6cdb7409f61a1e64eda6b32016b (patch) | |
tree | 18d749ec920e0ad22d566a68bedc403d8badc986 | |
parent | protocol: initialize block_weight in block_complete_entry ctor (diff) | |
download | monero-fe443bbdec3ad6cdb7409f61a1e64eda6b32016b.tar.xz |
cryptonote: don't leave block_weight uninitialized
CID 204467
-rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 1 |
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; |