mirror of
https://github.com/monero-project/monero.git
synced 2025-02-13 11:43:40 +02:00
Merge pull request #5578
b7a96a08
core: update pruning if using --prune-blockchain on a pruned blockchain (moneromooo-monero)
This commit is contained in:
commit
9a2883266c
@ -675,9 +675,15 @@ namespace cryptonote
|
|||||||
{
|
{
|
||||||
// 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_current_blockchain_height() > 1 && !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");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CHECK_AND_ASSERT_MES(m_blockchain_storage.update_blockchain_pruning(), false, "Failed to update blockchain pruning");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return load_state_data();
|
return load_state_data();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user