Browse Source

test

acspeed
jl777 8 years ago
parent
commit
2322812635
  1. 2
      iguana/dpow/dpow_fsm.c
  2. 4
      iguana/dpow/dpow_network.c

2
iguana/dpow/dpow_fsm.c

@ -133,7 +133,7 @@ int32_t dpow_checkutxo(struct supernet_info *myinfo,struct dpow_info *dp,struct
minutxo = 49;
n = 10;
}
if ( (haveutxo= dpow_haveutxo(myinfo,coin,txidp,voutp,coinaddr)) <= minutxo && time(NULL) > dp->lastsplit+bp->duration )
if ( (haveutxo= dpow_haveutxo(myinfo,coin,txidp,voutp,coinaddr)) <= minutxo && time(NULL) > dp->lastsplit+bp->duration && dp->ratifying == 0 )
{
addresses = cJSON_CreateArray();
jaddistr(addresses,coinaddr);

4
iguana/dpow/dpow_network.c

@ -47,6 +47,8 @@ void dex_reqsend(struct supernet_info *myinfo,uint8_t *data,int32_t datalen)
{
expand_ipbits(ipaddr,*retptr);
printf("req returned.[%d] %08x %s\n",recvbytes,*retptr,ipaddr);
// add to req list
// subscribe to 1st 3, drop 1st 25% of time
nn_freemsg(retptr);
}
free(dexp);
@ -87,6 +89,8 @@ int32_t dex_packetcheck(struct supernet_info *myinfo,struct dex_nanomsghdr *dexp
return(-1);
}
// poll sub sockets
#if ISNOTARYNODE
struct dpow_nanoutxo

Loading…
Cancel
Save