From 11426f6557ac09489d5e13bf3b9d94fbd5073c8e Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 13 Jul 2023 14:30:30 -0600 Subject: [PATCH] Move CaptureMessageToFile() declaration from header to implementation --- src/net.cpp | 9 +++++---- src/net.h | 6 ------ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/net.cpp b/src/net.cpp index e8567348f66..ee4faeed9fd 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2915,10 +2915,11 @@ uint64_t CConnman::CalculateKeyedNetGroup(const CAddress& address) const return GetDeterministicRandomizer(RANDOMIZER_ID_NETGROUP).Write(vchNetGroup.data(), vchNetGroup.size()).Finalize(); } -void CaptureMessageToFile(const CAddress& addr, - const std::string& msg_type, - Span data, - bool is_incoming) +// Dump binary message to file, with timestamp. +static void CaptureMessageToFile(const CAddress& addr, + const std::string& msg_type, + Span data, + bool is_incoming) { // Note: This function captures the message at the time of processing, // not at socket receive/send time. diff --git a/src/net.h b/src/net.h index e26bf523e8b..1c2b60a30f3 100644 --- a/src/net.h +++ b/src/net.h @@ -1221,12 +1221,6 @@ private: friend struct ConnmanTestMsg; }; -/** Dump binary message to file, with timestamp */ -void CaptureMessageToFile(const CAddress& addr, - const std::string& msg_type, - Span data, - bool is_incoming); - /** Defaults to `CaptureMessageToFile()`, but can be overridden by unit tests. */ extern std::function