htlcswitch: update link to adhere to new channeldb API's

This commit is contained in:
Olaoluwa Osuntokun 2017-11-10 14:58:28 -08:00
parent ea334e4d47
commit a48ceac98f
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -1007,9 +1007,9 @@ func (l *channelLink) UpdateForwardingPolicy(newPolicy ForwardingPolicy) {
func (l *channelLink) Stats() (uint64, lnwire.MilliSatoshi, lnwire.MilliSatoshi) { func (l *channelLink) Stats() (uint64, lnwire.MilliSatoshi, lnwire.MilliSatoshi) {
snapshot := l.channel.StateSnapshot() snapshot := l.channel.StateSnapshot()
return snapshot.NumUpdates, return snapshot.ChannelCommitment.CommitHeight,
snapshot.TotalMilliSatoshisSent, snapshot.TotalMSatSent,
snapshot.TotalMilliSatoshisReceived snapshot.TotalMSatReceived
} }
// String returns the string representation of channel link. // String returns the string representation of channel link.