9 #include <blockfilter.h>
47 static const auto testing_setup = MakeNoLogFileContext<>();
48 g_setup = testing_setup.get();
51 #define FUZZ_TARGET_DESERIALIZE(name, code) \
52 FUZZ_TARGET_INIT(name, initialize_deserialize) \
56 } catch (const invalid_fuzzing_input_exception&) { \
62 struct invalid_fuzzing_input_exception :
public std::exception {
85 if (protocol_version) {
92 }
catch (
const std::ios_base::failure&) {
93 throw invalid_fuzzing_input_exception();
98 }
catch (
const std::ios_base::failure&) {
99 throw invalid_fuzzing_input_exception();
104 template <
typename T>
204 g_setup->m_node.args->GetIntArg(
"-checkaddrman", 0));
297 auto toc = Using<TxOutCompression>(to);
Extended statistics about a CAddress.
Stochastic address manager.
Complete block filter struct as defined in BIP 157.
A CService with information about it as peer.
Undo information for a CBlock.
BloomFilter is a probabilistic filter which SPV clients provide so that we can filter the transaction...
Used to marshal pointers into hashes for db storage.
Fee rate in satoshis per kilovirtualbyte: CAmount / kvB.
Used to relay blocks as header + vector<merkle branch> to filtered nodes.
bool IsAddrV1Compatible() const
Check if the current object can be serialized in pre-ADDRv2/BIP155 format.
An outpoint - a combination of a transaction hash and an index n into its vout.
Data structure that represents a partial merkle tree.
An encapsulated public key.
Serialized script, used inside transaction inputs and outputs.
A combination of a network address (CNetAddr) and a (TCP) port.
An input of a transaction.
An output of a transaction.
Undo information for a CTransaction.
A Span is an object that can refer to a contiguous sequence of objects.
constexpr bool empty() const noexcept
AssertEqualAfterSerializeDeserialize(flat_file_pos)
BlockMerkleRoot(block, &mutated)
DeserializeFromFuzzingInput(buffer, addr_info)
#define FUZZ_TARGET_DESERIALIZE(name, code)
void initialize_deserialize()
#define T(expected, seed, data)
static constexpr int ADDRV2_FORMAT
A flag that is ORed into the protocol version to designate that addresses should be serialized in (un...
void Serialize(Stream &, char)=delete
Describes a place in the block chain to another node such that if the other node doesn't have the sam...
A structure for PSBTs which contains per output information.
A version of CTransaction with the PSBT format.
static const int INIT_PROTO_VERSION
initial proto version, to be increased after version/verack negotiation
static const int PROTOCOL_VERSION
network protocol versioning