jl777 7 years ago
parent
commit
a1bc5de2b6
  1. 2
      iguana/dpow/dpow_network.c
  2. 2
      iguana/iguana_notary.c

2
iguana/dpow/dpow_network.c

@ -2021,7 +2021,7 @@ void dpow_ipbitsadd(struct supernet_info *myinfo,struct dpow_info *dp,uint32_t *
if ( ipbits[i] != 0 )
{
expand_ipbits(ipaddr,ipbits[i]);
printf("ADD NOTARY.(%s) %08x\n",ipaddr,ipbits[i]);
//printf("ADD NOTARY.(%s) %08x\n",ipaddr,ipbits[i]);
dpow_addnotary(myinfo,dp,ipaddr);
}
} else if ( missing > 0 )

2
iguana/iguana_notary.c

@ -230,7 +230,7 @@ void iguana_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp)
}
if ( (height= dpow_getchaintip(myinfo,&merkleroot,&blockhash,&blocktime,dp->srctx,&dp->numsrctx,src)) != dp->last.blockhash.height && height >= 0 )
{
//char str[65]; printf("[%s].%d %s %s height.%d vs last.%d\n",dp->dest,dp->SRCHEIGHT,dp->symbol,bits256_str(str,blockhash),height,dp->last.blockhash.height);
char str[65]; printf("[%s].%d %s %s height.%d vs last.%d\n",dp->dest,dp->SRCHEIGHT,dp->symbol,bits256_str(str,blockhash),height,dp->last.blockhash.height);
if ( dp->lastheight == 0 )
dp->lastheight = height-1;
if ( height < dp->last.blockhash.height )

Loading…
Cancel
Save