Skip to content

backport: Merge bitcoin#28172, 28649, 28464#7186

Draft
vijaydasmp wants to merge 2 commits intodashpay:developfrom
vijaydasmp:March_2026_4
Draft

backport: Merge bitcoin#28172, 28649, 28464#7186
vijaydasmp wants to merge 2 commits intodashpay:developfrom
vijaydasmp:March_2026_4

Conversation

@vijaydasmp
Copy link
Copy Markdown

Bitcoin Backporting work

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 28, 2026

✅ No Merge Conflicts Detected

This PR currently has no conflicts with other open PRs.

@vijaydasmp vijaydasmp force-pushed the March_2026_4 branch 5 times, most recently from a0ab1c7 to 8d656d4 Compare March 4, 2026 08:28
@vijaydasmp vijaydasmp changed the title backport: Merge bitcoin#28172, 28649, 25065, 28224, 28464 backport: Merge bitcoin#28172, 28649, 28464 Mar 6, 2026
…erals to Parse{Hash,Hex}

bb91131 doc: remove out-of-date external link in src/util/strencodings.h (Jon Atack)
7d494a4 refactor: use string_view to pass string literals to Parse{Hash,Hex} (Jon Atack)

Pull request description:

  as `string_view` is optimized to be trivially copiable, whereas the current code creates a `std::string` copy at each call.

  These utility methods are called by quite a few RPCs and tests, as well as by each other.

  ```
  $ git grep "ParseHashV\|ParseHashO\|ParseHexV\|ParseHexO" | wc -l
  61
  ```

  Also remove an out-of-date external link.

ACKs for top commit:
  jonatack:
    Rebased per `git range-diff c9273f6 b94581a bb91131` for an include header from the merge of bitcoin#28230. Should be trivial to re-ACK.
  maflcko:
    lgtm ACK bb91131
  ns-xvrn:
    ACK bitcoin@bb91131
  achow101:
    ACK bb91131
  brunoerg:
    crACK bb91131

Tree-SHA512: 9734fe022c9e43fd93c23a917770d332dbbd3132c80a234059714c32faa6469391e59349954749fc86c4ef0b18d5fd99bf8f4b7b82d9f799943799c1253272ae
df69b22 doc: improve documentation around connection limit maximums (Amiti Uttarwar)
adc171e scripted-diff: Rename connection limit variables (Amiti Uttarwar)
e9fd9c0 net: add m_max_inbound to connman (Amiti Uttarwar)
c25e0e0 net, refactor: move calculations for connection type limits into connman (Amiti Uttarwar)

Pull request description:

  This is joint work with amitiuttarwar.

  This has the first few commits of bitcoin#28463. It is not strictly a prerequisite for that, but has changes that in our opinion make sense on their own.
  It improves the handling of maximum numbers for different connection types (that are set during init and don’t change after) by:
  * moving all calculations into one place, `CConnMan::Init()`. Before, they were dispersed between `Init`, `CConnman::Init` and other parts of `CConnman`, resulting in some duplicated test code.
  * removing the possibility of having a negative maximum of inbound connections, which is hard to argue about
  * renaming of variables and doc improvements

ACKs for top commit:
  amitiuttarwar:
    co-author review ACK df69b22
  naumenkogs:
    ACK df69b22
  achow101:
    ACK df69b22

Tree-SHA512: 913d56136bc1df739978de50db67302f88bac2a9d34748ae96763288d97093e998fc0f94f9b6eff12867712d7e86225af6128f4170bf2b5b8ab76f024870a22c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants