Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
0b4911a6c2
  1. 7
      iguana/iguana_msg.c
  2. 2
      iguana/iguana_ramchain.c

7
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 )

2
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;

Loading…
Cancel
Save