Skip to content

Commit 3ed5123

Browse files
committed
Fix sweeptimelock
1 parent 8292ef8 commit 3ed5123

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/chantools/sweeptimelock.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ func sweepTimeLock(extendedKey *hdkeychain.ExtendedKey, apiURL string,
8484

8585
for _, entry := range entries {
8686
// Skip entries that can't be swept.
87-
if entry.ClosingTX == nil ||
88-
entry.ForceClose == nil ||
89-
entry.ClosingTX.AllOutsSpent ||
87+
if entry.ForceClose == nil ||
88+
(entry.ClosingTX != nil && entry.ClosingTX.AllOutsSpent) ||
9089
entry.LocalBalance == 0 {
9190

9291
log.Infof("Not sweeping %s, info missing or all spent",

0 commit comments

Comments
 (0)