Move CaptureMessageToFile() declaration from header to implementation

This commit is contained in:
Jon Atack committed 2023-07-19 11:49:16 -06:00
1 parent deccf1c484
commit 11426f6557
2 files changed
+5 -10

No files matched your search

+5 -4
View File
@@ -2915,10 +2915,11 @@ uint64_t CConnman::CalculateKeyedNetGroup(const CAddress& address) const
return GetDeterministicRandomizer(RANDOMIZER_ID_NETGROUP).Write(vchNetGroup.data(), vchNetGroup.size()).Finalize(); return GetDeterministicRandomizer(RANDOMIZER_ID_NETGROUP).Write(vchNetGroup.data(), vchNetGroup.size()).Finalize();
} }
void CaptureMessageToFile(const CAddress& addr, // Dump binary message to file, with timestamp.
const std::string& msg_type, static void CaptureMessageToFile(const CAddress& addr,
Span<const unsigned char> data, const std::string& msg_type,
bool is_incoming) Span<const unsigned char> data,
bool is_incoming)
{ {
// Note: This function captures the message at the time of processing, // Note: This function captures the message at the time of processing,
// not at socket receive/send time. // not at socket receive/send time.
-6
View File
@@ -1221,12 +1221,6 @@ private:
friend struct ConnmanTestMsg; friend struct ConnmanTestMsg;
}; };
/** Dump binary message to file, with timestamp */
void CaptureMessageToFile(const CAddress& addr,
const std::string& msg_type,
Span<const unsigned char> data,
bool is_incoming);
/** Defaults to `CaptureMessageToFile()`, but can be overridden by unit tests. */ /** Defaults to `CaptureMessageToFile()`, but can be overridden by unit tests. */
extern std::function<void(const CAddress& addr, extern std::function<void(const CAddress& addr,
const std::string& msg_type, const std::string& msg_type,