p2p: TryLowWorkHeadersSync follow-ups #26387

pull dergoegge wants to merge 2 commits into bitcoin:master from dergoegge:2022-10-tlwhs-doc-fixup changing 1 files +6 −11
  1. dergoegge commented at 10:41 AM on October 25, 2022: member
  2. [net processing] Fixup TryLowWorkHeadersSync comment e891aabf5a
  3. dergoegge cross-referenced this on Oct 25, 2022 from issue p2p: Handle IsContinuationOfLowWorkHeadersSync return value correctly when new headers sync is started by dergoegge
  4. fanquake added the label Docs on Oct 25, 2022
  5. mzumsande commented at 2:13 PM on October 25, 2022: contributor

    utACK e891aabf5a4992a65b9c5ae8606f8dd08515b310

  6. maflcko commented at 3:14 PM on October 25, 2022: member

    Maybe also address #26355 (review) ?

  7. [net processing] Simplify use of IsContinuationOfLowWorkHeadersSync in TryLowWorkHeaderSync
    `m_headers_sync` is already reset in IsContinuationOfLowWorkHeadersSync
    if there is a failure, so there is no need to also reset in
    TryLowWorkHeaderSync.
    784b023191
  8. dergoegge renamed this:
    doc: Fixup TryLowWorkHeadersSync comment (#26355 follow-up)
    p2p: #26355 follow-ups
    on Oct 26, 2022
  9. dergoegge commented at 10:16 AM on October 26, 2022: member

    Maybe also address #26355 (review) ?

    Added a commit for that comment.

  10. hernanmarino approved
  11. hernanmarino commented at 10:59 AM on October 27, 2022: contributor

    ACK 784b02319128988038d4bd82f05736be22f14ee9

  12. brunoerg approved
  13. brunoerg commented at 12:06 PM on October 27, 2022: contributor

    crACK 784b02319128988038d4bd82f05736be22f14ee9

  14. maflcko renamed this:
    p2p: #26355 follow-ups
    p2p: TryLowWorkHeadersSync follow-ups
    on Oct 28, 2022
  15. maflcko removed the label Docs on Oct 28, 2022
  16. DrahtBot added the label P2P on Oct 28, 2022
  17. fanquake requested review from mzumsande on Oct 28, 2022
  18. mzumsande commented at 3:24 PM on October 31, 2022: contributor

    ACK 784b02319128988038d4bd82f05736be22f14ee9

    I checked that IsContinuationOfLowWorkHeadersSync calls ProcessNextHeaders, which sets the state to FINAL if unsuccessful, resulting in IsContinuationOfLowWorkHeadersSync doing the cleanup of m_headers_sync and m_headers_presync_stats, so it is correct to remove the same cleanup in TryLowWorkHeadersSync.

  19. fanquake referenced this in commit 43e813cab2 on Oct 31, 2022
  20. fanquake commented at 3:38 PM on October 31, 2022: member

    This has been merged.

  21. fanquake closed this on Oct 31, 2022

  22. sidhujag referenced this in commit 57f8033b7c on Oct 31, 2022
  23. bitcoin locked this on Oct 31, 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