Skip to content

Commit b1cf61a

Browse files
committed
Update fee after channel becomes active
1 parent c34c042 commit b1cf61a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

htlcswitch/link.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,9 @@ func (l *channelLink) Start() error {
533533
}()
534534
}
535535

536-
l.updateFeeTimer = time.NewTimer(l.randomFeeUpdateTimeout())
536+
// this timer will fire immediately after the channel is ready
537+
// and it will reset to a random interval after that
538+
l.updateFeeTimer = time.NewTimer(0)
537539

538540
l.wg.Add(1)
539541
go l.htlcManager()

0 commit comments

Comments
 (0)