Skip to content

Commit

Permalink
peer: Minor summary debug log cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh committed Apr 26, 2023
1 parent e151eb8 commit 768aefe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions peer/log.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2015-2016 The btcsuite developers
// Copyright (c) 2016-2021 The Decred developers
// Copyright (c) 2016-2023 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand Down Expand Up @@ -161,9 +161,8 @@ func messageSummary(msg wire.Message) string {
return fmt.Sprintf("types %v", msg.Types)

case *wire.MsgInitState:
return fmt.Sprintf("blockHashes %d, voteHashes %d, tspendHashes %d",
len(msg.BlockHashes), len(msg.VoteHashes),
len(msg.TSpendHashes))
return fmt.Sprintf("blocks %d, votes %d, treasury spends %d",
len(msg.BlockHashes), len(msg.VoteHashes), len(msg.TSpendHashes))
}

// No summary for other messages.
Expand Down

0 comments on commit 768aefe

Please sign in to comment.