Skip to content

Commit 11426f6

Browse files
committed
Move CaptureMessageToFile() declaration from header to implementation
1 parent deccf1c commit 11426f6

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/net.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2915,10 +2915,11 @@ uint64_t CConnman::CalculateKeyedNetGroup(const CAddress& address) const
29152915
return GetDeterministicRandomizer(RANDOMIZER_ID_NETGROUP).Write(vchNetGroup.data(), vchNetGroup.size()).Finalize();
29162916
}
29172917

2918-
void CaptureMessageToFile(const CAddress& addr,
2919-
const std::string& msg_type,
2920-
Span<const unsigned char> data,
2921-
bool is_incoming)
2918+
// Dump binary message to file, with timestamp.
2919+
static void CaptureMessageToFile(const CAddress& addr,
2920+
const std::string& msg_type,
2921+
Span<const unsigned char> data,
2922+
bool is_incoming)
29222923
{
29232924
// Note: This function captures the message at the time of processing,
29242925
// not at socket receive/send time.

src/net.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,12 +1221,6 @@ class CConnman
12211221
friend struct ConnmanTestMsg;
12221222
};
12231223

1224-
/** Dump binary message to file, with timestamp */
1225-
void CaptureMessageToFile(const CAddress& addr,
1226-
const std::string& msg_type,
1227-
Span<const unsigned char> data,
1228-
bool is_incoming);
1229-
12301224
/** Defaults to `CaptureMessageToFile()`, but can be overridden by unit tests. */
12311225
extern std::function<void(const CAddress& addr,
12321226
const std::string& msg_type,

0 commit comments

Comments
 (0)