mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 08:17:37 +00:00
cryptonote: don't leave block_weight uninitialized
CID 204467
This commit is contained in:
parent
88c9d90ac4
commit
fe443bbdec
1 changed files with 1 additions and 0 deletions
|
@ -1367,6 +1367,7 @@ namespace cryptonote
|
||||||
{
|
{
|
||||||
block_complete_entry bce;
|
block_complete_entry bce;
|
||||||
bce.block = cryptonote::block_to_blob(b);
|
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)
|
for (const auto &tx_hash: b.tx_hashes)
|
||||||
{
|
{
|
||||||
cryptonote::blobdata txblob;
|
cryptonote::blobdata txblob;
|
||||||
|
|
Loading…
Reference in a new issue