This commit is contained in:
jl777
2017-04-10 09:57:54 +03:00
parent 4415b53eed
commit 8094795afc

View File

@@ -1003,15 +1003,11 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
//printf("opretlen.%d num.%d\n",opretlen,num); //printf("opretlen.%d num.%d\n",opretlen,num);
} }
else else
{
static uint32_t counter;
if ( counter++ < 100 )
{ {
for (i=0; i<opretlen&&i<100; i++) for (i=0; i<opretlen&&i<100; i++)
printf("%02x",script[i]); printf("%02x",script[i]);
printf(" height.%d checkdeposit n.%d [%02x] [%c] %d len.%d ",height,n,script[0],script[offset],script[offset],opretlen); printf(" height.%d checkdeposit n.%d [%02x] [%c] %d opcode.%d len.%d ",height,n,script[0],script[offset],script[offset],opcode,opretlen);
printf("not proper vout with opreturn format %s ht.%d\n",ASSETCHAINS_SYMBOL,height); printf("not proper vout with opreturn format %s ht.%d cmp.%d %d\n",ASSETCHAINS_SYMBOL,height,script[offset] == opcode,block.vtx[0].vout[n-1].scriptPubKey.size());
}
return(-1); return(-1);
} }
return(0); return(0);