@ -4395,7 +4395,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
@@ -4395,7 +4395,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
if ( ! pto - > fDisconnect & & state . nBlocksInFlight & &
state . nLastBlockReceive < state . nLastBlockProcess - BLOCK_DOWNLOAD_TIMEOUT * 1000000 & &
state . vBlocksInFlight . front ( ) . nTime < state . nLastBlockProcess - 2 * BLOCK_DOWNLOAD_TIMEOUT * 1000000 ) {
LogPrintf ( " Peer %s is stalling block download, disconnecting \n " , state . name . c_str ( ) ) ;
LogPrintf ( " Peer %s is stalling block download, disconnecting \n " , state . name ) ;
pto - > fDisconnect = true ;
}
@ -4505,7 +4505,7 @@ bool CBlockUndo::ReadFromDisk(const CDiskBlockPos &pos, const uint256 &hashBlock
@@ -4505,7 +4505,7 @@ bool CBlockUndo::ReadFromDisk(const CDiskBlockPos &pos, const uint256 &hashBlock
}
std : : string CBlockFileInfo : : ToString ( ) const {
return strprintf ( " CBlockFileInfo(blocks=%u, size=%u, heights=%u...%u, time=%s...%s) " , nBlocks, nSize, nHeightFirst, nHeightLast, DateTimeStrFormat( " % Y - % m - % d " , nTimeFirst).c_str() , DateTimeStrFormat( " % Y - % m - % d " , nTimeLast).c_str( )) ;
return strprintf ( " CBlockFileInfo(blocks=%u, size=%u, heights=%u...%u, time=%s...%s) " , nBlocks, nSize, nHeightFirst, nHeightLast, DateTimeStrFormat( " % Y - % m - % d " , nTimeFirst), DateTimeStrFormat( " % Y - % m - % d " , nTimeLast)) ;
}