cryptonote: don't leave block_weight uninitialized

CID 204467
This commit is contained in:
moneromooo-monero 2019-10-11 10:42:57 +00:00
parent 88c9d90ac4
commit fe443bbdec
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -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;