From 05bb36ddb259ad97cb0d98503d1be82cec2546f2 Mon Sep 17 00:00:00 2001
From: jl777 <jameslee777@yahoo.com>
Date: Sun, 16 Oct 2016 13:32:05 -0300
Subject: [PATCH] test

---
 iguana/dpow/dpow_fsm.c     | 2 +-
 iguana/dpow/dpow_network.c | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c
index 59d8e08eb..b3e18c663 100755
--- a/iguana/dpow/dpow_fsm.c
+++ b/iguana/dpow/dpow_fsm.c
@@ -100,7 +100,7 @@ void dpow_sync(struct supernet_info *myinfo,struct dpow_block *bp,uint64_t refma
 {
     int8_t lastk; uint64_t mask;
     mask = dpow_maskmin(refmask,bp,&lastk);
-    dpow_utxosync(myinfo,bp,mask,myind,srchash);
+    //dpow_utxosync(myinfo,bp,mask,myind,srchash);
     if ( bp->notaries[myind].masks[lastk] == 0 )
         dpow_signedtxgen(myinfo,(src_or_dest != 0) ? bp->destcoin : bp->srccoin,bp,lastk,mask,myind,bp->opret_symbol,bits256_nonz(bp->desttxid) == 0 ? DPOW_SIGBTCCHANNEL : DPOW_SIGCHANNEL,src_or_dest);
 }
diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c
index cdb1fbbda..986864adf 100755
--- a/iguana/dpow/dpow_network.c
+++ b/iguana/dpow/dpow_network.c
@@ -75,7 +75,7 @@ int32_t dpow_crc32find(struct supernet_info *myinfo,uint32_t crc32,uint32_t chan
 
 void dpow_send(struct supernet_info *myinfo,struct dpow_block *bp,bits256 srchash,bits256 desthash,uint32_t channel,uint32_t msgbits,uint8_t *data,int32_t datalen,uint32_t crcs[2])
 {
-    struct dpow_nanomsghdr *np; int32_t size,firstz,sentbytes = 0; uint32_t crc32;
+    struct dpow_nanomsghdr *np; int32_t size,sentbytes = 0; uint32_t crc32;
     crc32 = calc_crc32(0,data,datalen);
     //if ( (firstz= dpow_crc32find(myinfo,crc32,channel)) >= 0 )
     {
@@ -113,8 +113,8 @@ void dpow_nanomsg_update(struct supernet_info *myinfo)
                     crc32 = calc_crc32(0,np->packet,np->datalen);
                     if ( crc32 == np->crc32 && (firstz= dpow_crc32find(myinfo,crc32,np->channel)) >= 0 )
                     {
-                        printf("NANORECV ht.%d channel.%08x (%d) crc32.%08x:%08x datalen.%d:%d\n",np->height,np->channel,size,np->crc32,crc32,np->datalen,(int32_t)(size - sizeof(*np)));
-                        if ( dpow_datahandler(myinfo,np->channel,np->height,np->packet,np->datalen,1) == 0 )
+                        printf("NANORECV ht.%d channel.%08x (%d) crc32.%08x:%08x datalen.%d:%d firstz.%d\n",np->height,np->channel,size,np->crc32,crc32,np->datalen,(int32_t)(size - sizeof(*np)),firstz);
+                        if ( dpow_datahandler(myinfo,np->channel,np->height,np->packet,np->datalen,1) >= 0 )
                             myinfo->DPOW.crcs[firstz] = crc32;
                     }
                 } else printf("np->datalen.%d %d (size %d - %ld)\n",np->datalen,(int32_t)(size-sizeof(*np)),size,sizeof(*np));