Browse Source

Test

etomic
jl777 7 years ago
parent
commit
16a595a9c1
  1. 2
      iguana/exchanges/LP_stats.c
  2. 5
      iguana/exchanges/LP_utxo.c

2
iguana/exchanges/LP_stats.c

@ -36,11 +36,13 @@ char *LP_dPoW_recv(cJSON *argjson)
notarized = jint(argjson,"notarized");
notarizedhash = jbits256(argjson,"notarizedhash");
notarizationtxid = jbits256(argjson,"notarizationtxid");
printf("dPoW %s\n",jprint(argjson,0));
if ( notarized > coin->notarized && LP_notarization_validate(symbol,notarized,notarizedhash,notarizationtxid) == 0 )
{
coin->notarized = notarized;
coin->notarizedhash = notarizedhash;
coin->notarizationtxid = notarizationtxid;
printf("VALIDATED\n");
}
}
return(clonestr("{\"result\":\"success\"}"));

5
iguana/exchanges/LP_utxo.c

@ -794,7 +794,12 @@ int32_t LP_txheight(struct iguana_info *coin,bits256 txid)
if ( height == 0 )
{
if ( (retjson= electrum_transaction(&height,coin->symbol,coin->electrum,&retjson,txid,0)) != 0 )
{
printf("process %s\n",jprint(retjson,0));
free_json(retjson);
}
if ( (tx= LP_transactionfind(coin,txid)) != 0 )
height = tx->height;
}
}
return(height);

Loading…
Cancel
Save