Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
sidechainclient: re-introduce configurable mainchain connection params
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelrogstad committed Apr 8, 2024
1 parent e7e0f22 commit 8d9c6c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sidechainclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,8 @@ bool SidechainClient::SendRequestToMainchain(const std::string& json, boost::pro
return false;

bool fRegtest = gArgs.GetBoolArg("-regtest", false);
std::string host = "127.0.0.1";
int port = fRegtest ? 18443 : 8332;
std::string host = gArgs.GetArg("-mainchainrpchost", "127.0.0.1");
int port = gArgs.GetArg("-mainchainrpcport", fRegtest ? 18443 : 8332);

try {
// Setup BOOST ASIO for a synchronus call to the mainchain
Expand Down

0 comments on commit 8d9c6c7

Please sign in to comment.