aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-17 16:26:09 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-17 16:26:43 +0000
commit5d6b43b672617a72ac0181d0f770bf8fbe61e5ec (patch)
tree836ad6068e119d2db1e050ae16b4694ac383c674
parentMerge pull request #5641 (diff)
downloadmonero-5d6b43b672617a72ac0181d0f770bf8fbe61e5ec.tar.xz
core: fix --prune-blockchain not pruning if no blockchain exists
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 55e1b287f..13426230e 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -674,7 +674,7 @@ namespace cryptonote
if (prune_blockchain)
{
// display a message if the blockchain is not pruned yet
- if (m_blockchain_storage.get_current_blockchain_height() > 1 && !m_blockchain_storage.get_blockchain_pruning_seed())
+ if (!m_blockchain_storage.get_blockchain_pruning_seed())
{
MGINFO("Pruning blockchain...");
CHECK_AND_ASSERT_MES(m_blockchain_storage.prune_blockchain(), false, "Failed to prune blockchain");