Skip to content

Commit 554cdd8

Browse files
authored
Merge pull request #388 from jl777/dev
Test
2 parents e84c90f + 23bf71d commit 554cdd8

File tree

2 files changed

+1
-39
lines changed

2 files changed

+1
-39
lines changed

src/komodo_gateway.h

-38
Original file line numberDiff line numberDiff line change
@@ -721,17 +721,6 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
721721
offset += komodo_scriptitemlen(&opretlen,&script[offset]);
722722
if ( ASSETCHAINS_SYMBOL[0] == 0 )
723723
{
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');
735724
opcode = 'X';
736725
if ( height >= 235300 )
737726
return(-1);
@@ -993,33 +982,6 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
993982
}
994983
else
995984
{
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);*/
1023985
for (i=0; i<n; i++)
1024986
printf("%.8f ",dstr(block.vtx[0].vout[i].nValue));
1025987
printf("no opreturn entries to check ht.%d %s\n",height,ASSETCHAINS_SYMBOL);

src/miner.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ void static BitcoinMiner(CWallet *pwallet)
707707
{
708708
double delta;
709709
i = ((Mining_height + notaryid) % 64);
710-
delta = sqrt((double)gpucount - j/3);
710+
delta = sqrt((double)gpucount - j/3) / 2.;
711711
roundrobin_delay += ((delta * i) / 64) - delta;
712712
//fprintf(stderr,"delta.%f %f %f\n",delta,(double)(gpucount - j/3) / 2,(delta * i) / 64);
713713
}

0 commit comments

Comments
 (0)