Skip to content

Commit

Permalink
Remove Game::SetZmqEndpoint.
Browse files Browse the repository at this point in the history
The method Game::SetZmqEndpoint is never used, and should also not be
used.  Instead, the ZMQ endpoint should be auto-detected from Xaya Core
using DetectZmqEndpoint (as it is in the default main).
  • Loading branch information
domob1812 committed Aug 6, 2019
1 parent 8518a85 commit 708b950
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion xayagame/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ Game::DetectZmqEndpoint ()
const std::string endpoint = val.get ("address", "").asString ();
CHECK (!endpoint.empty ());
LOG (INFO) << "Detected ZMQ endpoint: " << endpoint;
SetZmqEndpoint (endpoint);
zmq.SetEndpoint (endpoint);
return true;
}

Expand Down
11 changes: 0 additions & 11 deletions xayagame/game.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,17 +283,6 @@ class Game : private internal::ZmqListener
*/
void EnablePruning (unsigned nBlocks);

/**
* Sets the ZMQ endpoint that will be used to connect to the ZMQ interface
* of the Xaya daemon. Must not be called anymore after Start() or
* Run() have been called.
*/
void
SetZmqEndpoint (const std::string& addr)
{
zmq.SetEndpoint (addr);
}

/**
* Detects the ZMQ endpoint by calling getzmqnotifications on the Xaya
* daemon. Returns false if pubgameblocks is not enabled.
Expand Down

0 comments on commit 708b950

Please sign in to comment.