From 2d47b8f30ff94602514ffa50eb525e2886063727 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 24 Feb 2017 17:18:37 +0200 Subject: [PATCH] test --- iguana/dpow/dpow_network.c | 8 ++++---- iguana/tests/REVS.batch11 | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 4331b018e..2239bc977 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -1091,7 +1091,7 @@ void dex_updateclient(struct supernet_info *myinfo) int32_t i; if ( myinfo->IAMNOTARY == 0 ) { - for (i=0; i<100; i++) + for (i=0; i<1000; i++) if ( dex_subsock_poll(myinfo) <= 0 ) break; } @@ -1882,7 +1882,7 @@ int32_t dpow_nanomsg_update(struct supernet_info *myinfo) break; usleep(1000); }*/ - while ( (size= signed_nn_recv(&freeptr,myinfo->ctx,myinfo->notaries,myinfo->numnotaries,myinfo->dpowsock,&np)) >= 0 && num < 100 ) + while ( (size= signed_nn_recv(&freeptr,myinfo->ctx,myinfo->notaries,myinfo->numnotaries,myinfo->dpowsock,&np)) >= 0 && num < 1000 ) { num++; if ( size > 0 ) @@ -1936,10 +1936,10 @@ int32_t dpow_nanomsg_update(struct supernet_info *myinfo) n = 0; if ( myinfo->dexsock >= 0 ) // from servers { - if ( (size= signed_nn_recv(&freeptr,myinfo->ctx,myinfo->notaries,myinfo->numnotaries,myinfo->dexsock,&dexp)) > 0 ) + while ( (size= signed_nn_recv(&freeptr,myinfo->ctx,myinfo->notaries,myinfo->numnotaries,myinfo->dexsock,&dexp)) > 0 && n < 1000 ) { //fprintf(stderr,"%d ",size); - num++; + n++; if ( dex_packetcheck(myinfo,dexp,size) == 0 ) { //printf("FROM BUS.%08x -> pub\n",dexp->crc32); diff --git a/iguana/tests/REVS.batch11 b/iguana/tests/REVS.batch11 index c62583a3a..ae2682ab8 100755 --- a/iguana/tests/REVS.batch11 +++ b/iguana/tests/REVS.batch11 @@ -1,3 +1,4 @@ +sleep 99999 # RBYMsuS89HQKxNCZB3xb1UxRyfLMLvrbmc KMD 1904.65394401, REVS 37.80134078 sleep 1 fiat/revs sendtoaddress RBYMsuS89HQKxNCZB3xb1UxRyfLMLvrbmc 37.80134078 @@ -7,3 +8,8 @@ fiat/revs sendtoaddress RCKVUKnC3pjVkjnDfnBj1Eu68yc8ELdMC5 0.91962079 # RUrV1qvjBapCDGQnwpdhyneGhX1wiHZwVr KMD 16087.76566759, REVS 319.20361833 sleep 1 fiat/revs sendtoaddress RUrV1qvjBapCDGQnwpdhyneGhX1wiHZwVr 319.20361833 + +94940c0e2adc685722b2bf2525515cdab544afc0ad25af1c4cd2cfa5a06a28cd +e17395d17efa9254e06b566a2719c066ddba6c196f34892ec99bd987abc9dc89 +3142dd53cc5a76e6f41b43754e9506d02818571e8d5caed6384fad4f760dc49a +