X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Frpcwallet.cpp;h=3edfb17d9f9d82286a5ca611f1b2a6f0506171bc;hp=f6a03830827f6782f60e16337305b9bbecc9f1f7;hb=9417ff30cae6ffffd1c4fc4f4b1a81551f04dbc5;hpb=68938e65fd9e607b8822db4edb76731c1edfe85c diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index f6a0383..3edfb17 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -15,6 +15,7 @@ using namespace std; int64_t nWalletUnlockTime; static CCriticalSection cs_nWalletUnlockTime; +extern int64_t nReserveBalance; extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, json_spirit::Object& entry); std::string HelpRequiringPassphrase() @@ -1752,7 +1753,6 @@ Value reservebalance(const Array& params, bool fHelp) } Object result; - int64_t nReserveBalance = 0; if (mapArgs.count("-reservebalance") && !ParseMoney(mapArgs["-reservebalance"], nReserveBalance)) throw runtime_error("invalid reserve balance amount\n"); result.push_back(Pair("reserve", (nReserveBalance > 0)));