|
|
@ -95,7 +95,7 @@ char *LP_utxos(struct LP_peerinfo *mypeer,char *coin,int32_t lastn) |
|
|
|
{ |
|
|
|
if ( i++ < firsti ) |
|
|
|
continue; |
|
|
|
if ( coin == 0 || coin[0] == 0 || strcmp(coin,utxo->coin) == 0 ) |
|
|
|
if ( (coin == 0 || coin[0] == 0 || strcmp(coin,utxo->coin) == 0) && LP_ismine(utxo) != 0 ) |
|
|
|
{ |
|
|
|
jaddi(utxosjson,LP_utxojson(utxo)); |
|
|
|
} |
|
|
@ -152,7 +152,7 @@ int32_t LP_iseligible(char *coin,bits256 txid,int32_t vout,uint64_t satoshis,bit |
|
|
|
{ |
|
|
|
if ( (val2= LP_txvalue(coin,txid2,vout2)) >= LP_DEPOSITSATOSHIS(satoshis) ) |
|
|
|
{ |
|
|
|
printf("val %.8f and val2 %.8f\n",dstr(val),dstr(val2)); |
|
|
|
printf("val %.8f and val2 %.8f vs %.8f\n",dstr(val),dstr(val2),dstr(satoshis)); |
|
|
|
return(1); |
|
|
|
} |
|
|
|
else printf("mismatched %s txid value2 %.8f < %.8f\n",coin,dstr(val2),dstr(LP_DEPOSITSATOSHIS(satoshis))); |
|
|
|