From 0b4911a6c2ed642626d6a176594ce33ea8bcd461 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 8 Jan 2016 10:12:32 -0300 Subject: [PATCH] test --- iguana/iguana_msg.c | 7 +++++-- iguana/iguana_ramchain.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index f611b998e..066aa411e 100755 --- a/iguana/iguana_msg.c +++ b/iguana/iguana_msg.c @@ -409,7 +409,11 @@ int32_t iguana_parser(struct iguana_info *coin,struct iguana_peer *addr,struct O } retval = 0; //printf("%s parse.(%s)\n",addr->ipaddr,H->command); - if ( strcmp(H->command,"version") == 0 ) + if ( strcmp(H->command,"SuperNET") == 0 ) + { + printf("GOT.(%s) len.%d from %s\n",H->command,recvlen,addr->ipaddr); + } + else if ( strcmp(H->command,"version") == 0 ) { struct iguana_msgversion recvmv; if ( addr != 0 ) @@ -552,7 +556,6 @@ int32_t iguana_parser(struct iguana_info *coin,struct iguana_peer *addr,struct O } else if ( strcmp(H->command,"getaddr") == 0 ) { - printf("GOT.(%s) len.%d from %s\n",H->command,recvlen,addr->ipaddr); srvmsg = 'A', addr->msgcounts.getaddr++; } else if ( strcmp(H->command,"mempool") == 0 ) diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 4760cedb1..f823cd3fa 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -1711,7 +1711,7 @@ struct iguana_ramchain *iguana_bundleload(struct iguana_info *coin,struct iguana bp->blocks[i] = block; if ( bits256_nonz(bp->hashes[i]) == 0 ) bp->hashes[i] = B[i].hash2; - _iguana_chainlink(coin,block); + //_iguana_chainlink(coin,block); } } bp->emitfinish = (uint32_t)time(NULL) + 1;