Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 2: [PATCH 02/17] feat(policy): preserve Roots parsing and local transaction checks

src/test/fuzz/transaction.cpp

Before: src/test/fuzz/transaction.cpp · After: src/test/fuzz/transaction.cpp

File metadata
index 8f9c94266661a0cf30a8bd6624b98ac8104b71de..c506b8635324d2bd03aa7cf0c241b218d9663eba 100644

Download original patch · Release notes

Diff rows 1–9 of 9. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

src/test/fuzz/transaction.cpp CHANGED
@@ -90,6 +90,9 @@ FUZZ_TARGET(transaction, .init = initialize_transaction)
90
90
  const CCoinsViewCache coins_view_cache(&coins_view);
91
91
  (void)AreInputsStandard(tx, coins_view_cache);
92
92
  (void)IsWitnessStandard(tx, coins_view_cache);
93
+ // Carrier recognition and budget discovery are local admission helpers.
94
+ // Exercise their script/witness parsing under the same hostile transaction input.
95
+ (void)DatacarrierBytes(tx, coins_view_cache);
93
96
 
94
97
  if (tx.ComputeTotalSize() < 250'000) { // Avoid high memory usage (with msan) due to json encoding
95
98
  {