diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 5c1d08df0..ba38ae0be 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -928,6 +928,8 @@ HASH_ARRAY_STRING(basilisk,balances,hash,vals,hexstr) return(clonestr("{\"error\":\"need vals object\"}")); if ( (symbol= jstr(vals,"symbol")) != 0 || (symbol= jstr(vals,"coin")) != 0 ) coin = iguana_coinfind(symbol); + if ( jobj(vals,"history") == 0 ) + jaddnum(vals,"history",3); if ( jobj(vals,"fanout") == 0 ) jaddnum(vals,"fanout",MAX(5,(int32_t)sqrt(NUMRELAYS)+1)); if ( jobj(vals,"numrequired") == 0 ) diff --git a/iguana/iguana_wallet.c b/iguana/iguana_wallet.c index 0b335705f..5a961b825 100755 --- a/iguana/iguana_wallet.c +++ b/iguana/iguana_wallet.c @@ -1008,7 +1008,7 @@ int64_t iguana_addressreceived(struct supernet_info *myinfo,struct iguana_info * int64_t balance = 0; cJSON *unspentsjson,*balancejson,*item; int32_t i,n; char *balancestr; if ( (balancestr= iguana_balance(IGUANA_CALLARGS,coin->symbol,coinaddr,1<<30,minconf)) != 0 ) { - printf("balancestr.(%s) (%s)\n",balancestr,coinaddr); + printf("balancestr.(%s) (%s) firstheight.%d\n",balancestr,coinaddr,firstheight); if ( (balancejson= cJSON_Parse(balancestr)) != 0 ) { balance = jdouble(balancejson,"balance") * SATOSHIDEN;