From bc9d24f6cd19a91ab49e12610cc6d41cf2cb5fa7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 16 Oct 2016 11:13:50 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_fsm.c | 8 +++----- iguana/dpow/dpow_network.c | 6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index fbefe21bd..a25e4b02a 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -402,11 +402,9 @@ void dpow_statemachinestart(void *ptr) printf("DPOW statemachine checkpoint.%d %s\n",checkpoint.blockhash.height,bits256_str(str,checkpoint.blockhash.hash)); for (i=0; iDPOW.minerkey33[i+1]; - for (i=0; i<3; i++) - { - dpow_utxosync(myinfo,bp,0,myind,srchash); - sleep(3); - } + dpow_utxosync(myinfo,bp,0,myind,srchash); + sleep(3); + dpow_utxosync(myinfo,bp,0,myind,srchash); while ( time(NULL) < starttime+300 && src != 0 && dest != 0 && bp->state != 0xffffffff ) { sleep(2); diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index b20e98bb4..58be35888 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -76,10 +76,10 @@ 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; - crc32 = calc_crc32(0,data,datalen); - if ( (firstz= dpow_crc32find(myinfo,crc32,channel)) >= 0 ) + //crc32 = calc_crc32(0,data,datalen); + //if ( (firstz= dpow_crc32find(myinfo,crc32,channel)) >= 0 ) { - myinfo->DPOW.crcs[firstz] = crc32; + //myinfo->DPOW.crcs[firstz] = crc32; size = (int32_t)(sizeof(*np) + datalen); np = calloc(1,size); //printf("dpow_send.(%d) size.%d\n",datalen,size);