From 2322812635e4812d919d81ea723c0d1512efa535 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 28 Nov 2016 16:39:09 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_fsm.c | 2 +- iguana/dpow/dpow_network.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index d5891d53c..f17eaeb87 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/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); diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 70c7026df..a05125ea2 100755 --- a/iguana/dpow/dpow_network.c +++ b/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