diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index 8d42d0af9..dd62ce425 100755 --- a/iguana/iguana_msg.c +++ b/iguana/iguana_msg.c @@ -569,16 +569,18 @@ int32_t iguana_msgparser(struct iguana_info *coin,struct iguana_peer *addr,struc } else { - int32_t flag = 0; + int32_t reqvers,flag = 0; addr->msgcounts.getblocks++; - len = iguana_rwnum(0,&data[sizeof(struct iguana_msghdr)],sizeof(uint32_t),&tmp); + len = iguana_rwnum(0,&data[sizeof(struct iguana_msghdr)],sizeof(uint32_t),&reqvers); len += iguana_rwvarint32(0,&data[sizeof(struct iguana_msghdr) + len],(uint32_t *)&n); for (i=0; i<10; i++) printf("%02x ",data[i]); - printf("version.%d num blocks.%d recvlen.%d\n",tmp,n,recvlen); + printf("version.%d num blocks.%d recvlen.%d\n",reqvers,n,recvlen); for (i=0; iblockspace,sizeof(addr->blockspace),addr,hash2,0) > 0 ) flag = 1; } diff --git a/iguana/main.c b/iguana/main.c index 8b6f2e039..efa9e5e07 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -68,7 +68,7 @@ int32_t HDRnet,netBLOCKS; cJSON *API_json; #ifdef __PNACL__ -char GLOBAL_TMPDIR[512] = "/tmp"; +char GLOBAL_TMPDIR[512] = "/DB/tmp"; char GLOBAL_DBDIR[512] = "/DB"; char GLOBAL_HELPDIR[512] = "/DB/help"; char GLOBAL_VALIDATEDIR[512] = "/DB/purgeable";