test
This commit is contained in:
@@ -237,7 +237,9 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
|
|||||||
{
|
{
|
||||||
for (i=1; i<n-1; i++)
|
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 )
|
if ( pax->marked != 0 )
|
||||||
errs++;
|
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);
|
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 )
|
if ( matched != num )
|
||||||
{
|
{
|
||||||
printf("matched.%d vs num.%d\n",matched,num);
|
printf("matched.%d vs num.%d\n",matched,num);
|
||||||
|
|||||||
Reference in New Issue
Block a user