Skip to content
Permalink
Browse files

core: fix --prune-blockchain not pruning if no blockchain exists

  • Loading branch information...
moneromooo-monero committed Jun 17, 2019
1 parent 29a505d commit c1eba2b5872cb4ac49ed0adaffc878d688701b32
Showing with 1 addition and 1 deletion.
  1. +1 −1 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");

0 comments on commit c1eba2b

Please sign in to comment.
You can’t perform that action at this time.