diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-24 19:42:35 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-24 19:42:35 +0000 |
| commit | 37ed96e6117af340eafa2495f24d513fe1a07de9 (patch) | |
| tree | 6562b5b5108b22cb45a4e5348226c8df7051fe17 | |
| parent | 94b6feef244ef2b63d94d57162b474a58094080d (diff) | |
| download | monzero-core-37ed96e6117af340eafa2495f24d513fe1a07de9.tar.gz monzero-core-37ed96e6117af340eafa2495f24d513fe1a07de9.tar.xz monzero-core-37ed96e6117af340eafa2495f24d513fe1a07de9.zip | |
tx_pool: fix uninitialized "last failed" fields
| -rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 4cfd61f9f..ca4b6d6f5 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -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); |
