Reset node #4921

pull rebroad wants to merge 2 commits into bitcoin:master from rebroad:ResetNodeId changing 1 files +6 −1
  1. rebroad commented at 11:27 AM on September 15, 2014: contributor

    When all connections are lost, we may as well reset the nodeid for logging and operational purposes, to avoid it getting excessively large. Also, start at 100 (makes searching the logs easier).

  2. Starting NodeId = 100 d63db6da38
  3. Reset NodeId to START_NODEID when all connections lost. 44eb246069
  4. BitcoinPullTester commented at 11:41 AM on September 15, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4921_44eb246069593a4d89b53b349a632e7edea11b01/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  5. laanwj commented at 2:58 PM on September 15, 2014: member

    makes searching the logs easier

    You could search for peer=1[^0-9] instead of peer=1.

    Reset NodeId to START_NODEID when all connections lost

    I'd - personally - prefer to maximize the time between reuse of node ids. Is there any concrete argument (apart from 'log aesthetics') for not letting it grow arbitrarily large?

  6. sipa commented at 1:11 AM on September 16, 2014: member

    NAK. This makes it harder to correlate different lines in the log across time.

  7. sipa closed this on Sep 16, 2014

  8. MarcoFalke locked this on Sep 8, 2021

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-22 18:15 UTC

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