|
|
@ -652,7 +652,7 @@ void komodo_passport_iteration(); |
|
|
|
int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above block is valid pax pricing
|
|
|
|
{ |
|
|
|
static uint256 array[64]; static int32_t numbanned,indallvouts; |
|
|
|
int32_t i,j,k,n,ht,baseid,txn_count,activation,num,opretlen,offset=1,errs=0,matched=0,kmdheights[64],otherheights[64]; uint256 hash,txids[64]; char symbol[16],base[16]; uint16_t vouts[64]; int8_t baseids[64]; uint8_t *script,opcode,rmd160s[64*20]; uint64_t total,available,deposited,issued,withdrawn,approved,redeemed,checktoshis,seed; int64_t values[64],srcvalues[64]; struct pax_transaction *pax; struct komodo_state *sp; |
|
|
|
int32_t i,j,k,n,ht,baseid,txn_count,activation,num,opretlen,offset=1,errs=0,matched=0,kmdheights[256],otherheights[256]; uint256 hash,txids[256]; char symbol[16],base[16]; uint16_t vouts[256]; int8_t baseids[256]; uint8_t *script,opcode,rmd160s[256*20]; uint64_t total,available,deposited,issued,withdrawn,approved,redeemed,checktoshis,seed; int64_t values[256],srcvalues[256]; struct pax_transaction *pax; struct komodo_state *sp; |
|
|
|
activation = 235300; |
|
|
|
if ( *(int32_t *)&array[0] == 0 ) |
|
|
|
numbanned = komodo_bannedset(&indallvouts,array,(int32_t)(sizeof(array)/sizeof(*array))); |
|
|
@ -1052,20 +1052,13 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 |
|
|
|
else if ( opretbuf[0] == 'D' ) |
|
|
|
{ |
|
|
|
tokomodo = 0; |
|
|
|
if ( opretlen >= 38 ) // any KMD tx
|
|
|
|
if ( opretlen == 38 ) // any KMD tx
|
|
|
|
{ |
|
|
|
if ( opretlen > 38 ) |
|
|
|
{ |
|
|
|
iguana_rwnum(0,&opretbuf[36],sizeof(kmdheight),&kmdheight); |
|
|
|
for (i=0; i<opretlen; i++) |
|
|
|
printf("%02x",opretbuf[i]); |
|
|
|
printf(" extra size kmdheight.%d\n",kmdheight); |
|
|
|
} |
|
|
|
iguana_rwnum(0,&opretbuf[34],sizeof(kmdheight),&kmdheight); |
|
|
|
memset(base,0,sizeof(base)); |
|
|
|
PAX_pubkey(0,&opretbuf[1],&addrtype,rmd160,base,&shortflag,&fiatoshis); |
|
|
|
bitcoin_address(coinaddr,addrtype,rmd160,20); |
|
|
|
checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,kmdheight,base,fiatoshis); |
|
|
|
checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,height,base,fiatoshis); |
|
|
|
typestr = "deposit"; |
|
|
|
if ( strcmp("AUD",base) == 0 ) |
|
|
|
{ |
|
|
|