peer: modify ReplyChannelRange log message
The message now shows the block range the reply spans, which is a lot more useful.
This commit is contained in:
parent
1bacdfb41e
commit
9a7f66f2f7
10
peer.go
10
peer.go
@ -1336,8 +1336,10 @@ func messageSummary(msg lnwire.Message) string {
|
||||
msg.Complete)
|
||||
|
||||
case *lnwire.ReplyChannelRange:
|
||||
return fmt.Sprintf("complete=%v, encoding=%v, num_chans=%v",
|
||||
msg.Complete, msg.EncodingType, len(msg.ShortChanIDs))
|
||||
return fmt.Sprintf("start_height=%v, end_height=%v, "+
|
||||
"num_chans=%v, encoding=%v", msg.FirstBlockHeight,
|
||||
msg.LastBlockHeight(), len(msg.ShortChanIDs),
|
||||
msg.EncodingType)
|
||||
|
||||
case *lnwire.QueryShortChanIDs:
|
||||
return fmt.Sprintf("chain_hash=%v, encoding=%v, num_chans=%v",
|
||||
@ -1345,8 +1347,8 @@ func messageSummary(msg lnwire.Message) string {
|
||||
|
||||
case *lnwire.QueryChannelRange:
|
||||
return fmt.Sprintf("chain_hash=%v, start_height=%v, "+
|
||||
"num_blocks=%v", msg.ChainHash, msg.FirstBlockHeight,
|
||||
msg.NumBlocks)
|
||||
"end_height=%v", msg.ChainHash, msg.FirstBlockHeight,
|
||||
msg.LastBlockHeight())
|
||||
|
||||
case *lnwire.GossipTimestampRange:
|
||||
return fmt.Sprintf("chain_hash=%v, first_stamp=%v, "+
|
||||
|
Loading…
Reference in New Issue
Block a user