mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 20:44:56 +00:00
be more tolerant to detect outdated blockchain.
the main problem with running libtorrent with an outdated blockchain is to refuse posts that are signed by new users. given this is only a temporary state (and most of users are older than a day anyway) it is better to be more tolerant instead of freezing up everything.
This commit is contained in:
parent
4e927c1c4e
commit
1f748f78c3
@ -425,7 +425,7 @@ void ThreadWaitExtIP()
|
||||
bool isBlockChainUptodate() {
|
||||
if( !pindexBest )
|
||||
return false;
|
||||
return (pindexBest->GetBlockTime() > GetTime() - 2 * 60 * 60);
|
||||
return (pindexBest->GetBlockTime() > GetTime() - 24 * 60 * 60);
|
||||
}
|
||||
|
||||
bool yes(libtorrent::torrent_status const&)
|
||||
|
Loading…
x
Reference in New Issue
Block a user