mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-07 19:30:46 +02:00
Merge branch '0-19-2-branch-rc1-9911' into 0-19-2-branch-rc1
This commit is contained in:
@@ -3624,6 +3624,9 @@ func (l *channelLink) updateChannelFee(ctx context.Context,
|
|||||||
// the switch.
|
// the switch.
|
||||||
func (l *channelLink) processRemoteSettleFails(fwdPkg *channeldb.FwdPkg) {
|
func (l *channelLink) processRemoteSettleFails(fwdPkg *channeldb.FwdPkg) {
|
||||||
if len(fwdPkg.SettleFails) == 0 {
|
if len(fwdPkg.SettleFails) == 0 {
|
||||||
|
l.log.Trace("fwd package has no settle/fails to process " +
|
||||||
|
"exiting early")
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3728,6 +3731,13 @@ func (l *channelLink) processRemoteSettleFails(fwdPkg *channeldb.FwdPkg) {
|
|||||||
//
|
//
|
||||||
//nolint:funlen
|
//nolint:funlen
|
||||||
func (l *channelLink) processRemoteAdds(fwdPkg *channeldb.FwdPkg) {
|
func (l *channelLink) processRemoteAdds(fwdPkg *channeldb.FwdPkg) {
|
||||||
|
// Exit early if there are no adds to process.
|
||||||
|
if len(fwdPkg.Adds) == 0 {
|
||||||
|
l.log.Trace("fwd package has no adds to process exiting early")
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
l.log.Tracef("processing %d remote adds for height %d",
|
l.log.Tracef("processing %d remote adds for height %d",
|
||||||
len(fwdPkg.Adds), fwdPkg.Height)
|
len(fwdPkg.Adds), fwdPkg.Height)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user