X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Frpcwallet.cpp;h=0c27a90eb6e70875585a835ad800c5cbcf8435a4;hb=848b99c4b46b2905b0258d08f855857b3898a00f;hp=135314936d468dbfbddf4f67425f2fedd7eb4e5d;hpb=231bc10a4b86e0a45d6cca292c707ac76d74bbdc;p=novacoin.git diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 1353149..0c27a90 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -1785,7 +1785,7 @@ Value reservebalance(const Array& params, bool fHelp) nAmount = (nAmount / CENT) * CENT; // round to cent if (nAmount < 0) throw runtime_error("amount cannot be negative.\n"); - mapArgs["-reservebalance"] = FormatMoney(nAmount).c_str(); + mapArgs["-reservebalance"] = FormatMoney(nAmount); } else { @@ -1896,7 +1896,7 @@ Value newmalleablekey(const Array& params, bool fHelp) "newmalleablekey\n" "Make a malleable public/private key pair.\n"); - if (!fTestNet) + if (!fTestNet && GetTime() < SMALLDATA_SWITCH_TIME) throw runtime_error("This feature has been disabled for mainNet clients"); CMalleableKeyView keyView = pwalletMain->GenerateNewMalleableKey();