Skip to content

Commit

Permalink
!Fix: During IBD, do not print "Potential stale tip detected..."
Browse files Browse the repository at this point in the history
- feature_uacomment.py
- feature_asmap.py
  • Loading branch information
decryp2kanon committed Nov 2, 2020
1 parent c4518f3 commit 0b75d81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3984,7 +3984,13 @@ void PeerManager::CheckForStaleTipAndEvictPeers()
// Check whether our tip is stale, and if so, allow using an extra
// outbound peer
if (!fImporting && !fReindex && m_connman.GetNetworkActive() && m_connman.GetUseAddrmanOutgoing() && TipMayBeStale(m_chainparams.GetConsensus())) {
// During IBD, do not print "Potential stale tip detected..."
/*
LogPrintf("Potential stale tip detected, will try using extra outbound peer (last tip update: %d seconds ago)\n", time_in_seconds - g_last_tip_update);
*/
if (!::ChainstateActive().IsInitialBlockDownload()) {
LogPrintf("Potential stale tip detected, will try using extra outbound peer (last tip update: %d seconds ago)\n", time_in_seconds - g_last_tip_update);
}
m_connman.SetTryNewOutboundPeer(true);
} else if (m_connman.GetTryNewOutboundPeer()) {
m_connman.SetTryNewOutboundPeer(false);
Expand Down
4 changes: 2 additions & 2 deletions test/functional/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,15 @@
# 'wallet_create_tx.py', # TODO.ZENY.YESPOWER # AssertionError
# 'wallet_send.py', # TODO.ZENY.SETTINGS
# 'p2p_fingerprint.py', # TODO.ZENY.YESPOWER # AssertionError
'feature_uacomment.py',
# 'feature_uacomment.py', # During IBD, do not print "Potential stale tip detected..."
'wallet_coinbase_category.py',
'feature_filelock.py',
'feature_loadblock.py',
'p2p_dos_header_tree.py',
# 'p2p_unrequested_blocks.py', # TODO.ZENY.YESPOWER # AssertionError
# 'p2p_blockfilters.py', # TODO.ZENY.SETTINGS # too slow...
'feature_includeconf.py',
'feature_asmap.py',
# 'feature_asmap.py', # During IBD, do not print "Potential stale tip detected..."
'mempool_unbroadcast.py',
# 'mempool_compatibility.py', # TODO.ZENY.BRANDING # AssertionError # No any previous releases
# 'rpc_deriveaddresses.py', # TODO.ZENY.SETTINGS # ADDRESS # ADDRESS_BCRT1_P2WSH_OP_TRUE (address.py)
Expand Down

1 comment on commit 0b75d81

@decryp2kanon
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.