This commit is contained in:
jl777
2016-11-07 18:51:09 -03:00
parent 8a8080c5ae
commit f10b8e2e42

View File

@@ -237,7 +237,9 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
{
for (i=1; i<n-1; i++)
{
if ( (pax= komodo_paxfind(&space,txids[i-1],vouts[i-1])) != 0 && ((opcode == 'I' && pax->fiatoshis == block.vtx[0].vout[i].nValue) || (opcode == 'X' && pax->komodoshis == block.vtx[0].vout[i].nValue)) )
if ( (pax= komodo_paxfind(&space,txids[i-1],vouts[i-1])) != 0 )
{
if ( ((opcode == 'I' && pax->fiatoshis == block.vtx[0].vout[i].nValue) || (opcode == 'X' && pax->komodoshis == block.vtx[0].vout[i].nValue)) )
{
if ( pax->marked != 0 )
errs++;
@@ -254,6 +256,13 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
komodo_paxmark(height,&space,txids[i-1],vouts[i-1],height);
}
}
else
{
for (j=0; j<32; j++)
printf("%02x",((uint8_t *)&txids[i-1])[j]);
printf("cant paxfind txid\n");
}
}
if ( matched != num )
{
printf("matched.%d vs num.%d\n",matched,num);