Browse Source

dpow ipaddrs

patch-4
jl777 7 years ago
parent
commit
3090fd0d9c
  1. 12
      iguana/iguana_notary.c
  2. 1
      includes/iguana_apideclares.h

12
iguana/iguana_notary.c

@ -956,6 +956,18 @@ ZERO_ARGS(dpow,cancelratify)
return(clonestr("{\"result\":\"queued dpow cancel ratify\"}"));
}
ZERO_ARGS(dpow,ipaddrs)
{
char ipaddr[64]; cJSON *array; int32_t i;
array = cJSON_CreateArray();
for (i=0; i<myinfo->numdpowipbits; i++)
{
expand_ipbits(ipaddr,myinfo->dpowipbits[i]);
jaddistr(array,ipaddr);
}
return(jprint(array,1));
}
TWOINTS_AND_ARRAY(dpow,ratify,minsigs,timestamp,ratified)
{
void **ptrs; bits256 zero; int32_t i; char *source; struct dpow_checkpoint checkpoint;

1
includes/iguana_apideclares.h

@ -27,6 +27,7 @@ TWOINTS_AND_ARRAY(dpow,ratify,minsigs,timestamp,ratified);
ZERO_ARGS(dpow,cancelratify);
STRING_ARG(dpow,bindaddr,ipaddr);
STRING_AND_INT(dpow,fundnotaries,symbol,numblocks);
ZERO_ARGS(dpow,ipaddrs);
ZERO_ARGS(pax,start);
INT_ARG(passthru,paxfiats,mask);

Loading…
Cancel
Save