40 node.CloseSocketDisconnect();
44 node.CopyStats(stats);
47 const CNode* add_ref_node =
node.AddRef();
51 if (
node.GetRefCount() > 0) {
56 const std::optional<CService> service_opt = ConsumeDeserializable<CService>(fuzzed_data_provider);
60 node.SetAddrLocal(*service_opt);
65 node.ReceiveMsgBytes(b, complete);
69 (void)
node.GetAddrLocal();
71 (void)
node.GetLocalNonce();
72 const int ref_count =
node.GetRefCount();
74 (void)
node.GetCommonVersion();
77 (void)
node.HasPermission(net_permission_flags);
78 (void)
node.ConnectedThroughNetwork();
static const std::string MAIN
Chain name strings.
Information about a peer.
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
FUZZ_TARGET_INIT(net, initialize_net)
auto ConsumeNode(FuzzedDataProvider &fuzzed_data_provider, const std::optional< NodeId > &node_id_in=std::nullopt) noexcept
int64_t ConsumeTime(FuzzedDataProvider &fuzzed_data_provider, const std::optional< int64_t > &min, const std::optional< int64_t > &max) noexcept
WeakEnumType ConsumeWeakEnum(FuzzedDataProvider &fuzzed_data_provider, const WeakEnumType(&all_types)[size]) noexcept
std::vector< uint8_t > ConsumeRandomLengthByteVector(FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length=std::nullopt) noexcept
size_t CallOneOf(FuzzedDataProvider &fuzzed_data_provider, Callables... callables)
constexpr NetPermissionFlags ALL_NET_PERMISSION_FLAGS[]
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.