File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1408,11 +1408,10 @@ func (b *Builder) processUpdate(msg interface{},
1408
1408
// check if we already have the most up-to-date information for
1409
1409
// that edge. If this message has a timestamp not strictly
1410
1410
// newer than what we already know of we can exit early.
1411
- switch {
1411
+ switch msg . ChannelFlags & lnwire . ChanUpdateDirection {
1412
1412
// A flag set of 0 indicates this is an announcement for the
1413
1413
// "first" node in the channel.
1414
- case msg .ChannelFlags & lnwire .ChanUpdateDirection == 0 :
1415
-
1414
+ case 0 :
1416
1415
// Ignore outdated message.
1417
1416
if ! edge1Timestamp .Before (msg .LastUpdate ) {
1418
1417
return NewErrf (ErrOutdated , "Ignoring " +
@@ -1423,8 +1422,7 @@ func (b *Builder) processUpdate(msg interface{},
1423
1422
1424
1423
// Similarly, a flag set of 1 indicates this is an announcement
1425
1424
// for the "second" node in the channel.
1426
- case msg .ChannelFlags & lnwire .ChanUpdateDirection == 1 :
1427
-
1425
+ case 1 :
1428
1426
// Ignore outdated message.
1429
1427
if ! edge2Timestamp .Before (msg .LastUpdate ) {
1430
1428
return NewErrf (ErrOutdated , "Ignoring " +
You can’t perform that action at this time.
0 commit comments