qa: timelock coinbase transactions created in fuzz targets

This commit is contained in:
Antoine Poinsot
2025-04-21 14:47:39 -04:00
parent 9c94069d8b
commit c76dbe9b8b
3 changed files with 8 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ FUZZ_TARGET(utxo_total_supply)
// Replace OP_FALSE with OP_TRUE
{
CMutableTransaction tx{*block->vtx.back()};
tx.nLockTime = 0; // Use the same nLockTime for all as we want to duplicate one of them.
tx.vout.at(0).scriptPubKey = CScript{} << OP_TRUE;
block->vtx.back() = MakeTransactionRef(tx);
}