]> Git Repo - VerusCoin.git/commitdiff
Test
authorjl777 <[email protected]>
Sun, 3 Jun 2018 11:52:55 +0000 (00:52 -1100)
committerjl777 <[email protected]>
Sun, 3 Jun 2018 11:52:55 +0000 (00:52 -1100)
src/komodo_gateway.h

index 3b2922a7bc8d70dc667e13fdf3f60d337ede1152..1ab58b04a4deb6bb680eb986df9795041bd66011 100644 (file)
@@ -747,17 +747,18 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block,uint32_t prevtim
             if ( ASSETCHAINS_COMMISSION != 0 && height > 1 )
             {
                 if ( (checktoshis= komodo_checkcommission((CBlock *)&block,height)) < 0 )
-                    return(-1);
-            }
-            else
-            {
-                if ( overflow != 0 || total > checktoshis || strangeout != 0 )
                 {
-                    if ( strangeout != 0 )
-                        fprintf(stderr,">>>>>>>>>>>>> %s DUST ht.%d strangout.%d notmatched.%d <<<<<<<<<\n",ASSETCHAINS_SYMBOL,height,strangeout,notmatched);
+                    fprintf(stderr,"ht.%d checktoshis %.8f overflow.%d total %.8f strangeout.%d\n",height,dstr(checktoshis),overflow,dstr(total),strangeout);
                     return(-1);
                 }
             }
+            if ( overflow != 0 || total > checktoshis || strangeout != 0 )
+            {
+                fprintf(stderr,"checkdeposit: ht.%d checktoshis %.8f overflow.%d total %.8f strangeout.%d\n",height,dstr(checktoshis),overflow,dstr(total),strangeout);
+                if ( strangeout != 0 )
+                    fprintf(stderr,">>>>>>>>>>>>> %s DUST ht.%d strangout.%d notmatched.%d <<<<<<<<<\n",ASSETCHAINS_SYMBOL,height,strangeout,notmatched);
+                return(-1);
+            }
         }
         return(0);
     }
This page took 0.025185 seconds and 4 git commands to generate.