|
|
@ -347,9 +347,9 @@ bool ConnectionLoader::startEmbeddedHushd() { |
|
|
|
QDir appPath(QCoreApplication::applicationDirPath()); |
|
|
|
|
|
|
|
#ifdef Q_OS_WIN64 |
|
|
|
auto hushdProgram = appPath.absoluteFilePath("komodod.exe"); |
|
|
|
auto hushdProgram = appPath.absoluteFilePath("hushd.exe"); |
|
|
|
#else |
|
|
|
auto hushdProgram = appPath.absoluteFilePath("komodod"); |
|
|
|
auto hushdProgram = appPath.absoluteFilePath("hushd"); |
|
|
|
#endif |
|
|
|
|
|
|
|
//if (!QFile(hushdProgram).exists()) {
|
|
|
@ -384,8 +384,10 @@ bool ConnectionLoader::startEmbeddedHushd() { |
|
|
|
}); |
|
|
|
|
|
|
|
// This string should be the exact arg list seperated by single spaces
|
|
|
|
QString params = "-ac_name=HUSH3 -ac_sapling=1 -ac_reward=0,1125000000,562500000 -ac_halving=129,340000,840000 -ac_end=128,340000,5422111 -ac_eras=3 -ac_blocktime=150 -ac_cc=2 -ac_ccenable=228,234,235,236,241 -ac_founders=1 -ac_supply=6178674 -ac_perc=11111111 -clientname=GoldenSandtrout -addnode=node1.hush.is -addnode=node2.hush.is -addnode=node3.hush.is -addnode=node4.hush.is -addnode=node5.hush.is -addnode=node6.hush.is -addnode=node7.hush.is -addnode=node8.hush.is -ac_cclib=hush3 -tls=only -ac_script=76a9145eb10cf64f2bab1b457f1f25e658526155928fac88ac"; |
|
|
|
// Could be modified to start different Hush Smart Chains
|
|
|
|
QString params = ""; // "-ac_name=TUSH";
|
|
|
|
|
|
|
|
/* This is now enabled by default in hushd
|
|
|
|
// Binaries come with this file
|
|
|
|
if(QFile( QDir(".").filePath("asmap.dat") ).exists()) { |
|
|
|
auto asmap = appPath.absoluteFilePath("asmap.dat"); |
|
|
@ -393,6 +395,7 @@ bool ConnectionLoader::startEmbeddedHushd() { |
|
|
|
} else { |
|
|
|
qDebug() << "No ASN map file found"; |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
QStringList arguments = params.split(" "); |
|
|
|
|
|
|
|