jl777 7 years ago
parent
commit
389d8fda80
  1. 2
      iguana/exchanges/LP_include.h
  2. 4
      iguana/exchanges/LP_utxo.c

2
iguana/exchanges/LP_include.h

@ -167,7 +167,7 @@ struct basilisk_swapinfo
uint8_t userdata_bobrefund[256],userdata_bobrefundlen;
};
struct LP_outpoint { bits256 spendtxid; uint64_t value,interest; int32_t spendvini,spendheight; char coinaddr[40]; };
struct LP_outpoint { bits256 spendtxid; uint64_t value,interest; int32_t spendvini,spendheight; char coinaddr[64]; };
struct LP_transaction
{

4
iguana/exchanges/LP_utxo.c

@ -249,7 +249,7 @@ int32_t LP_transactioninit(struct iguana_info *coin,bits256 txid,int32_t iter)
struct LP_transaction *tx; int32_t i,height,numvouts,numvins,spentvout; cJSON *txobj,*vins,*vouts,*vout,*vin; bits256 spenttxid; char str[65];
if ( (txobj= LP_gettx(coin->symbol,txid)) != 0 )
{
//printf("TX.(%s)\n",jprint(txobj,0));
printf("TX.(%s)\n",jprint(txobj,0));
if ( coin->electrum == 0 )
height = LP_txheight(coin,txid);
else height = -1;
@ -257,7 +257,7 @@ int32_t LP_transactioninit(struct iguana_info *coin,bits256 txid,int32_t iter)
vouts = jarray(&numvouts,txobj,"vout");
if ( iter == 0 && vouts != 0 && (tx= LP_transactionadd(coin,txid,height,numvouts,numvins)) != 0 )
{
//printf("create txid numvouts.%d numvins.%d\n",numvouts,numvins);
printf("create txid numvouts.%d numvins.%d\n",numvouts,numvins);
for (i=0; i<numvouts; i++)
{
vout = jitem(vouts,i);

Loading…
Cancel
Save