File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1845,7 +1845,7 @@ void PeerManagerImpl::BlockConnected(const std::shared_ptr<const CBlock>& pblock
1845
1845
if (stalling_timeout != BLOCK_STALLING_TIMEOUT_DEFAULT) {
1846
1846
const auto new_timeout = std::max (std::chrono::duration_cast<std::chrono::seconds>(stalling_timeout * 0.85 ), BLOCK_STALLING_TIMEOUT_DEFAULT);
1847
1847
if (m_block_stalling_timeout.compare_exchange_strong (stalling_timeout, new_timeout)) {
1848
- LogPrint (BCLog::NET, " Decreased stalling timeout to %d seconds\n " , new_timeout. count ( ));
1848
+ LogPrint (BCLog::NET, " Decreased stalling timeout to %d seconds\n " , count_seconds (new_timeout ));
1849
1849
}
1850
1850
}
1851
1851
}
@@ -5736,7 +5736,7 @@ bool PeerManagerImpl::SendMessages(CNode* pto)
5736
5736
// bandwidth is insufficient.
5737
5737
const auto new_timeout = std::min (2 * stalling_timeout, BLOCK_STALLING_TIMEOUT_MAX);
5738
5738
if (stalling_timeout != new_timeout && m_block_stalling_timeout.compare_exchange_strong (stalling_timeout, new_timeout)) {
5739
- LogPrint (BCLog::NET, " Increased stalling timeout temporarily to %d seconds\n " , m_block_stalling_timeout. load (). count ( ));
5739
+ LogPrint (BCLog::NET, " Increased stalling timeout temporarily to %d seconds\n " , count_seconds (new_timeout ));
5740
5740
}
5741
5741
return true ;
5742
5742
}
You can’t perform that action at this time.
0 commit comments