mirror of
https://github.com/monero-project/monero.git
synced 2025-02-10 18:23:40 +02:00
Uncomment 0MQ server init code in daemon
This commit is contained in:
parent
8d4df7d240
commit
9b850f28de
@ -57,9 +57,9 @@ namespace IPC
|
|||||||
{
|
{
|
||||||
p2p = p_p2p;
|
p2p = p_p2p;
|
||||||
core = p_core;
|
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, "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)
|
void start_mining(wap_proto_t *message)
|
||||||
|
@ -86,7 +86,9 @@ namespace tools
|
|||||||
public:
|
public:
|
||||||
wallet2(bool testnet = false, bool restricted = false) : m_run(true), m_callback(0), m_testnet(testnet) {
|
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");
|
client = wap_client_new ("ipc://@/monero", 200, "wallet identity");
|
||||||
assert (client);
|
if (!client) {
|
||||||
|
// TODO: Daemon not up.
|
||||||
|
}
|
||||||
int rc = wap_client_start (client, 25);
|
int rc = wap_client_start (client, 25);
|
||||||
assert (rc == 0);
|
assert (rc == 0);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user