Correct logging AcceptBlock()->AcceptBlockHeader() #4887

pull rebroad wants to merge 1 commits into bitcoin:master from rebroad:CorrectLoggingAcceptBlockHeader changing 1 files +9 −9
  1. rebroad commented at 4:09 AM on September 10, 2014: contributor

    Fix logging messages to show correct function.

  2. BitcoinPullTester commented at 4:24 AM on September 10, 2014: none

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

  3. sipa commented at 8:41 AM on September 10, 2014: member

    ACK.

  4. laanwj commented at 8:53 AM on September 10, 2014: member

    If you're changing these anyway: please use __func__ and remove the (). Ie just

    return state.Invalid(error("%s : block is marked invalid", __func__), 0, "duplicate");
    

    This is more consistent with new code, and otherwise we'll have the same issue again when the function renamed or moves...

  5. Diapolo commented at 9:04 AM on September 10, 2014: none

    Ideally you also remove the space in front of :, I remember @sipa or @laanwj had told me that this is also better :).

  6. jgarzik commented at 1:29 AM on September 15, 2014: contributor

    Agree w/ @laanwj: use __func__ Make the code less fragile, easier to maintain.

    If you are changing the code, change it to be more durable against cut-n-paste, function renames and code movement across functions. __func__ does this.

  7. sipa commented at 2:05 AM on September 16, 2014: member

    +1 to __func__; it means we don't constantly break things when refactoring code

  8. rebroad force-pushed on Oct 2, 2014
  9. Correct logging AcceptBlock()->AcceptBlockHeader() 4bb30a1eb8
  10. rebroad force-pushed on Oct 2, 2014
  11. rebroad commented at 12:21 AM on October 3, 2014: contributor

    @jgarzik @sipa __func__s added

  12. jgarzik commented at 1:30 AM on October 3, 2014: contributor

    ut ACK

  13. sipa merged this on Oct 3, 2014
  14. sipa closed this on Oct 3, 2014

  15. sipa referenced this in commit 5ccd735d30 on Oct 3, 2014
  16. rebroad deleted the branch on Aug 8, 2016
  17. 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