From 5e216b8bf96158a0f124db5e8fd34f8755155afb Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 20 Feb 2017 22:06:16 -0800 Subject: [PATCH] peer: properly use block height when logging channel closure height --- peer.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/peer.go b/peer.go index 2e0cbbf3..33d39181 100644 --- a/peer.go +++ b/peer.go @@ -337,6 +337,8 @@ func (p *peer) Stop() error { return nil } +// TODO(roasbeef): add WaitForShutdown method + // Disconnect terminates the connection with the remote peer. Additionally, a // signal is sent to the server and htlcSwitch indicating the resources // allocated to the peer can now be cleaned up. @@ -914,8 +916,8 @@ func (p *peer) handleLocalClose(req *closeLinkReq) { // The channel has been closed, remove it from any // active indexes, and the database state. - peerLog.Infof("ChannelPoint(%v) is now "+ - "closed at height %v", req.chanPoint, height) + peerLog.Infof("ChannelPoint(%v) is now closed at "+ + "height %v", req.chanPoint, height.BlockHeight) if err := wipeChannel(p, channel); err != nil { req.err <- err return