tx_pool: fix uninitialized "last failed" fields

This commit is contained in:
moneromooo-monero 2016-12-24 19:42:35 +00:00
parent 94b6feef24
commit 37ed96e611
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -189,6 +189,8 @@ namespace cryptonote
txd_p.first->second.fee = fee;
txd_p.first->second.max_used_block_id = null_hash;
txd_p.first->second.max_used_block_height = 0;
txd_p.first->second.last_failed_height = 0;
txd_p.first->second.last_failed_id = null_hash;
txd_p.first->second.kept_by_block = kept_by_block;
txd_p.first->second.receive_time = time(nullptr);
txd_p.first->second.last_relayed_time = time(NULL);