Browse Source

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.
miguelfreitas
Miguel Freitas 10 years ago
parent
commit
1f748f78c3
  1. 2
      src/twister.cpp

2
src/twister.cpp

@ -425,7 +425,7 @@ void ThreadWaitExtIP()
bool isBlockChainUptodate() { bool isBlockChainUptodate() {
if( !pindexBest ) if( !pindexBest )
return false; return false;
return (pindexBest->GetBlockTime() > GetTime() - 2 * 60 * 60); return (pindexBest->GetBlockTime() > GetTime() - 24 * 60 * 60);
} }
bool yes(libtorrent::torrent_status const&) bool yes(libtorrent::torrent_status const&)

Loading…
Cancel
Save