Only need to subtract 1 (originally time was in seconds). #4828

pull rebroad wants to merge 1 commits into bitcoin:master from rebroad:AskforTime changing 1 files +1 −1
  1. rebroad commented at 3:52 AM on September 3, 2014: contributor

    #3514 changed the time used with askfors from seconds to milliseconds but the change introduced an assumption that the time needed to be reduced by 1 second, when it fact it was the number that needed to be reduced by 1.

  2. Only need to subtract 1 (originally time was in seconds). 469f440924
  3. BitcoinPullTester commented at 4:15 AM on September 3, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4828_469f440924f120f34c6e065d236e8ca230456445/ 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.

  4. TheBlueMatt commented at 6:32 AM on September 3, 2014: contributor

    Can you also add a comment to explain why the -1 is there to begin with?

  5. rebroad commented at 6:46 AM on September 3, 2014: contributor

    @TheBlueMatt I used to understand why the -1 was there long ago, but I've lost the memory of why it was needed now... I'd have to relook at the code from years ago to work it out.

  6. laanwj cross-referenced this on Sep 4, 2014 from issue net: Better askfor request management by laanwj
  7. laanwj commented at 9:29 AM on September 10, 2014: member

    Closing in favor of #4831 which does away with this voodoo.

  8. laanwj closed this on Sep 10, 2014

  9. rebroad cross-referenced this on Mar 8, 2016 from issue Only need to subtract 1 (originally nNow was in seconds). by rebroad
  10. bitcoin 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-05-20 06:55 UTC