Browse Source

test

etomic
jl777 8 years ago
parent
commit
87a6fbc26a
  1. 2
      iguana/iguana_msg.c
  2. 2
      iguana/tests/dexgetH

2
iguana/iguana_msg.c

@ -476,6 +476,8 @@ void iguana_gotping(struct supernet_info *myinfo,struct iguana_info *coin,struct
int32_t iguana_send_ping(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr)
{
int32_t len; uint64_t nonce; uint8_t serialized[sizeof(struct iguana_msghdr) + sizeof(nonce)];
if ( coin->FULLNODE <= 0 )
return(0);
if ( addr->msgcounts.verack == 0 )
{
if ( strcmp(addr->ipaddr,myinfo->ipaddr) != 0 )

2
iguana/tests/dexgetH

@ -1,2 +1,2 @@
#!/bin/bash
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getblockhash\",\"height\":100000,\"symbol\":\"KMD\"}"
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getblockhash\",\"height\":0,\"symbol\":\"SHARK\"}"

Loading…
Cancel
Save