[trivial] Log calls to getblocktemplate #10162

pull jnewbery wants to merge 1 commits into bitcoin:master from jnewbery:loggetblocktemplatecalls changing 1 files +1 −3
  1. jnewbery commented at 2:42 PM on April 6, 2017: member

    We don't log when loggetblocktemplate() is called.

    This is what any other method looks like when it's called:

    2017-04-06 14:34:48 Received a POST request for / from 127.0.0.1:37080
    2017-04-06 14:34:48 ThreadRPCServer method=help
    

    and getblocktemplate:

    2017-04-06 14:35:02 Received a POST request for / from 127.0.0.1:37088
    

    This is a holdover from when getwork was introduced here: https://github.com/bitcoin/bitcoin/commit/776d0f34595fd616129d4816a337662ff39de7c6#diff-86eca98b63dcc6ac488efdc7de47be31L1421

    There's no reason not to log getblocktemplate(). It's annoying not to see the log during testing/debugging.

  2. Log calls to getblocktemplate 1352092dbd
  3. sdaftuar commented at 2:48 PM on April 6, 2017: member

    utACK, though I also have no idea why these were being omitted in the first place.

  4. luke-jr commented at 4:22 PM on April 6, 2017: member

    Mostly because of the frequency for mining nodes.

  5. jnewbery commented at 5:15 PM on April 6, 2017: member

    Mostly because of the frequency for mining nodes.

    Thanks for clarifying. In that case, I think this change is safe (and useful). They'll already be logging the Received a Post request for / event. Adding a event that logs which rpc was called won't cause too much additional logging.

  6. jonasschnelli added the label Docs and Output on Apr 6, 2017
  7. jonasschnelli commented at 6:21 PM on April 6, 2017: contributor

    utACK 1352092dbd5c59cb6460ed0cc5890271acf6efef

  8. laanwj commented at 7:01 PM on April 6, 2017: member

    Mostly because of the frequency for mining nodes.

    Hmm any specific resaon mining nodes have debug=rpc on? Or is this from before debug was categorized?

  9. jnewbery commented at 7:24 PM on April 6, 2017: member
  10. fanquake commented at 5:31 AM on April 7, 2017: member

    utACK 1352092

  11. paveljanik commented at 5:47 AM on April 7, 2017: contributor

    ACK 1352092

  12. laanwj merged this on Apr 7, 2017
  13. laanwj closed this on Apr 7, 2017

  14. laanwj referenced this in commit a3a2160b66 on Apr 7, 2017
  15. PastaPastaPasta referenced this in commit 096e7aead6 on May 21, 2019
  16. PastaPastaPasta referenced this in commit b4630f13e8 on May 21, 2019
  17. PastaPastaPasta referenced this in commit b85dbcbf35 on May 22, 2019
  18. PastaPastaPasta referenced this in commit 87c5501259 on May 22, 2019
  19. PastaPastaPasta referenced this in commit 3c658c0209 on May 22, 2019
  20. PastaPastaPasta referenced this in commit 5cb85dda3f on May 22, 2019
  21. markblundeberg referenced this in commit d16d7f9d81 on Jun 21, 2019
  22. jtoomim referenced this in commit 2ca84cfe90 on Jun 29, 2019
  23. DrahtBot 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