Files
bitcoin/src/test/fuzz
merge-script ddb94fd3e1 Merge bitcoin/bitcoin#35289: fuzz: Fix timeout in txorphan
004a7e3cfb 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](3cab711d69/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](3cab711d69/src/net_processing.cpp (L2090)).

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

Tree-SHA512: 465504402358e1bed629104b21e05301139f1590884de21e77d566a45e422eef6d4380c5714692f33f5398e4e299b8c9f84b82f58c56a98e410c5c841184aee5
2026-05-14 17:25:50 +02:00
..
2026-03-10 11:01:37 +01:00
2026-02-17 21:40:46 +05:30
2026-03-10 11:01:37 +01:00
2026-03-10 11:01:37 +01:00
2026-03-10 11:01:37 +01:00
2026-04-29 14:51:47 -07:00
2026-03-10 11:01:37 +01:00
2026-03-10 11:01:37 +01:00