"Potential stale tip detected" when deliberately not connected to peers #11608

issue dooglus opened this issue on November 4, 2017
  1. dooglus commented at 9:05 PM on November 4, 2017: contributor

    Running the master branch from yesterday, commit 2f959a58744d42859d74579220922e25ac3d2925, I see these in the logs when I'm running with -connect=0 and also when I have clicked to disable all network activity in bitcoin-qt:

    2017-11-04 20:43:43 Potential stale tip detected, will try using extra outbound peer (last tip update: 1846 seconds ago)
    2017-11-04 20:54:13 Potential stale tip detected, will try using extra outbound peer (last tip update: 2476 seconds ago)

    In both cases it's true that I likely have a stale tip, but that's the way I want it, and I don't want to try using extra outbound peers. In both cases I explicitly don't want any peers.

    As it turns out, no peer seems to actually be added, but the appearance of the debug message itself is disconcerting, and possibly misleading.

  2. TheBlueMatt commented at 10:27 PM on November 4, 2017: member

    Indeed, if you had normal outbound connections disabled (through -connect) then no additional connections will be made. Simplest would probably be to just change the text of the log to indicate that we are just informing our net layer to try a new peer if enabled.

  3. fanquake added the label P2P on Nov 4, 2017
  4. sdaftuar commented at 6:26 PM on November 7, 2017: member

    Yeah this is confusing. Suggestions for better log message here? The net interactions are surprisingly complicated... What we're doing is commandeering the feeler connection slot to be a regular outbound peer, which only has any effect if that part of the net logic hasn't been neutered (eg by a -connect or max connections setting or maybe other configs I haven't thought of).

  5. laanwj commented at 3:14 AM on November 8, 2017: member

    No suggestion for the message, though I'd propose moving messages like this about internal P2P behavior to the "net" category so they won't worry users who are not specifically debugging network issues.

  6. jarolrod commented at 4:12 AM on January 16, 2021: member

    This can be closed as it was fixed by: #14027

    Confirmed that this is no longer the case with bitcoind -connect=0 and bitcoin-qt with network turned off.

  7. MarcoFalke closed this on Jan 16, 2021

  8. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 00:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me