From 849e1b19726ad903e99e2137b65c12783d7f0cf6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 12 Nov 2016 20:22:17 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_network.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index afdfa1e88..e02b9e5d4 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -264,6 +264,9 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru } bp->recvmask |= (1LL << senderind) | (1LL << bp->myind); bp->bestmask = dpow_maskmin(bp->recvmask,bp,&bp->bestk); + bp->notaries[bp->myind].bestk = bp->bestk; + bp->notaries[bp->myind].bestmask = bp->bestmask; + bp->notaries[bp->myind].recvmask = bp->recvmask; if ( bp->bestk >= 0 ) { for (i=0; inumnotaries; i++) @@ -367,7 +370,6 @@ void dpow_ipbitsadd(struct supernet_info *myinfo,struct dpow_info *dp,uint32_t * if ( j == n ) missing++; } - //printf("from.%d RECV numips.%d numipbits.%d matched.%d missing.%d\n",fromid,numipbits,n,matched,missing); if ( (numipbits == 1 || missing < matched || matched > (dp->numipbits>>1)) && missing > 0 ) { for (i=0; i 0 ) printf("ignore\n"); + } else if ( missing > 0 ) + printf("IGNORE from.%d RECV numips.%d numipbits.%d matched.%d missing.%d\n",fromid,numipbits,n,matched,missing); expand_ipbits(ipaddr,senderipbits); dpow_addnotary(myinfo,dp,ipaddr); expand_ipbits(ipaddr,myinfo->myaddr.myipbits);