@ -862,11 +862,11 @@ namespace llarp
if ( IsServiceNode ( ) )
if ( IsServiceNode ( ) )
{
{
LogInfo ( NumberOfConnectedClients ( ) , " client connections " ) ;
LogInfo ( NumberOfConnectedClients ( ) , " client connections " ) ;
LogInfo ( _rc. Age ( now ) , " since we last updated our RC " ) ;
LogInfo ( ToString( _rc. Age ( now ) ) , " since we last updated our RC " ) ;
LogInfo ( _rc. TimeUntilExpires ( now ) , " until our RC expires " ) ;
LogInfo ( ToString( _rc. TimeUntilExpires ( now ) ) , " until our RC expires " ) ;
}
}
if ( m_LastStatsReport > 0 s )
if ( m_LastStatsReport > 0 s )
LogInfo ( now - m_LastStatsReport , " last reported stats " ) ;
LogInfo ( ToString( now - m_LastStatsReport ) , " last reported stats " ) ;
m_LastStatsReport = now ;
m_LastStatsReport = now ;
}
}
@ -880,7 +880,7 @@ namespace llarp
if ( const auto delta = now - _lastTick ; _lastTick ! = 0 s and delta > TimeskipDetectedDuration )
if ( const auto delta = now - _lastTick ; _lastTick ! = 0 s and delta > TimeskipDetectedDuration )
{
{
// we detected a time skip into the futre, thaw the network
// we detected a time skip into the futre, thaw the network
LogWarn ( " Timeskip of " , delta, " detected. Resetting network state " ) ;
LogWarn ( " Timeskip of " , ToString( delta) , " detected. Resetting network state " ) ;
Thaw ( ) ;
Thaw ( ) ;
}
}
@ -902,14 +902,12 @@ namespace llarp
" | {} active paths | block {} " ,
" | {} active paths | block {} " ,
pathContext ( ) . CurrentTransitPaths ( ) ,
pathContext ( ) . CurrentTransitPaths ( ) ,
( m_lokidRpcClient ? m_lokidRpcClient - > BlockHeight ( ) : 0 ) ) ;
( m_lokidRpcClient ? m_lokidRpcClient - > BlockHeight ( ) : 0 ) ) ;
auto maybe_last = _rcGossiper . LastGossipAt ( ) ;
fmt : : format_to (
fmt : : format_to (
out ,
out ,
" | gossip: (next/last) {} / " ,
" | gossip: (next/last) {} / {} " ,
time_delta < std : : chrono : : seconds > { _rcGossiper . NextGossipAt ( ) } ) ;
short_time_from_now ( _rcGossiper . NextGossipAt ( ) ) ,
if ( auto maybe = _rcGossiper . LastGossipAt ( ) )
maybe_last ? short_time_from_now ( * maybe_last ) : " never " ) ;
fmt : : format_to ( out , " {} " , time_delta < std : : chrono : : seconds > { * maybe } ) ;
else
fmt : : format_to ( out , " never " ) ;
}
}
else
else
{
{