Skip to content

Commit 028959f

Browse files
committed
kvdb+watchtower: fix unreachable code
1 parent 1422df2 commit 028959f

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

docs/release-notes/release-notes-0.18.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@
104104
which with the default fee allocation in place will eventually lead to the
105105
downsizing to the fee floor (1 sat/vByte) in the worst case.
106106

107+
* [Removed](https://github.com/lightningnetwork/lnd/pull/8577) some unreachable code
108+
107109
# New Features
108110
## Functional Enhancements
109111

@@ -424,6 +426,7 @@ bitcoin peers' feefilter values into account](https://github.com/lightningnetwor
424426
* Slyghtning
425427
* Tee8z
426428
* Turtle
429+
* Hao Wang
427430
* w3irdrobot
428431
* Yong Yu
429432
* Ziggie

kvdb/backend.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,4 @@ func GetTestBackend(path, name string) (Backend, func(), error) {
301301
}
302302
return db, empty, nil
303303
}
304-
305-
return nil, nil, fmt.Errorf("unknown backend")
306304
}

watchtower/wtclient/session_negotiator.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,6 @@ tryNextCandidate:
333333

334334
goto retryWithBackoff
335335
}
336-
337-
// Success.
338-
return
339336
}
340337
}
341338

@@ -393,8 +390,6 @@ func (n *sessionNegotiator) createSession(tower *Tower, keyIndex uint32) error {
393390
return nil
394391
}
395392
}
396-
397-
return ErrFailedNegotiation
398393
}
399394

400395
// tryAddress executes a single create session dance using the given address.

0 commit comments

Comments
 (0)