I'm editing the SmallChange source code which is a liteocoin fork, I'm following the exact changes made to the litecoin source as shown here:
https://github.com/bfroemel/smallchange/commit/947a0fafd8d033f6f0960c4ff0748f76a3d58326I ran into this piece of code and it raised a few questions...
// Try a dual IPv6/IPv4 socket, falling back to separate IPv4 and IPv6 sockets
const bool loopback = !mapArgs.count("-rpcallowip");
asio::ip::address bindAddress = loopback ? asio::ip::address_v6::loopback() : asio::ip::address_v6::any();
- ip::tcp::endpoint endpoint(bindAddress, GetArg("-rpcport", 9332));
+ ip::tcp::endpoint endpoint(bindAddress, GetArg("-rpcport", 9031));
boost::signals2::signal<void ()> StopRequests;
@@ -3165,7 +3165,7 @@ Object CallRPC(const string& strMethod, const Array& params)
asio::ssl::stream<asio::ip::tcp::socket> sslStream(io_service, context);
SSLIOStreamDevice<asio::ip::tcp> d(sslStream, fUseSSL);
iostreams::stream< SSLIOStreamDevice<asio::ip::tcp> > stream(d);
- if (!d.connect(GetArg("-rpcconnect", "127.0.0.1"), GetArg("-rpcport", "9332")))
+ if (!d.connect(GetArg("-rpcconnect", "127.0.0.1"), GetArg("-rpcport", "9031")))
throw runtime_error("couldn't connect to server");
- Do I have to create a server?, I thought these currencies were decentralized
- If so do I need a static IP, or can I change "9031" to anything?
Second Question:
I want the currency address codes to start with the letter H, here is the code to change it but I can't find a table showing which numbers correspond with which letter:
- PUBKEY_ADDRESS = 48, // Litecoin addresses start with L
+ PUBKEY_ADDRESS = 62, // addresses start with S