#37148 [BC-Insight] `wantedPeerDials()` branch will never be executed
Description
Description
func (s *Service) listenForNewNodes() {
//..
if s.isPeerAtLimit(false /* inbound */) {
// Pause the main loop for a period to stop looking
// for new peers.
log.Trace("Not looking for peers, at peer limit")
time.Sleep(pollingPeriod)
continue
}
wantedCount := s.wantedPeerDials()
if wantedCount == 0 {
log.Trace("Not looking for peers, at peer limit")
time.Sleep(pollingPeriod)
continue
}
//..
}Proof of Concept
Proof of Concept
Recommended Patch
Previous#38557 [BC-Insight] Function `IsPush()` Misses Opcode PUSH0Next#38920 [BC-Medium] teku remote DoS
Was this helpful?