Skip to content

Commit 9636962

Browse files
committed
[upgradewallet] removed unused warning param
1 parent 543693b commit 9636962

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4473,10 +4473,8 @@ static RPCHelpMan upgradewallet()
44734473
if (!request.params[0].isNull()) {
44744474
version = request.params[0].get_int();
44754475
}
4476-
44774476
bilingual_str error;
4478-
std::vector<bilingual_str> warnings;
4479-
if (!pwallet->UpgradeWallet(version, error, warnings)) {
4477+
if (!pwallet->UpgradeWallet(version, error)) {
44804478
throw JSONRPCError(RPC_WALLET_ERROR, error.original);
44814479
}
44824480
UniValue obj(UniValue::VOBJ);

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4122,7 +4122,7 @@ const CAddressBookData* CWallet::FindAddressBookEntry(const CTxDestination& dest
41224122
return &address_book_it->second;
41234123
}
41244124

4125-
bool CWallet::UpgradeWallet(int version, bilingual_str& error, std::vector<bilingual_str>& warnings)
4125+
bool CWallet::UpgradeWallet(int version, bilingual_str& error)
41264126
{
41274127
int prev_version = GetVersion();
41284128
int nMaxVersion = version;

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
12011201
};
12021202

12031203
/** Upgrade the wallet */
1204-
bool UpgradeWallet(int version, bilingual_str& error, std::vector<bilingual_str>& warnings);
1204+
bool UpgradeWallet(int version, bilingual_str& error);
12051205

12061206
//! Returns all unique ScriptPubKeyMans in m_internal_spk_managers and m_external_spk_managers
12071207
std::set<ScriptPubKeyMan*> GetActiveScriptPubKeyMans() const;

0 commit comments

Comments
 (0)