23 static const auto testing_setup = MakeNoLogFileContext<>();
44 if (random_bytes.size() == 64) {
51 if (!random_bytes.empty()) {
int64_t CAmount
Amount in satoshis (Can be negative)
The basic transaction that is broadcasted on the network and contained in blocks.
std::vector< T > ConsumeBytes(size_t num_bytes)
T ConsumeIntegralInRange(T min, T max)
Valid signature cache, to avoid doing expensive ECDSA signature checking twice for every transaction ...
static constexpr TransactionSerParams TX_WITH_WITNESS
FUZZ_TARGET(script_sigcache,.init=initialize_script_sigcache)
void initialize_script_sigcache()
static constexpr size_t DEFAULT_SIGNATURE_CACHE_BYTES
A mutable version of CTransaction.
CAmount ConsumeMoney(FuzzedDataProvider &fuzzed_data_provider, const std::optional< CAmount > &max) noexcept
uint256 ConsumeUInt256(FuzzedDataProvider &fuzzed_data_provider) noexcept
std::vector< B > ConsumeRandomLengthByteVector(FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length=std::nullopt) noexcept
void SeedRandomStateForTest(SeedRand seedtype)
Seed the global RNG state for testing and log the seed value.
@ ZEROS
Seed with a compile time constant of zeros.
FuzzedDataProvider & fuzzed_data_provider