@ -3085,7 +3085,10 @@ uint64_t CConnman::CalculateKeyedNetGroup(const CAddress& ad) const
return GetDeterministicRandomizer ( RANDOMIZER_ID_NETGROUP ) . Write ( vchNetGroup . data ( ) , vchNetGroup . size ( ) ) . Finalize ( ) ;
}
void CaptureMessage ( const CAddress & addr , const std : : string & msg_type , const Span < const unsigned char > & data , bool is_incoming )
void CaptureMessageToFile ( const CAddress & addr ,
const std : : string & msg_type ,
const Span < const unsigned char > & data ,
bool is_incoming )
{
// Note: This function captures the message at the time of processing,
// not at socket receive/send time.
@ -3112,3 +3115,9 @@ void CaptureMessage(const CAddress& addr, const std::string& msg_type, const Spa
ser_writedata32 ( f , size ) ;
f . write ( AsBytes ( data ) ) ;
}
std : : function < void ( const CAddress & addr ,
const std : : string & msg_type ,
const Span < const unsigned char > & data ,
bool is_incoming ) >
CaptureMessage = CaptureMessageToFile ;