|
@ -928,6 +928,8 @@ HASH_ARRAY_STRING(basilisk,balances,hash,vals,hexstr) |
|
|
return(clonestr("{\"error\":\"need vals object\"}")); |
|
|
return(clonestr("{\"error\":\"need vals object\"}")); |
|
|
if ( (symbol= jstr(vals,"symbol")) != 0 || (symbol= jstr(vals,"coin")) != 0 ) |
|
|
if ( (symbol= jstr(vals,"symbol")) != 0 || (symbol= jstr(vals,"coin")) != 0 ) |
|
|
coin = iguana_coinfind(symbol); |
|
|
coin = iguana_coinfind(symbol); |
|
|
|
|
|
if ( jobj(vals,"history") == 0 ) |
|
|
|
|
|
jaddnum(vals,"history",3); |
|
|
if ( jobj(vals,"fanout") == 0 ) |
|
|
if ( jobj(vals,"fanout") == 0 ) |
|
|
jaddnum(vals,"fanout",MAX(5,(int32_t)sqrt(NUMRELAYS)+1)); |
|
|
jaddnum(vals,"fanout",MAX(5,(int32_t)sqrt(NUMRELAYS)+1)); |
|
|
if ( jobj(vals,"numrequired") == 0 ) |
|
|
if ( jobj(vals,"numrequired") == 0 ) |
|
|