Skip to content

Commit

Permalink
Linux daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
topdev777 committed Dec 5, 2018
1 parent a0926fe commit 4e912be
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/bitcoinrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol,

void StartRPCThreads()
{
//FIX
strRPCUserColonPass = mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"];
if ((mapArgs["-rpcpassword"] == "") ||
(mapArgs["-rpcuser"] == mapArgs["-rpcpassword"]))
Expand Down Expand Up @@ -766,6 +767,8 @@ void StartRPCThreads()
return;
}

printf("user=%s, passwd=%s", mapArgs["-rpcuser"] ,mapArgs["-rpcpassword"]);

assert(rpc_io_service == NULL);
rpc_io_service = new asio::io_service();
rpc_ssl_context = new ssl::context(*rpc_io_service, ssl::context::sslv23);
Expand Down
Binary file added src/globalboostyd
Binary file not shown.
6 changes: 5 additions & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ bool AppInit(int argc, char* argv[])
Shutdown();
}
ReadConfigFile(mapArgs, mapMultiArgs);

//FIX
// std::cout << "user=" << mapArgs["-rpcuser"] << endl;
// std::cout << "passswd=" << mapArgs["-rpcpassword"] << endl;
// std::cout << "server=" << mapArgs["-server"] << endl;
// std::cout << "daemon=" << mapArgs["-daemon"] << endl;
if (mapArgs.count("-?") || mapArgs.count("--help"))
{
// First part of help message is specific to globalboostyd / RPC client
Expand Down
Binary file modified src/qt/locale/bitcoin_ca.qm
Binary file not shown.
Binary file modified src/qt/locale/bitcoin_ca_ES.qm
Binary file not shown.
1 change: 1 addition & 0 deletions src/rpcrawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ Value listunspent(const Array& params, bool fHelp)
if (ExtractDestination(pk, address))
{
const CScriptID& hash = boost::get<const CScriptID&>(address);
const CScriptID& hash = boost::get<CScriptID>(address);
CScript redeemScript;
if (pwalletMain->GetCScript(hash, redeemScript))
entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));
Expand Down

0 comments on commit 4e912be

Please sign in to comment.