diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-29 15:43:32 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-29 15:43:32 +0100 |
| commit | ce901fcb3174a2795483fba653a1128ce6b15858 (patch) | |
| tree | b8955b4e258d3e62799b820dd0b4e6cc6d4b9caf /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 84fa015e77c9d9937b115427269e369b26c869ef (diff) | |
| download | monzero-core-ce901fcb3174a2795483fba653a1128ce6b15858.tar.gz monzero-core-ce901fcb3174a2795483fba653a1128ce6b15858.tar.xz monzero-core-ce901fcb3174a2795483fba653a1128ce6b15858.zip | |
Fix blockchain_import wedge on exception in cleanup_handle_incoming_blocks
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index af0616af0..ac1579066 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1068,12 +1068,13 @@ namespace cryptonote //----------------------------------------------------------------------------------------------- bool core::cleanup_handle_incoming_blocks(bool force_sync) { + bool success = false; try { - m_blockchain_storage.cleanup_handle_incoming_blocks(force_sync); + success = m_blockchain_storage.cleanup_handle_incoming_blocks(force_sync); } catch (...) {} m_incoming_tx_lock.unlock(); - return true; + return success; } //----------------------------------------------------------------------------------------------- |
