mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 00:13:37 +02:00
routing+discovery: uniform error codes in routing
This commit is contained in:
@@ -1062,13 +1062,19 @@ func (r *ChannelRouter) networkHandler() {
|
||||
update.msg,
|
||||
)
|
||||
if err != nil {
|
||||
switch err {
|
||||
case ErrVBarrierShuttingDown:
|
||||
switch {
|
||||
case IsError(
|
||||
err, ErrVBarrierShuttingDown,
|
||||
):
|
||||
update.err <- err
|
||||
case ErrParentValidationFailed:
|
||||
|
||||
case IsError(
|
||||
err, ErrParentValidationFailed,
|
||||
):
|
||||
update.err <- newErrf(
|
||||
ErrIgnored, err.Error(),
|
||||
)
|
||||
|
||||
default:
|
||||
log.Warnf("unexpected error "+
|
||||
"during validation "+
|
||||
|
Reference in New Issue
Block a user