Skip to content

Commit

Permalink
Merge pull request #5663
Browse files Browse the repository at this point in the history
5d6b43b core: fix --prune-blockchain not pruning if no blockchain exists (moneromooo-monero)
  • Loading branch information
luigi1111 committed Jul 4, 2019
2 parents 59ba0ee + 5d6b43b commit 9d7107c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptonote_core/cryptonote_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 9d7107c

Please sign in to comment.