mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
core: update pruning if using --prune-blockchain on a pruned blockchain
Avoids a massive amount of spurious warnings if the last update before the daemon exited was a while ago and the daemon was syncing
This commit is contained in:
parent
19d4cbefe8
commit
baddb899f7
1 changed files with 7 additions and 1 deletions
|
@ -675,8 +675,14 @@ 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 a new issue