fuzz: remove dead code from simplicity_tx.cpp

This commit is contained in:
Andrew Poelstra 2025-02-13 15:55:28 +00:00
parent 69c241592f
commit a2d24eff9e
No known key found for this signature in database
GPG key ID: C588D63CE41B97C1

View file

@ -2,7 +2,6 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <cstdio>
#include <span.h>
#include <primitives/transaction.h>
#include <script/sigcache.h>
@ -65,14 +64,6 @@ void initialize_simplicity_tx()
INPUT_ASSET_CONF.vchCommitment[0] = 0x0a;
}
void write_u32(FILE *fh, uint32_t val) {
unsigned char buf[4];
val = htole32(val);
memcpy(buf, &val, 4);
assert(fwrite(buf, 1, 4, fh) == 4);
}
FUZZ_TARGET_INIT(simplicity_tx, initialize_simplicity_tx)
{
simplicity_err error;