p2p: Split network logging into two categories #24247

pull anshu-khare-design wants to merge 0 commits into bitcoin:master from anshu-khare-design:issue_20576 changing 0 files +0 −0
  1. anshu-khare-design commented at 10:26 AM on February 3, 2022: none

    This PR is to resolve issue 20576. It focuses on introducing different levels of net logging. As a starting point, as mentioned in the issue #20576 , it creates separate lower-frequency, important peer-level events (netpeers) from very high-frequency message-level passing (netmessages).

  2. laanwj added the label Utils/log/libs on Feb 3, 2022
  3. laanwj renamed this:
    Issue 20576
    p2p: Split network logging into two categories
    on Feb 3, 2022
  4. laanwj added the label P2P on Feb 3, 2022
  5. brunoerg commented at 12:00 PM on February 3, 2022: contributor

    Hi, @anshu-khare-design. Thanks for this. Some points:

    1. I think you might write a more appropriate commit message (maybe the same as the PR title)
    2. CI is failing because of rpc_miscfunctional test:
    # Test logging RPC returns the expected number of logging categories.
    assert_equal(len(node.logging()), 27)
    

    this assertion is failing because with this PR we have one more category, so, in total, 28. You should update this test as well.

  6. anshu-khare-design referenced this in commit f9f4d37fa2 on Feb 3, 2022
  7. brunoerg commented at 4:59 PM on February 3, 2022: contributor
  8. anshu-khare-design referenced this in commit bbb9a973ab on Feb 4, 2022
  9. anshu-khare-design commented at 12:19 AM on February 4, 2022: none

    Oops.. I think I did something wrong.. I first wrote

    $ git rebase -i HEAD~3 $ git pull origin issue_20576 (Since it was asking me to take a pull) $ git push origin issue_20576

  10. ghost commented at 1:08 AM on February 4, 2022: none

    @anshu-khare-design try this

    git reset --hard 133f73e86bd7c3114263500be2fb5090dd76b4bc
    
    git push origin +133f73e86bd7c3114263500be2fb5090dd76b4bc^:issue_20576
    
    git push origin 133f73e86bd7c3114263500be2fb5090dd76b4bc:issue_20576
    
    

    This will close the pull request, it will have 0 commits and you can start fresh in your fork repository

    Make all the changes in the code, do 1 commit and reopen pull request.

  11. DrahtBot commented at 3:55 AM on February 4, 2022: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #24230 (indexes: Stop using node internal types and locking cs_main, improve sync logic by ryanofsky)
    • #24178 (p2p: Respond to getheaders if we have sufficient chainwork by sdaftuar)
    • #24008 (assumeutxo: net_processing changes by jamesob)
    • #23604 (Use Sock in CNode by vasild)
    • #23443 (p2p: Erlay support signaling by naumenkogs)
    • #22778 (net processing: Reduce resource usage for inbound block-relay-only connections by jnewbery)
    • #22053 (refactor: Release cs_main before MaybeSendFeefilter by MarcoFalke)
    • #21160 (net/net processing: Move tx inventory into net_processing by jnewbery)
    • #20799 (net processing: Only support version 2 compact blocks by jnewbery)
    • #20726 (p2p: Add DISABLETX message for negotiating block-relay-only connections by sdaftuar)
    • #15606 (assumeutxo by jamesob)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  12. DrahtBot cross-referenced this on Feb 4, 2022 from issue indexes: Stop using node internal types and locking cs_main, improve sync logic by ryanofsky
  13. DrahtBot cross-referenced this on Feb 4, 2022 from issue p2p: Respond to getheaders if we have sufficient chainwork by sdaftuar
  14. DrahtBot added the label Needs rebase on Feb 4, 2022
  15. DrahtBot commented at 8:58 AM on February 4, 2022: contributor

    <!--cf906140f33d8803c4a75a2196329ecb-->

    🐙 This pull request conflicts with the target branch and needs rebase.

    <sub>Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".</sub>

  16. DrahtBot cross-referenced this on Feb 4, 2022 from issue assumeutxo: net_processing changes by jamesob
  17. DrahtBot cross-referenced this on Feb 4, 2022 from issue Use Sock in CNode by vasild
  18. DrahtBot cross-referenced this on Feb 4, 2022 from issue p2p: Erlay support signaling by naumenkogs
  19. DrahtBot cross-referenced this on Feb 4, 2022 from issue net processing: Reduce resource usage for inbound block-relay-only connections by jnewbery
  20. DrahtBot cross-referenced this on Feb 4, 2022 from issue refactor: Release cs_main before MaybeSendFeefilter by MarcoFalke
  21. DrahtBot cross-referenced this on Feb 4, 2022 from issue net/net processing: Move tx inventory into net_processing by jnewbery
  22. DrahtBot cross-referenced this on Feb 4, 2022 from issue net processing: Only support version 2 compact blocks by jnewbery
  23. DrahtBot cross-referenced this on Feb 4, 2022 from issue p2p: Add DISABLETX message for negotiating block-relay-only connections by sdaftuar
  24. DrahtBot cross-referenced this on Feb 4, 2022 from issue assumeutxo by jamesob
  25. brunoerg commented at 1:56 PM on February 5, 2022: contributor

    @prayank23 gave some tips. Feel free to ask for help whenever needed.

  26. anshu-khare-design closed this on Feb 5, 2022

  27. anshu-khare-design force-pushed on Feb 5, 2022
  28. anshu-khare-design referenced this in commit 0dba6126d5 on Feb 5, 2022
  29. fanquake commented at 11:22 PM on February 6, 2022: member

    Please don't open new PRs for the same change. (#24273).

  30. DrahtBot cross-referenced this on Feb 8, 2022 from issue validation: don't re-acquire cs_main during IBD in CChainState::IsInitialBlockDownload() by jonatack
  31. DrahtBot cross-referenced this on Feb 14, 2022 from issue Make all networking code mockable by vasild
  32. DrahtBot cross-referenced this on Feb 14, 2022 from issue net: fix GetListenPort() to derive the proper port by vasild
  33. DrahtBot cross-referenced this on Feb 24, 2022 from issue refactor: Move mutable globals cleared in `::UnloadBlockIndex` to `BlockManager` by dongcarl
  34. DrahtBot cross-referenced this on Mar 2, 2022 from issue blockman: Properly guard blockfile members by dongcarl
  35. bitcoin locked this on Feb 6, 2023

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:53 UTC