From a48ceac98fb42f6ce02f7c6972103c6f1af05254 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 10 Nov 2017 14:58:28 -0800 Subject: [PATCH] htlcswitch: update link to adhere to new channeldb API's --- htlcswitch/link.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htlcswitch/link.go b/htlcswitch/link.go index d2980750..65201198 100644 --- a/htlcswitch/link.go +++ b/htlcswitch/link.go @@ -1007,9 +1007,9 @@ func (l *channelLink) UpdateForwardingPolicy(newPolicy ForwardingPolicy) { func (l *channelLink) Stats() (uint64, lnwire.MilliSatoshi, lnwire.MilliSatoshi) { snapshot := l.channel.StateSnapshot() - return snapshot.NumUpdates, - snapshot.TotalMilliSatoshisSent, - snapshot.TotalMilliSatoshisReceived + return snapshot.ChannelCommitment.CommitHeight, + snapshot.TotalMSatSent, + snapshot.TotalMSatReceived } // String returns the string representation of channel link.