jl777 7 years ago
parent
commit
fe54d0a382
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 3
      iguana/exchanges/LP_rpc.c

4
iguana/exchanges/LP_nativeDEX.c

@ -18,13 +18,13 @@
// LP_nativeDEX.c // LP_nativeDEX.c
// marketmaker // marketmaker
// //
// process stats.log local file -> map of realtime activity!
// serialize sighash functions
// select oldest utxo first // select oldest utxo first
// process stats.log local file -> map of realtime activity!
// handles <-> pubkeys, deal with offline pubkeys, reputations, bonds etc. // handles <-> pubkeys, deal with offline pubkeys, reputations, bonds etc.
// //
// verify portfolio, pricearray, interest to KMD withdraw, reliable networking // verify portfolio, pricearray, interest to KMD withdraw, reliable networking
// dPoW security -> 4: KMD notarized, 5: BTC notarized, after next notary elections // dPoW security -> 4: KMD notarized, 5: BTC notarized, after next notary elections
// serialize sighash functions -> otherwise bigendian architectures not supported
#include <stdio.h> #include <stdio.h>
#include "LP_include.h" #include "LP_include.h"

3
iguana/exchanges/LP_rpc.c

@ -1047,7 +1047,6 @@ int32_t LP_notarization_latest(int32_t *bestheightp,struct iguana_info *coin)
blockhash = LP_getbestblockhash(coin); blockhash = LP_getbestblockhash(coin);
if ( bits256_nonz(blockhash) != 0 ) if ( bits256_nonz(blockhash) != 0 )
{ {
//char str[65]; printf("check %s\n",bits256_str(str,blockhash));
if ( (blockjson= LP_getblock(coin->symbol,blockhash)) != 0 ) if ( (blockjson= LP_getblock(coin->symbol,blockhash)) != 0 )
{ {
if ( *bestheightp < 0 ) if ( *bestheightp < 0 )
@ -1055,7 +1054,7 @@ int32_t LP_notarization_latest(int32_t *bestheightp,struct iguana_info *coin)
if ( (hasnotarization= LP_hasnotarization(coin,blockjson)) > 0 ) if ( (hasnotarization= LP_hasnotarization(coin,blockjson)) > 0 )
{ {
height = jint(blockjson,"height"); height = jint(blockjson,"height");
//printf("height.%d\n",height); char str[65]; printf("%s height.%d\n",bits256_str(str,blockhash),height);
} }
else else
{ {

Loading…
Cancel
Save