From c6268fc3f275af4f5dcca9b51d56bccb4a0947aa Mon Sep 17 00:00:00 2001 From: Duke Date: Sun, 22 Jan 2023 18:40:42 -0800 Subject: [PATCH] Fix bugs in autogenerated dragonx confs --- src/connection.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/connection.cpp b/src/connection.cpp index 6af63cb..66129a7 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -217,11 +217,21 @@ void ConnectionLoader::createHushConf() { QTextStream out(&file); - out << "# Autogenerated by Hush SilentDragon " << APP_VERSION << " https://hush.is\n"; + if(isdragonx) { + out << "# Autogenerated by Hush SilentDragonX " << APP_VERSION << " https://dragonx.is\n"; + } else { + out << "# Autogenerated by Hush SilentDragon " << APP_VERSION << " https://hush.is\n"; + } out << "server=1\n"; - out << "rpcuser=hush\n"; out << "rpcpassword=" % randomPassword() << "\n"; - out << "rpcport=18031\n"; + + if(isdragonx) { + out << "rpcuser=dragonx\n"; + out << "rpcport=21769\n"; + } else { + out << "rpcuser=hush\n"; + out << "rpcport=18031\n"; + } out << "txindex=1\n"; out << "addressindex=1\n"; out << "spentindex=1\n";