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