Improve default palladium.conf generation
This commit is contained in:
15
src/init.cpp
15
src/init.cpp
@@ -1252,18 +1252,21 @@ bool AppInitMain(NodeContext& node)
|
||||
std::string strHeader = "# Palladium(PLM) config file:\n"
|
||||
"rpcuser=username\n"
|
||||
"rpcpassword=password\n"
|
||||
"\n"
|
||||
"server=1\n"
|
||||
"listen=1\n"
|
||||
"daemon=1\n"
|
||||
"upnp=1\n"
|
||||
"discover=1\n"
|
||||
"txindex=1\n"
|
||||
"# pruned = 0\n"
|
||||
"\n"
|
||||
"port=2333\n"
|
||||
"rpcport=2332\n"
|
||||
"rpcbind=127.0.0.1\n"
|
||||
"rpcallowip=127.0.0.1\n"
|
||||
"\n"
|
||||
"maxconnections=20\n"
|
||||
"fallbackfee=0.0001\n"
|
||||
"rpcallowip=127.0.0.1\n"
|
||||
"deprecatedrpc=accounts\n"
|
||||
"\n"
|
||||
"# Addnodes:\n"
|
||||
"seednode=dnsseed.palladium-coin.store\n"
|
||||
@@ -1277,6 +1280,12 @@ bool AppInitMain(NodeContext& node)
|
||||
"zmqpubrawblock=tcp://0.0.0.0:28334\n"
|
||||
"zmqpubrawtx=tcp://0.0.0.0:28335\n"
|
||||
"zmqpubhashblock=tcp://0.0.0.0:28332\n"
|
||||
"\n"
|
||||
"[test]\n"
|
||||
"# Testnet mode parameters\n"
|
||||
"\n"
|
||||
"[regtest]\n"
|
||||
"# Regression test mode parameters\n"
|
||||
"\n";
|
||||
fwrite(strHeader.c_str(), std::strlen(strHeader.c_str()), 1, configFile);
|
||||
fclose(configFile);
|
||||
|
||||
Reference in New Issue
Block a user