Browse Source

test

etomic
jl777 8 years ago
parent
commit
0f8de278d5
  1. 1
      iguana/dPoW.h
  2. 2
      iguana/dpow/dpow_network.c
  3. 2
      iguana/tests/dexsend

1
iguana/dPoW.h

@ -139,6 +139,7 @@ struct dpow_info
struct dpow_block **blocks;
};
uint64_t dpow_notarybestk(uint64_t refmask,struct dpow_block *bp,int8_t *lastkp);
int32_t dpow_paxpending(uint8_t *hex,uint32_t *paxwdcrcp);
#endif

2
iguana/dpow/dpow_network.c

@ -936,7 +936,7 @@ int32_t dpow_nanomsg_update(struct supernet_info *myinfo)
nn_send(myinfo->pubsock,dexp,size,0);
dex_packet(myinfo,dexp,size);
}
printf("GOT DEX bus PACKET.%d\n",size);
//printf("GOT DEX bus PACKET.%d\n",size);
if ( dexp != 0 )
nn_freemsg(dexp), dexp = 0;
}

2
iguana/tests/dexsend

@ -0,0 +1,2 @@
#!/bin/bash
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"send\",\"hex\":\"deadbeef\"}"
Loading…
Cancel
Save