Open
Description
The HighestChanID
function is used to determine the highest SCID that we know of when syncing gossip with another peer. If genChanRangeQuery
calls it outside of a historical query and a zero-conf SCID exists in the database, it should cause an underflow when the alias SCID height is subtracted from our best block. This would then get cast to a uint32
and would mean we send a very high number_of_blocks
value to the peer.
Lines 925 to 932 in d9febbb