This commit is contained in:
jl777
2016-10-31 20:02:51 -03:00
parent 4141ccfd18
commit b8b96fdc40

View File

@@ -147,6 +147,11 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
{
int32_t i,j,n,num,opretlen,offset=1; uint256 hash,txids[64]; uint8_t shortflag; char base[16]; uint16_t vouts[64]; uint8_t *script; struct pax_transaction *pax,space;
n = block.vtx[0].vout.size();
while ( KOMODO_REALTIME == 0 || time(null) < KOMODO_REALTIME )
{
printf("komodo_check_deposit waiting for realtime\n");
sleep(3);
}
script = (uint8_t *)block.vtx[0].vout[n-1].scriptPubKey.data();
if ( n <= 2 || script[0] != 0x6a )
return(0);