@@ -721,17 +721,6 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
721
721
offset += komodo_scriptitemlen (& opretlen ,& script [offset ]);
722
722
if ( ASSETCHAINS_SYMBOL [0 ] == 0 )
723
723
{
724
- /*extern int32_t KOMODO_REWIND;
725
- if ( KOMODO_REWIND < 0 )
726
- {
727
- fprintf(stderr,">>>>>>> rewind.%d will pause here for a minute. issue command and stop\n",KOMODO_REWIND);
728
- sleep(60);
729
- KOMODO_REWIND = 0;
730
- }*/
731
- // 6a35506c65617365206d616b6520796f75722047697420636f6d6d6974206d65737361676573206d6f726520696e74657265737469 height.241778 checkdeposit n.4 [6a] [P] 80 vs 88
732
- //for (i=0; i<opretlen; i++)
733
- // printf("%02x",script[i]);
734
- //printf(" height.%d checkdeposit n.%d [%02x] [%c] %d vs %d\n",height,n,script[0],script[offset],script[offset],'X');
735
724
opcode = 'X' ;
736
725
if ( height >= 235300 )
737
726
return (-1 );
@@ -993,33 +982,6 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
993
982
}
994
983
else
995
984
{
996
- /*int64_t val,prevtotal = 0; int32_t overflow = 0;
997
- total = 0;
998
- for (i=1; i<n; i++)
999
- {
1000
- if ( (val= block.vtx[0].vout[i].nValue) < 0 || val >= MAX_MONEY )
1001
- {
1002
- overflow = 1;
1003
- break;
1004
- }
1005
- total += val;
1006
- if ( total < prevtotal || (val != 0 && total == prevtotal) )
1007
- {
1008
- overflow = 1;
1009
- break;
1010
- }
1011
- prevtotal = total;
1012
- }
1013
- if ( overflow != 0 || total > COIN/10 )
1014
- {
1015
- for (i=0; i<opretlen&&i<100; i++)
1016
- printf("%02x",script[i]);
1017
- printf(" script.[%d] ",opretlen);
1018
- for (i=0; i<n; i++)
1019
- printf("%.8f ",dstr(block.vtx[0].vout[i].nValue));
1020
- printf("no opreturn entries to check ht.%d %s\n",height,ASSETCHAINS_SYMBOL);
1021
- return(-1);
1022
- } else return(0);*/
1023
985
for (i = 0 ; i < n ; i ++ )
1024
986
printf ("%.8f " ,dstr (block .vtx [0 ].vout [i ].nValue ));
1025
987
printf ("no opreturn entries to check ht.%d %s\n" ,height ,ASSETCHAINS_SYMBOL );
0 commit comments