diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-07-04 14:46:37 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-04 14:46:37 -0500 |
commit | 9d7107c870d88885f43a8fd65739b1b70a5af668 (patch) | |
tree | 9718c7c522c7afdaaee6a621bbf71dad5522b61b /src/cryptonote_core | |
parent | Merge pull request #5650 (diff) | |
parent | core: fix --prune-blockchain not pruning if no blockchain exists (diff) | |
download | monero-9d7107c870d88885f43a8fd65739b1b70a5af668.tar.xz |
Merge pull request #5663
5d6b43b core: fix --prune-blockchain not pruning if no blockchain exists (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 2 |
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"); |