mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-31 08:13:52 +02:00
[upgradewallet] removed unused warning param
This commit is contained in:
@@ -4473,10 +4473,8 @@ static RPCHelpMan upgradewallet()
|
||||
if (!request.params[0].isNull()) {
|
||||
version = request.params[0].get_int();
|
||||
}
|
||||
|
||||
bilingual_str error;
|
||||
std::vector<bilingual_str> warnings;
|
||||
if (!pwallet->UpgradeWallet(version, error, warnings)) {
|
||||
if (!pwallet->UpgradeWallet(version, error)) {
|
||||
throw JSONRPCError(RPC_WALLET_ERROR, error.original);
|
||||
}
|
||||
UniValue obj(UniValue::VOBJ);
|
||||
|
||||
@@ -4122,7 +4122,7 @@ const CAddressBookData* CWallet::FindAddressBookEntry(const CTxDestination& dest
|
||||
return &address_book_it->second;
|
||||
}
|
||||
|
||||
bool CWallet::UpgradeWallet(int version, bilingual_str& error, std::vector<bilingual_str>& warnings)
|
||||
bool CWallet::UpgradeWallet(int version, bilingual_str& error)
|
||||
{
|
||||
int prev_version = GetVersion();
|
||||
int nMaxVersion = version;
|
||||
|
||||
@@ -1201,7 +1201,7 @@ public:
|
||||
};
|
||||
|
||||
/** Upgrade the wallet */
|
||||
bool UpgradeWallet(int version, bilingual_str& error, std::vector<bilingual_str>& warnings);
|
||||
bool UpgradeWallet(int version, bilingual_str& error);
|
||||
|
||||
//! Returns all unique ScriptPubKeyMans in m_internal_spk_managers and m_external_spk_managers
|
||||
std::set<ScriptPubKeyMan*> GetActiveScriptPubKeyMans() const;
|
||||
|
||||
Reference in New Issue
Block a user