Browse Source

Test

etomic
jl777 7 years ago
parent
commit
8a02324a81
  1. 2
      iguana/exchanges/LP_rpc.c
  2. 2
      iguana/exchanges/LP_socket.c

2
iguana/exchanges/LP_rpc.c

@ -113,7 +113,7 @@ cJSON *bitcoin_json(struct iguana_info *coin,char *method,char *params)
//"server.version", "server.banner", "server.donation_address", "server.peers.subscribe", "--blockchain.numblocks.subscribe", "blockchain.headers.subscribe", "blockchain.address.subscribe", "blockchain.address.get_history", "blockchain.address.get_mempool", "blockchain.address.get_balance", "--blockchain.address.get_proof", "blockchain.address.listunspent", "--blockchain.utxo.get_address", "blockchain.block.get_header", "blockchain.block.get_chunk", "blockchain.transaction.broadcast", "blockchain.transaction.get_merkle", "blockchain.transaction.get", "blockchain.estimatefee"
// 1.1: "blockchain.scripthash.get_balance", "blockchain.scripthash.get_history", "blockchain.scripthash.get_mempool", "blockchain.scripthash.listunspent", "blockchain.scripthash.subscribe", "server.features", "server.add_peer"
method = "server.version";
method = "server.peers.subscribe";
params = "[]";
sprintf(stratumreq,"{ \"jsonrpc\":\"2.0\", \"id\": %u, \"method\":\"%s\", \"params\": %s }\n",stratumid++,method,params);
LP_sendstr = stratumreq;

2
iguana/exchanges/LP_socket.c

@ -213,7 +213,7 @@ int32_t LP_socketsend(int32_t sock,uint8_t *serialized,int32_t len)
if ( remains > 0 )
printf("%d LP_socket sent.%d remains.%d of len.%d\n",sock,numsent,remains,len);
}
printf("numsent.%d vs remains.%d len.%d sock.%d\n",numsent,remains,len,sock);
//printf("numsent.%d vs remains.%d len.%d sock.%d\n",numsent,remains,len,sock);
}
return(len);
}

Loading…
Cancel
Save