mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-17 22:24:21 +01:00
Merge pull request #5133 from wpaulino/routing-validation-cancel-deps
discovery+routing: cancel dependent jobs if parent validation fails
This commit is contained in:
@@ -992,7 +992,8 @@ func (r *ChannelRouter) networkHandler() {
|
||||
update.msg,
|
||||
)
|
||||
if err != nil {
|
||||
if err != ErrVBarrierShuttingDown {
|
||||
if err != ErrVBarrierShuttingDown &&
|
||||
err != ErrParentValidationFailed {
|
||||
log.Warnf("unexpected error "+
|
||||
"during validation "+
|
||||
"barrier shutdown: %v",
|
||||
@@ -1010,7 +1011,11 @@ func (r *ChannelRouter) networkHandler() {
|
||||
|
||||
// If this message had any dependencies, then
|
||||
// we can now signal them to continue.
|
||||
validationBarrier.SignalDependants(update.msg)
|
||||
allowDependents := err == nil ||
|
||||
IsError(err, ErrIgnored, ErrOutdated)
|
||||
validationBarrier.SignalDependants(
|
||||
update.msg, allowDependents,
|
||||
)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user