Skip to content

Daily cherry pick#18

Merged
rustaceanrob merged 2 commits into
2140-dev:masterfrom
rustaceanrob:26-5-16-cp
May 16, 2026
Merged

Daily cherry pick#18
rustaceanrob merged 2 commits into
2140-dev:masterfrom
rustaceanrob:26-5-16-cp

Conversation

@rustaceanrob
Copy link
Copy Markdown
Member

No description provided.

sedited and others added 2 commits May 16, 2026 10:28
004a7e3 fuzz: Fix txorphan timeout by limiting block weight (marcofleon)

Pull request description:

  The `EraseForBlock` branch in the `txorphan` harness could produce a block with 1000 transactions in it, each with potentially up to 200,000 inputs, resulting in way too many [map lookups](https://github.com/bitcoin/bitcoin/blob/3cab711d69572431af78b0071fb721496f0241d7/src/node/txorphanage.cpp#L625). This was producing inputs that were taking 2 seconds or longer per iteration, which is too long.

  Fix by only adding transactions to the block up to the block weight limit. This matches production behavior, as `EraseForBlock` is only called on a newly [connected block](https://github.com/bitcoin/bitcoin/blob/3cab711d69572431af78b0071fb721496f0241d7/src/net_processing.cpp#L2090).

ACKs for top commit:
  maflcko:
    lgtm ACK 004a7e3
  instagibbs:
    ACK 004a7e3
  sedited:
    ACK 004a7e3

Tree-SHA512: 465504402358e1bed629104b21e05301139f1590884de21e77d566a45e422eef6d4380c5714692f33f5398e4e299b8c9f84b82f58c56a98e410c5c841184aee5
(cherry picked from commit ddb94fd)
…ig}` functions to `musig.{h,cpp}` module

8ba5f68 refactor, key: move `CreateMuSig2PartialSig` to `musig.{h,cpp}` module (Sebastian Falbesoner)
d087f26 refactor, key: move `CreateMuSig2Nonce` to `musig.{h,cpp}` module (Sebastian Falbesoner)
f36d89f key: add `GetSecp256k1SignContext` access function (w0xlt)

Pull request description:

  This PR is a follow-up of bitcoin#29675, see bitcoin#29675 (comment). It moves all MuSig2 functions that currently live in `CKey` and call secp256k1 musig module API functions (i.e. `secp256k1_musig_...`) to the `musig.{h,cpp}` module, as this seems to be a better place. For accessing the `secp256k1_context_signing` object from the outside, a new function `GetSecp256k1SignContext` is added in the third commit.

  As the patch is mostly move-only, it can be best reviewed via the git option `--color-moved=dimmed-zebra`

ACKs for top commit:
  achow101:
    ACK 8ba5f68
  w0xlt:
    reACK 8ba5f68
  rkrux:
    lgtm ACK 8ba5f68
  furszy:
    ACK 8ba5f68

Tree-SHA512: 95fcaa5d7a09037a0dce0053b8c640a7372a1251a2a3615c565f4dacc5aad5cf0ee8bfc43aa0d0def628465c16330d69f6ea9fcc07bbadc971863248f60d1878
(cherry picked from commit 379b9fb)
@rustaceanrob rustaceanrob merged commit a73da0b into 2140-dev:master May 16, 2026
2 of 6 checks passed
@rustaceanrob rustaceanrob deleted the 26-5-16-cp branch May 16, 2026 09:32
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.

3 participants