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