25 TransactionError::MISSING_INPUTS,
26 TransactionError::ALREADY_IN_UTXO_SET,
27 TransactionError::MEMPOOL_REJECTED,
28 TransactionError::MEMPOOL_ERROR,
29 TransactionError::MAX_FEE_EXCEEDED,
40 const TransactionError transaction_error = fuzzed_data_provider.PickValueInArray(ALL_TRANSACTION_ERROR);
49 const std::optional<OutputType> parsed =
ParseOutputType(output_type_string);
51 assert(output_type == parsed.value());
52 (void)
ParseOutputType(fuzzed_data_provider.ConsumeRandomLengthString(64));
56 const std::vector<uint8_t> bytes_decoded =
BitsToBytes(bits);
57 assert(bytes == bytes_decoded);
RPCErrorCode RPCErrorFromTransactionError(TransactionError terr)
is a home for simple string functions returning descriptive messages that are used in RPC and GUI int...
std::string StringForFeeEstimateHorizon(FeeEstimateHorizon horizon)
std::vector< unsigned char > BitsToBytes(const std::vector< bool > &bits)
std::vector< B > ConsumeRandomLengthByteVector(FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length=std::nullopt) noexcept
static constexpr auto OUTPUT_TYPES
bilingual_str TransactionErrorString(const TransactionError err)
FUZZ_TARGET(kitchen_sink)
static constexpr auto ALL_FEE_ESTIMATE_HORIZONS
std::optional< OutputType > ParseOutputType(const std::string &type)
std::vector< bool > BytesToBits(const std::vector< unsigned char > &bytes)
const std::string & FormatOutputType(OutputType type)
UniValue JSONRPCTransactionError(TransactionError terr, const std::string &err_string)
is a home for public enum and struct type definitions that are used by internally by node code...