Skip to content

Commit e9e04d7

Browse files
authored
Merge pull request #207 from jl777/dPoW
DPoW
2 parents 44109c1 + a6b3e1e commit e9e04d7

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

src/komodo_gateway.h

+16-5
Original file line numberDiff line numberDiff line change
@@ -655,13 +655,24 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
655655
printf(" kht.%d ht.%d %.8f %.8f blockhash couldnt find vout.[%d]\n",kmdheights[i-1],otherheights[i-1],dstr(values[i-1]),dstr(srcvalues[i]),i);
656656
}
657657
}
658-
if ( (height < chainActive.Tip()->nHeight || (height >= chainActive.Tip()->nHeight && komodo_isrealtime(&ht) != 0)) && matched != num )
658+
if ( height < 225000 && ASSETCHAINS_SYMBOL[0] == 0 )
659659
{
660-
printf("WOULD REJECT %s: ht.%d (%c) matched.%d vs num.%d tip.%d isRT.%d\n",symbol,height,opcode,matched,num,(int32_t)chainActive.Tip()->nHeight,komodo_isrealtime(&ht));
661-
// can easily happen depending on order of loading
662-
if ( height > 200000 )
660+
if ( (height < chainActive.Tip()->nHeight || (height >= chainActive.Tip()->nHeight && komodo_isrealtime(&ht) != 0)) && matched != num )
663661
{
664-
printf("REJECT: ht.%d (%c) matched.%d vs num.%d\n",height,opcode,matched,num);
662+
printf("WOULD REJECT %s: ht.%d (%c) matched.%d vs num.%d tip.%d isRT.%d\n",symbol,height,opcode,matched,num,(int32_t)chainActive.Tip()->nHeight,komodo_isrealtime(&ht));
663+
// can easily happen depending on order of loading
664+
if ( height > 200000 )
665+
{
666+
printf("REJECT: ht.%d (%c) matched.%d vs num.%d\n",height,opcode,matched,num);
667+
return(-1);
668+
}
669+
}
670+
}
671+
else
672+
{
673+
if ( height < chainActive.Tip()->nHeight && matched != num )
674+
{
675+
printf("REJECT %s: ht.%d (%c) matched.%d vs num.%d tip.%d isRT.%d\n",symbol,height,opcode,matched,num,(int32_t)chainActive.Tip()->nHeight,komodo_isrealtime(&ht));
665676
return(-1);
666677
}
667678
}

0 commit comments

Comments
 (0)