Skip to content

Commit

Permalink
feat(daemon): warn at pruning a prune node attempt (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy authored Aug 13, 2024
1 parent 58b0cf2 commit 8021824
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/daemon/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ func buildPruneCmd(parentCmd *cobra.Command) {
cmd.PrintLine()
cmd.PrintInfoMsgf("❌ The operation canceled.")
cmd.PrintLine()
} else if prunedCount == 0 {
cmd.PrintLine()
cmd.PrintInfoMsgf("⚠️ Your node is not passed the retention_days set in config or it's already a pruned node.")
cmd.PrintLine()
cmd.PrintInfoMsgf("Make sure you try to prune a node after retention_days specified in config.toml")
} else {
cmd.PrintLine()
cmd.PrintInfoMsgf("✅ Your node successfully pruned and changed to prune mode.")
Expand Down

0 comments on commit 8021824

Please sign in to comment.