mirror of https://github.com/BTCPrivate/lnd.git
peer: properly use block height when logging channel closure height
This commit is contained in:
parent
75787b3e4d
commit
5e216b8bf9
6
peer.go
6
peer.go
|
@ -337,6 +337,8 @@ func (p *peer) Stop() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(roasbeef): add WaitForShutdown method
|
||||||
|
|
||||||
// Disconnect terminates the connection with the remote peer. Additionally, a
|
// Disconnect terminates the connection with the remote peer. Additionally, a
|
||||||
// signal is sent to the server and htlcSwitch indicating the resources
|
// signal is sent to the server and htlcSwitch indicating the resources
|
||||||
// allocated to the peer can now be cleaned up.
|
// 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
|
// The channel has been closed, remove it from any
|
||||||
// active indexes, and the database state.
|
// active indexes, and the database state.
|
||||||
peerLog.Infof("ChannelPoint(%v) is now "+
|
peerLog.Infof("ChannelPoint(%v) is now closed at "+
|
||||||
"closed at height %v", req.chanPoint, height)
|
"height %v", req.chanPoint, height.BlockHeight)
|
||||||
if err := wipeChannel(p, channel); err != nil {
|
if err := wipeChannel(p, channel); err != nil {
|
||||||
req.err <- err
|
req.err <- err
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue