changed algo N & K to equihash N & K

This commit is contained in:
jahway603
2022-07-12 17:19:00 -04:00
parent 4768d302fd
commit f55b77f652

View File

@@ -349,15 +349,15 @@ UniValue getinfo(const UniValue& params, bool fHelp, const CPubKey& mypk)
obj.push_back(Pair("commission", ASSETCHAINS_COMMISSION)); obj.push_back(Pair("commission", ASSETCHAINS_COMMISSION));
if ( ASSETCHAINS_ALGO == ASSETCHAINS_EQUIHASH ) if ( ASSETCHAINS_ALGO == ASSETCHAINS_EQUIHASH )
{ {
obj.push_back(Pair("algo",ASSETCHAINS_ALGORITHMS[ASSETCHAINS_ALGO])); obj.push_back(Pair("algo", ASSETCHAINS_ALGORITHMS[ASSETCHAINS_ALGO]));
if ( ASSETCHAINS_NK[0] == 0 ) // display default for Hush if ( ASSETCHAINS_NK[0] == 0 ) // display default for Hush
obj.push_back(Pair("algo N",200)); obj.push_back(Pair("equihash N", 200));
else obj.push_back(Pair("algo N",ASSETCHAINS_NK[0])); else obj.push_back(Pair("equihash N", ASSETCHAINS_NK[0]));
if ( ASSETCHAINS_NK[1] == 0 ) // display default for Hush if ( ASSETCHAINS_NK[1] == 0 ) // display default for Hush
obj.push_back(Pair("algo K",9)); obj.push_back(Pair("equihash K", 9));
else obj.push_back(Pair("algo K",ASSETCHAINS_NK[1])); else obj.push_back(Pair("equihash K", ASSETCHAINS_NK[1]));
} }
else obj.push_back(Pair("algo",ASSETCHAINS_ALGORITHMS[ASSETCHAINS_ALGO])); else obj.push_back(Pair("algo", ASSETCHAINS_ALGORITHMS[ASSETCHAINS_ALGO]));
} }
return obj; return obj;
} }