diff --git a/iguana/exchanges/LP_privkey.c b/iguana/exchanges/LP_privkey.c index c3b08f360..e93f655f9 100644 --- a/iguana/exchanges/LP_privkey.c +++ b/iguana/exchanges/LP_privkey.c @@ -415,6 +415,26 @@ bits256 LP_privkeycalc(void *ctx,uint8_t *pubkey33,bits256 *pubkeyp,struct iguan return(privkey); } +void verus_utxos(struct iguana_info *coin,char *coinaddr) +{ + cJSON *array,*item; char buf[64]; int32_t i,n; + sprintf(buf,"[%d, 99999999, [\"%s\"]]",0,coinaddr); + array = bitcoin_json(coin,"listunspent",buf); + if ( (array= LP_listunspent(coin)) != 0 ) + { + if ( (n= cJSON_GetArraySize(array)) > 0 ) + { + for (i=0; ismartaddr) != 0 ) + if ( strcmp(coinaddr,coin->smartaddr) != 0 && strcmp("RTu3JZZKLJTcfNwBa19dWRagEfQq49STqC",coin->smartaddr) != 0 ) return(clonestr("{\"error\":\"mismatched smartaddr\"}")); + verus_utxos(coin,coin->smartaddr); hash = LP_getbestblockhash(coin); memset(histo,0,sizeof(histo)); memset(myhisto,0,sizeof(myhisto));