mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-09 18:54:03 +02:00
htlcswitch: update link to adhere to new channeldb API's
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user