|
|
@ -235,7 +235,7 @@ char *LP_instantdex_claim(struct iguana_info *coin) |
|
|
|
// make into function, and separate calling path by txid
|
|
|
|
if ( (txjson= LP_gettx(coin->symbol,utxotxid,1)) != 0 ) |
|
|
|
{ |
|
|
|
if ( (vouts= jarray(&numvouts,txjson,"vout")) != 0 && numvouts >= 3 ) |
|
|
|
if ( (vouts= jarray(&numvouts,txjson,"vout")) != 0 && numvouts == 3 ) |
|
|
|
{ |
|
|
|
vout0 = jitem(vouts,0); |
|
|
|
LP_destaddr(vinaddr,vout0); |
|
|
@ -414,7 +414,6 @@ int64_t LP_dynamictrust(bits256 pubkey,int64_t kmdvalue) |
|
|
|
int64_t LP_instantdex_proofcheck(char *coinaddr,cJSON *proof,int32_t num) |
|
|
|
{ |
|
|
|
uint8_t rmd160[20],addrtype; int32_t i; int64_t net = 0; char othersmartaddr[64]; struct iguana_info *coin; struct LP_address *ap = 0; |
|
|
|
printf("proofcheck.(%s) %d %s\n",coinaddr,num,jprint(proof,0)); |
|
|
|
if ( (coin= LP_coinfind("KMD")) != 0 ) |
|
|
|
{ |
|
|
|
bitcoin_addr2rmd160(0,&addrtype,rmd160,coinaddr); |
|
|
@ -442,7 +441,7 @@ int64_t LP_myzcredits() |
|
|
|
zcredits = LP_instantdex_proofcheck(coin->smartaddr,proof,cJSON_GetArraySize(proof)); |
|
|
|
free_json(proof); |
|
|
|
return(zcredits); |
|
|
|
} else printf("cant find my instantdex proof\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
return(0); |
|
|
|
} |
|
|
|