From ffa6b08195d539ca4ba40e4c919a4f70cb487a82 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 14 Aug 2016 11:26:30 -0300 Subject: [PATCH] test --- basilisk/basilisk_bitcoin.c | 4 +++- iguana/peggy_update.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk_bitcoin.c b/basilisk/basilisk_bitcoin.c index 074f06351..ee8670a30 100755 --- a/basilisk/basilisk_bitcoin.c +++ b/basilisk/basilisk_bitcoin.c @@ -312,7 +312,9 @@ void *basilisk_bitcoinbalances(struct basilisk_item *Lptr,struct supernet_info * { for (i=0; iRTheight > 0 ) + balance = iguana_addressreceived(myinfo,coin,vals,remoteaddr,0,0,unspents,spends,jstri(addresses,i),juint(vals,"minconf"),juint(vals,"firstheight")); + else balance = 0; item = cJSON_CreateObject(); jaddnum(item,jstri(addresses,i),dstr(balance)); jaddi(array,item); diff --git a/iguana/peggy_update.c b/iguana/peggy_update.c index 3dcfb598d..5ab8c66d9 100755 --- a/iguana/peggy_update.c +++ b/iguana/peggy_update.c @@ -620,7 +620,9 @@ void PAX_RTupdate(struct peggy_info *PEGS,double cryptovols[2][9][2],double RTme } for (i=1; i SMALLVAL ) + vol = volumes[i][0]; + vol += volumes[i][1]; + if ( vol > SMALLVAL ) { price = ((prices[i][0] * volumes[i][0]) + (prices[i][1] * volumes[i][1])) / vol; if ( Debuglevel > 2 )