 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
39 node.CloseSocketDisconnect();
43 node.CopyStats(stats);
46 const CNode* add_ref_node =
node.AddRef();
50 if (
node.GetRefCount() > 0) {
55 const std::optional<CInv> inv_opt = ConsumeDeserializable<CInv>(fuzzed_data_provider);
59 node.AddKnownTx(inv_opt->hash);
65 const std::optional<CService> service_opt = ConsumeDeserializable<CService>(fuzzed_data_provider);
69 node.SetAddrLocal(*service_opt);
74 node.ReceiveMsgBytes(b, complete);
78 (void)
node.GetAddrLocal();
80 (void)
node.GetLocalNonce();
81 (void)
node.GetLocalServices();
82 const int ref_count =
node.GetRefCount();
84 (void)
node.GetCommonVersion();
87 (void)
node.HasPermission(net_permission_flags);
88 (void)
node.ConnectedThroughNetwork();
uint256 ConsumeUInt256(FuzzedDataProvider &fuzzed_data_provider) noexcept
FUZZ_TARGET_INIT(net, initialize_net)
Information about a peer.
constexpr NetPermissionFlags ALL_NET_PERMISSION_FLAGS[]
int64_t ConsumeTime(FuzzedDataProvider &fuzzed_data_provider, const std::optional< int64_t > &min, const std::optional< int64_t > &max) noexcept
size_t CallOneOf(FuzzedDataProvider &fuzzed_data_provider, Callables... callables)
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.
std::vector< uint8_t > ConsumeRandomLengthByteVector(FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length=std::nullopt) noexcept
auto ConsumeNode(FuzzedDataProvider &fuzzed_data_provider, const std::optional< NodeId > &node_id_in=std::nullopt) noexcept
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
static const std::string MAIN
Chain name strings.
WeakEnumType ConsumeWeakEnum(FuzzedDataProvider &fuzzed_data_provider, const WeakEnumType(&all_types)[size]) noexcept