Skip to content

Commit

Permalink
main: add logging if the node is pruned
Browse files Browse the repository at this point in the history
For debug purposes down the road, log that the node is pruned if it's
set to pruned.
  • Loading branch information
kcalvinalvin committed May 1, 2024
1 parent 689ac6b commit d65999e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2823,6 +2823,11 @@ func newServer(listenAddrs, agentBlacklist, agentWhitelist []string,
checkpoints = mergeCheckpoints(s.chainParams.Checkpoints, cfg.addCheckpoints)
}

// Log that the node is pruned.
if cfg.Prune != 0 {
btcdLog.Infof("Prune set to %d MiB", cfg.Prune)
}

// Create a new block chain instance with the appropriate configuration.
var err error
s.chain, err = blockchain.New(&blockchain.Config{
Expand Down

0 comments on commit d65999e

Please sign in to comment.