mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
Merge pull request #5663
5d6b43b
core: fix --prune-blockchain not pruning if no blockchain exists (moneromooo-monero)
This commit is contained in:
commit
9d7107c870
1 changed files with 1 additions and 1 deletions
|
@ -674,7 +674,7 @@ namespace cryptonote
|
||||||
if (prune_blockchain)
|
if (prune_blockchain)
|
||||||
{
|
{
|
||||||
// display a message if the blockchain is not pruned yet
|
// 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...");
|
MGINFO("Pruning blockchain...");
|
||||||
CHECK_AND_ASSERT_MES(m_blockchain_storage.prune_blockchain(), false, "Failed to prune blockchain");
|
CHECK_AND_ASSERT_MES(m_blockchain_storage.prune_blockchain(), false, "Failed to prune blockchain");
|
||||||
|
|
Loading…
Reference in a new issue