Uncomment 0MQ server init code in daemon

This commit is contained in:
Oran Juice 2015-01-17 16:53:50 +05:30
parent 8d4df7d240
commit 9b850f28de
No known key found for this signature in database
GPG Key ID: 71C5AF46CCB28124
2 changed files with 5 additions and 3 deletions

View File

@ -57,9 +57,9 @@ namespace IPC
{
p2p = p_p2p;
core = p_core;
/*server = zactor_new (wap_server, NULL);
server = zactor_new (wap_server, NULL);
zsock_send (server, "ss", "BIND", "ipc://@/monero");
zsock_send (server, "sss", "SET", "server/timeout", "5000");*/
zsock_send (server, "sss", "SET", "server/timeout", "5000");
}
void start_mining(wap_proto_t *message)

View File

@ -86,7 +86,9 @@ namespace tools
public:
wallet2(bool testnet = false, bool restricted = false) : m_run(true), m_callback(0), m_testnet(testnet) {
client = wap_client_new ("ipc://@/monero", 200, "wallet identity");
assert (client);
if (!client) {
// TODO: Daemon not up.
}
int rc = wap_client_start (client, 25);
assert (rc == 0);
};