Browse Source

Test

etomic
jl777 8 years ago
parent
commit
3d6d3e5b9d
  1. 2
      iguana/exchanges/LP_network.c
  2. 2
      iguana/exchanges/message

2
iguana/exchanges/LP_network.c

@ -255,7 +255,7 @@ void LP_broadcast_message(int32_t pubsock,char *base,char *rel,bits256 destpub25
msg = (void *)jprint(argjson,0);
msglen = (int32_t)strlen((char *)msg) + 1;
crc32 = calc_crc32(0,&msg[2],msglen - 2);
//printf("CRC32.%u (%s)\n",crc32,(char *)msg);
printf("CRC32.%u (%s)\n",crc32,(char *)msg);
//jdelete(argjson,"method");
//jaddstr(argjson,"method","broadcast");
//msg = (void *)jprint(argjson,0);

2
iguana/exchanges/message

@ -1,2 +1,2 @@
source userpass
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"pubkey\":\"$1\",\"method\":\"forward\",\"method2\":\"sendmessage\",\"message\":\"some sort of message\"}"
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"pubkey\":\"$1\",\"method\":\"broadcast\",\"method2\":\"sendmessage\",\"message\":\"some sort of message\"}"

Loading…
Cancel
Save