Use newcoind.cfg instead of config.xml

This commit is contained in:
Arthur Britto
2012-04-06 22:27:14 -07:00
parent 3883777249
commit bcdd8ab519
7 changed files with 67 additions and 20 deletions

View File

@@ -6,8 +6,8 @@
using namespace std;
using namespace boost::asio::ip;
PeerDoor::PeerDoor(boost::asio::io_service& io_service) :
mAcceptor(io_service, tcp::endpoint(tcp::v4(), theConfig.PEER_PORT))
PeerDoor::PeerDoor(boost::asio::io_service& io_service) :
mAcceptor(io_service, tcp::endpoint(address().from_string(theConfig.PEER_IP), theConfig.PEER_PORT))
{
cout << "Opening peer door on port: " << theConfig.PEER_PORT << endl;
startListening();