This commit is contained in:
jl777
2016-10-31 17:21:35 -03:00
parent f67800d0ff
commit 509cd0c10a

View File

@@ -151,7 +151,7 @@ int32_t komodo_gateway_depositremove(uint256 txid,uint16_t vout) // assetchain c
int32_t komodo_check_deposit(const CBlock& block) // verify above block is valid pax pricing
{
int32_t i,j,n,opretlen,num,iter,matchflag,offset=1; uint256 txids[64]; uint8_t shortflag; char base[16]; uint16_t vouts[64]; uint8_t *script; queue_t *Q; struct pax_transaction *ptr; struct queueitem *item;
int32_t i,j,n,opretlen,num,iter,matchflag,offset=1; uint256 hash,txids[64]; uint8_t shortflag; char base[16]; uint16_t vouts[64]; uint8_t *script; queue_t *Q; struct pax_transaction *ptr; struct queueitem *item;
n = block.vtx[0].vout.size();
script = (uint8_t *)block.vtx[0].vout[n-1].scriptPubKey.data();
if ( n <= 2 || script[0] != 0x6a )
@@ -197,7 +197,10 @@ int32_t komodo_check_deposit(const CBlock& block) // verify above block is valid
}
if ( matchflag == 0 )
{
printf("couldnt find vout.[%d]\n",i);
hash = block.GetHash();
for (j=0; j<32; j++)
printf("%02x",((uint8_t *)&hash)[j]);
printf(" blockhash couldnt find vout.[%d]\n",i);
return(-1);
}
}