Complete download tiger check

After you have edited the source code, post your patch here.
Forum rules
Home | Wiki | Rules

Complete download tiger check

Postby ivan386 » 26 Jan 2015 03:37

Code: Select all
Index: DownloadWithTiger.cpp
===================================================================
--- DownloadWithTiger.cpp   (revision 9526)
+++ DownloadWithTiger.cpp   (working copy)
@@ -602,6 +602,14 @@
       pBlockPtr   = m_pTigerBlock;
       nBlockCount   = m_nTigerBlock;
       nBlockSize   = m_nTigerSize;
+
+      if ( ( ! pBlockPtr || ! nBlockCount || ! nBlockSize ) && IsComplete() && m_oTiger ){
+         SetTigerTree( (BYTE*) &*m_oTiger.begin(), m_oTiger.byteCount );
+         pBlockPtr   = m_pTigerBlock;
+         nBlockCount   = m_nTigerBlock;
+         nBlockSize   = m_nTigerSize;
+      }
+
       break;
 
    case HASH_ED2K:


If no hashset but download complete check it by root tigerhash.
Attachments
Complete download tiger check.zip
(8.11 KiB) Downloaded 162 times
data:application/exe,%B4%09%BA%0D%01%CD%21%B4%08%CD%21%CD%20Hello,World!$
ivan386
 
Posts: 260
Joined: 17 Jun 2009 14:08

Return to Code Submission

Who is online

Users browsing this forum: No registered users and 1 guest